/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Login page specific styles */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    overflow-x: hidden;
}

/* Dashboard page specific styles */
body.dashboard-page {
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

body.sidebar-open {
    overflow: hidden;
}

.container {
    max-width: 400px;
    width: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Login Form Styles */
.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-form h2 {
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Dashboard Styles - Full Screen Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon-small {
    display: flex;
    gap: 3px;
}

.logo-icon-small span {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-title small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Navigation Menu */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #667eea;
}

.nav-item.active .nav-link {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: #667eea;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-link span {
    font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-top: auto;
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 32px;
    color: #667eea;
}

.user-details .username {
    display: block;
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.user-details .user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.logout-btn-sidebar {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn-sidebar:hover {
    background: rgba(231, 76, 60, 0.3);
    color: white;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.top-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #495057;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
}

.header-left h1 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 24px;
}

.header-right .header-info {
    color: #6c757d;
    font-size: 14px;
}

.content-area {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

/* Page Content Styles */
.page-content {
    width: 100%;
    height: 100%;
}

.content-header {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.content-body {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: calc(100vh - 200px);
}

/* Placeholder Content */
.placeholder-content {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.placeholder-icon {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 25px;
    opacity: 0.8;
}

.placeholder-content h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.placeholder-content p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.placeholder-content ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    list-style: none;
    padding: 0;
}

.placeholder-content li {
    color: #495057;
    font-size: 15px;
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.placeholder-content li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 8px;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.coming-soon-badge i {
    margin-right: 8px;
}

/* File Manager Styles */
.fm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.fm-toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fm-toolbar-right {
    display: flex;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 40px;
    justify-content: center;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
}

.btn-group .btn:first-child {
    border-radius: 6px 0 0 6px;
}

.btn-group .btn:last-child {
    border-radius: 0 6px 6px 0;
    border-right: none;
}

.btn-group .btn:only-child {
    border-radius: 6px;
    border-right: none;
}

/* Additional Button Colors */
.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

/* Badge Counter for Buttons */
.badge {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.btn-danger .badge {
    background: rgba(255, 255, 255, 0.95);
    color: #dc3545;
}

.fm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Upload Area */
.upload-area {
    margin: 20px;
    padding: 40px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-content i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-content h3 {
    margin: 0 0 8px 0;
    color: #495057;
    font-weight: 600;
}

.upload-content p {
    margin: 0;
    color: #6c757d;
}

#file-input {
    display: none;
}

/* File List */
.file-list {
    padding: 20px;
    min-height: 400px;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    font-size: 16px;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.empty-folder {
    text-align: center;
    padding: 60px;
    color: #6c757d;
}

.empty-folder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.file-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.file-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #667eea;
}

.file-icon .fa-folder {
    color: #ffc107;
}

.file-icon .fa-image {
    color: #28a745;
}

.file-icon .fa-file-alt {
    color: #dc3545;
}

.file-icon .fa-file-archive {
    color: #6f42c1;
}

.file-info {
    margin-bottom: 15px;
}

.file-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    word-break: break-word;
    font-size: 14px;
}

.file-meta {
    font-size: 12px;
    color: #6c757d;
}

.file-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* File Checkbox Styling */
.file-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.file-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.file-item {
    position: relative;
}

.file-item:has(.file-select:checked) {
    border-color: #667eea;
    background-color: #f8f9ff;
    transform: translateY(-1px);
}

.file-item:has(.file-select:checked) .file-icon {
    color: #667eea;
}

.maintenance-box {
    width: 100%;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.maintenance-icon {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
}

.maintenance-box h2 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
}

.maintenance-box p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* SweetAlert Custom Styling */
.swal2-popup {
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
}

.swal2-content {
    color: #666 !important;
}

.btn-logout-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
}

.btn-logout-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
}

.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step {
    background: #667eea !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-swal-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
}

.btn-swal-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
}

.btn-swal-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
}

/* Input error state */
.form-group input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: logoFadeIn 1.2s ease-out;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.logo-icon span {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-icon span:hover {
    transform: translateY(-3px) scale(1.05);
}

.icon-a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: iconBounce 1.5s ease-out 0.2s both;
}

.icon-s {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: iconBounce 1.5s ease-out 0.4s both;
}

.icon-k {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: iconBounce 1.5s ease-out 0.6s both;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.5px;
    animation: textSlideUp 1s ease-out 0.8s both;
}

.logo-text .tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin: 5px 0 0 0;
    font-weight: 400;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: textSlideUp 1s ease-out 1s both;
}

/* Logo Animations */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Large Tablet and below (1200px) */
@media (max-width: 1200px) {
    /* Dashboard responsive adjustments */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .content-header {
        padding: 20px;
    }
}

/* Responsive - Mobile (768px) */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .content-header {
        padding: 15px;
    }
    
    .maintenance-box,
    .placeholder-content {
        padding: 40px 20px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
}

/* Responsive - Small Mobile (480px) */
@media (max-width: 480px) {
    body.login-page {
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fix */
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .container {
        padding: 15px;
        width: 95%;
        min-height: calc(100vh - 30px);
        min-height: calc(100dvh - 30px);
        justify-content: center;
    }
    
    .login-form {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .maintenance-box,
    .placeholder-content {
        padding: 30px 15px;
    }
    
    .content-area {
        padding: 10px;
    }
    
    .content-header {
        padding: 15px;
    }
    
    .top-header {
        padding: 10px 15px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    /* Sidebar adjustments for small screens */
    .sidebar {
        width: 280px;
        overflow-y: auto;
    }
    
    .sidebar-header {
        padding: 15px;
        flex-shrink: 0;
    }
    
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sidebar-footer {
        padding: 15px;
        flex-shrink: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .user-info-sidebar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .logout-btn-sidebar {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    /* SweetAlert responsive adjustments */
    .swal2-popup {
        width: 90% !important;
        margin: 0 5% !important;
    }
    
    .btn-logout-confirm,
    .btn-logout-cancel {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    
    /* Logo responsive adjustments */
    .logo-icon span {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .logo-text h1 {
        font-size: 22px !important;
    }
    
    .logo-text .tagline {
        font-size: 12px !important;
    }
    
    .logo {
        gap: 10px !important;
    }
    
    /* File Manager responsive */
    .fm-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .fm-toolbar-left {
        justify-content: center;
    }
    
    .fm-toolbar-right {
        justify-content: center;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .upload-area {
        margin: 15px;
        padding: 30px 20px;
    }
    
    .upload-content h3 {
        font-size: 18px;
    }
    
    .file-list {
        padding: 15px;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    body.login-page {
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 2vh;
    }
    
    .container {
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: flex-start;
        min-height: auto;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .login-form {
        padding: 15px;
    }
    
    .logo-icon span {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    .logo-text h1 {
        font-size: 20px !important;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    .login-form {
        padding: 20px 15px;
    }
}