/* Custom styles for the file sharing website */

body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.file-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

.file-item {
    border-left: 4px solid #0d6efd;
}

.file-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.form-signin {
    max-width: 400px;
    padding: 15px;
    margin: auto;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd;
}

.file-table th {
    font-weight: 600;
}

.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

.file-extension {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background-color: #e9ecef;
}

.file-extension-pdf {
    background-color: #dc3545;
    color: #fff;
}

.file-extension-doc, .file-extension-docx {
    background-color: #1976d2;
    color: #fff;
}

.file-extension-xls, .file-extension-xlsx {
    background-color: #388e3c;
    color: #fff;
}

.file-extension-zip, .file-extension-rar {
    background-color: #ff9800;
    color: #fff;
}

.file-extension-jpg, .file-extension-jpeg, .file-extension-png, .file-extension-gif {
    background-color: #9c27b0;
    color: #fff;
}