/* Admin Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFE1F0 0%, #FF9AC6 100%); /* Hello Kitty Pink */
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: #FF69B4;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header i {
    margin-right: 10px;
    color: #FF69B4;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 20px;
}

.nav-link:hover {
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    color: white;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(90deg, #FF69B4, #FFB6C1);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Upload Sections */
.upload-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upload-section:last-child {
    margin-bottom: 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 182, 193, 0.3);
}

.content-header h1 {
    color: #FF69B4;
    font-size: 1.8rem;
    font-weight: 600;
}

.content-header i {
    margin-right: 10px;
    color: #FF69B4;
}

/* Compact Dashboard Cards */
.dashboard-cards.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-cards.compact .card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-cards.compact .card:hover {
    transform: translateY(-2px);
}

.dashboard-cards.compact .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-cards.compact .card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.dashboard-cards.compact .card-icon.videos {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
}

.dashboard-cards.compact .card-icon.materials {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.dashboard-cards.compact .card-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.dashboard-cards.compact .card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.dashboard-cards.compact .card-change {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

/* Compact Search and Filter */
.search-filter.compact {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-filter.compact .search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-filter.compact .search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
}

.search-filter.compact .search-box input:focus {
    outline: none;
    border-color: #FF69B4;
}

.search-filter.compact .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF69B4;
}

.search-filter.compact .filter-box select {
    padding: 10px 15px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.search-filter.compact .filter-box select:focus {
    outline: none;
    border-color: #FF69B4;
}

/* Compact Table Container */
.table-container.compact {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.table-container.compact .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-container.compact .data-table th {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.table-container.compact .data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    vertical-align: middle;
}

.table-container.compact .data-table tbody tr:hover {
    background: rgba(255, 182, 193, 0.1);
}

/* Compact Modal */
.modal-content.compact {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.compact .form-group {
    margin-bottom: 15px;
}

.modal-content.compact .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.modal-content.compact .form-group input,
.modal-content.compact .form-group select,
.modal-content.compact .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
}

.modal-content.compact .form-group input:focus,
.modal-content.compact .form-group select:focus,
.modal-content.compact .form-group textarea:focus {
    outline: none;
    border-color: #FF69B4;
}

.modal-content.compact .form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(255, 182, 193, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 182, 193, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #FF69B4;
    background: rgba(255, 182, 193, 0.1);
}

.file-upload-area i {
    font-size: 2rem;
    color: #FF69B4;
    margin-bottom: 10px;
}

.file-upload-area p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.file-upload-area .file-info {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.file-upload-area input[type="file"] {
    display: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 182, 193, 0.3);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal form {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .dashboard-cards.compact {
        grid-template-columns: 1fr;
    }
    
    .search-filter.compact {
        flex-direction: column;
    }
    
    .search-filter.compact .search-box {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Styling for Tables and Elements */
.thumbnail-small {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.content-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.content-description {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.2);
    color: #FF69B4;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #FF69B4;
    color: white;
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 0.8rem;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.published {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.draft {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-badge.processing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Type Badges */
.type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.type-badge.pdf {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.type-badge.doc {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.type-badge.ppt {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

/* File Icons */
.file-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.file-icon.pdf {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.file-icon.word {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.file-icon.powerpoint {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

/* Text Center Utility */
.text-center {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    }
    
.notification.error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    }
    
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
