* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-export, .btn-sync, .btn-reminders {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover { 
    background: #e74c3c; 
    transform: translateY(-2px);
}
.btn-sync:hover { 
    background: #3498db; 
    transform: translateY(-2px);
}
.btn-reminders:hover { 
    background: #f39c12; 
    transform: translateY(-2px);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h2 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions .btn-primary {
    flex: 2;
}

.form-actions .btn-secondary {
    flex: 1;
    background: var(--gray);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Sync Status */
.sync-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sync-status h3 {
    color: white;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

/* Checkbox Style */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
}

.note-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.note-item.tugas {
    border-left-color: var(--danger);
}

.note-item.materi {
    border-left-color: var(--success);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.note-title {
    font-weight: bold;
    color: var(--dark);
    font-size: 1.1rem;
}

.note-matkul {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.note-type {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.note-type.tugas {
    background: var(--danger);
    color: white;
}

.note-type.materi {
    background: var(--success);
    color: white;
}

.note-description {
    color: var(--gray);
    margin-bottom: 10px;
}

.note-deadline {
    font-size: 0.9rem;
    color: var(--danger);
    font-weight: 600;
}

/* Note Urgent Styles */
.note-urgent {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
    font-weight: 600;
}

.note-overdue {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 4px solid #dc3545;
    font-weight: 600;
}

/* Note Actions */
.note-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.note-actions button {
    flex: 1;
    min-width: 60px;
}

.btn-delete, .btn-view, .btn-edit {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-view {
    background: var(--success);
}

.btn-edit {
    background: var(--warning);
}

.btn-delete:hover {
    background: #d0006f;
    transform: translateY(-1px);
}

.btn-view:hover {
    background: #00b4d8;
    transform: translateY(-1px);
}

.btn-edit:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

/* Field khusus materi dan tugas */
.materi-fields, .tugas-fields {
    border-top: 2px dashed #e9ecef;
    padding-top: 20px;
    margin-top: 10px;
}

.file-info {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Status prioritas tugas */
.prioritas-rendah { border-left-color: #28a745 !important; }
.prioritas-sedang { border-left-color: #ffc107 !important; }
.prioritas-tinggi { border-left-color: #dc3545 !important; }

/* Note Preview untuk Materi */
.note-preview {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--gray);
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

.note-preview::after {
    content: 'Klik untuk melihat lebih banyak...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--light) 50%);
    padding: 2px 8px;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: bold;
}

/* Modal Styles */
.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);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 0;
    border-bottom: none;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 20px 30px;
}

/* Materi Meta */
.materi-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    background: var(--light);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.meta-item:first-child {
    background: var(--primary);
    color: white;
}

/* Materi Content */
.materi-content h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.content-section {
    margin-bottom: 25px;
}

.content-section h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.isi-materi {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--success);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* File Preview Styles */
.file-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
}

.file-preview:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    border-color: var(--primary);
}

.file-preview i:first-child {
    font-size: 1.2rem;
}

.file-preview i.fa-download {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Icon khusus untuk tipe file */
.file-pdf { color: #e74c3c; }
.file-word { color: #2b579a; }
.file-image { color: #27ae60; }
.file-generic { color: #7f8c8d; }

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.modal-actions .btn-secondary {
    background: var(--gray);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Reminders List */
.reminders-list {
    max-height: 400px;
    overflow-y: auto;
}

.reminder-item {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--warning);
    transition: all 0.3s ease;
}

.reminder-item:hover {
    transform: translateX(5px);
}

.reminder-item.urgent {
    border-left-color: var(--danger);
    background: #ffeaea;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reminder-title {
    font-weight: bold;
    color: var(--dark);
    font-size: 1.1rem;
}

.reminder-deadline {
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
}

.reminder-matkul {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reminder-timeleft {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Notification Badge */
.notification-badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Note Item Clickable */
.note-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-item.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Animation classes */
.pulse {
    animation: pulse 2s infinite;
}

.syncing {
    animation: pulse 1s infinite;
}

.sync-complete {
    background: #4CAF50 !important;
}

/* Edit Form Styles */
#editForm .form-group {
    margin-bottom: 20px;
}

#editForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

#editForm input, #editForm select, #editForm textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#editForm input:focus, #editForm select:focus, #editForm textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-section {
        justify-content: center;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 20px 0;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-actions {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .materi-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .reminder-header {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .header-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success States */
.success {
    border-color: #4CAF50 !important;
    background: #4CAF50 !important;
}

/* Error States */
.error {
    border-color: #f44336 !important;
    background: #f44336 !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #ff9800;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Supported by next-digital */
.supported-by {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 97, 238, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
}

.supported-by:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

/* Make entire area clickable */
.supported-by > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 25px;
}

/* Logo container */
.supported-by > div:nth-child(2) {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
    border-radius: 50%;
    padding: 4px;
}

/* Logo image */
.supported-by img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Text content */
.supported-text {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
}

.next-digital-logo {
    font-weight: bold;
    font-size: 0.9rem;
}

.next-digital-logo a {
    color: #4cc9f0;
    text-decoration: none;
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Hover effects */
.supported-by:hover .next-digital-logo a {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.supported-by:hover > div:nth-child(2) {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .supported-by {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        gap: 10px;
    }
    
    .supported-by > div:nth-child(2) {
        width: 24px;
        height: 24px;
    }
    
    .supported-text {
        font-size: 0.7rem;
    }
    
    .next-digital-logo {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .supported-by {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .supported-by > div:nth-child(2) {
        width: 22px;
        height: 22px;
    }
    
    .supported-text {
        font-size: 0.65rem;
    }
    
    .next-digital-logo {
        font-size: 0.75rem;
    }
}

/* Tombol Kamera di Header */
.btn-camera {
    background: #9c27b0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-camera:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
}

/* Field Foto Materi */
.foto-fields {
    border-top: 2px dashed #e9ecef;
    padding-top: 20px;
    margin-top: 10px;
}

.upload-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-upload, .btn-camera-upload {
    background: var(--light);
    color: var(--dark);
    border: 2px dashed var(--primary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.btn-upload:hover, .btn-camera-upload:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.foto-preview {
    position: relative;
    margin-top: 15px;
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 10px;
    background: var(--light);
}

.foto-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.btn-remove-foto {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-foto:hover {
    background: #d0006f;
}

/* Modal Kamera */
.camera-container {
    text-align: center;
    margin-bottom: 20px;
}

.camera-placeholder {
    padding: 40px 20px;
    background: var(--light);
    border-radius: 10px;
    border: 2px dashed #ccc;
    color: var(--gray);
}

.photo-preview {
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 10px;
    background: var(--light);
}

.photo-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-success {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Note Item untuk Foto */
.note-item.foto {
    border-left-color: #9c27b0;
}

.note-type.foto {
    background: #9c27b0;
    color: white;
}

.foto-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.foto-thumbnail:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-options {
        flex-direction: column;
    }
    
    .btn-upload, .btn-camera-upload {
        min-width: auto;
    }
    
    .camera-controls {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
    }
}

/* Notifikasi */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background-color: #28a745;
}

.notification-error {
    background-color: #dc3545;
}

.notification-info {
    background-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}
/* Perbaikan ukuran foto */
.foto-thumbnail {
    position: relative;
    margin: 10px 0;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.foto-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foto-thumbnail:hover .foto-overlay {
    opacity: 1;
}

.foto-thumbnail:hover img {
    transform: scale(1.05);
}

.foto-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Modal foto preview */
.foto-preview-large {
    text-align: center;
    margin: 15px 0;
}

.foto-preview-large img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.foto-actions {
    margin-top: 15px;
    text-align: center;
}

/* File info di modal */
.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-details {
    flex: 1;
}

.file-details strong {
    display: block;
    margin-bottom: 5px;
}

.file-details small {
    color: #6c757d;
}

/* Button download */
.btn-download {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Supported by section */
.supported-by {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #e9ecef;
}

.supported-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.next-digital-logo a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.next-digital-logo a:hover {
    text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .foto-thumbnail {
        max-width: 150px;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .foto-preview-large img {
        max-height: 300px;
    }
}
/* Badge file untuk catatan materi */
.file-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

/* Perbaikan tampilan file info di modal */
.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.file-details {
    flex: 1;
}

.file-details strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.file-details small {
    color: #6c757d;
    font-size: 0.85rem;
}