/* 'pdf' => 'pdf',
    'doc' => 'word',
    'docx' => 'word',
    'xls' => 'excel',
    'xlsx' => 'excel',
    'ppt' => 'powerpoint',
    'pptx' => 'powerpoint',
    'jpg' => 'image',
    'jpeg' => 'image',
    'png' => 'image',
    'gif' => 'image',
    'zip' => 'archive',
    'rar' => 'archive' */

.fa-file-powerpoint {
    color: #ef7f0f;
}

.fa-file-word {
    color: #0000FF;
}

.fa-file-excel {
    color: #008000;
}

.fa-file-pdf {
    color: #FF0000;
}

.fa-file-image {
    color: #0c947d;
}

.fa-file-archive {
    color: #562009;
}

.fa-file-alt {
    color: #000000;
}

.fa-file-video {
    color: #23ba08;
}

.fa-file-audio {
    color: #77931e;
}

.elibrary-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.elibrary-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.elibrary-page-header h2 {
    margin: 0;
    color: white; /* default - overridden by dynamic system for light backgrounds */
    font-weight: 600;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.elibrary-page-header .btn {
    margin: 5px;
    position: relative;
    z-index: 1;
}

/* ===== Upload Form ===== */
#uploadForm .whiteback {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    border: none;
}

#createVideoForm .whiteback {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    border: none;
}

.video-recorder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.video-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-preview-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
}

.video-preview {
    width: 100%;
    min-height: 220px;
    max-height: 360px;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}

.video-recorder-status {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

/* ===== File Cards ===== */
.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    border-left: 4px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    /* color controlled by dynamic system */
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.card-title i {
    margin-right: 8px;
    /* color controlled by dynamic system */
}

.card-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* ===== Badges ===== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px 20px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    /* color controlled by dynamic system */
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    /* border-color controlled by dynamic system */
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.form-control[type="file"] {
    padding: 10px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ===== Checkboxes ===== */
.custom-control {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.custom-control:hover {
    background: rgba(0,0,0,0.04);
}

.custom-control-input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.custom-control-label {
    cursor: pointer;
    font-weight: 500;
    margin-left: 8px;
}

/* ===== Info Icons ===== */
.fa-info-circle.pointy {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fa-info-circle.pointy:hover {
    transform: scale(1.2);
    color: #667eea !important;
}

#publicInfo,
#sharedInfo {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
}

/* ===== Modals ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
    /* background controlled by dynamic system */
    /* color controlled by dynamic system */
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

/* ===== Required Indicator ===== */
.req {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .elibrary-page-header {
        padding: 20px;
    }

    .elibrary-page-header h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .elibrary-page-header .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }

    #uploadForm .whiteback {
        padding: 20px;
    }

    #createVideoForm .whiteback {
        padding: 20px;
    }

    .video-recorder-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 15px;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
