/* ============================================
   THEME: CLOUD & AVIATION MODERN
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

/* ===== ANIMASI AWAN ===== */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatCloud 30s infinite linear;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.cloud-1 {
    width: 300px;
    height: 100px;
    top: 10%;
    animation-duration: 35s;
}

.cloud-1::before {
    width: 150px;
    height: 150px;
    top: -75px;
    left: 20px;
}

.cloud-1::after {
    width: 200px;
    height: 200px;
    top: -100px;
    left: 120px;
}

.cloud-2 {
    width: 400px;
    height: 120px;
    top: 30%;
    animation-duration: 40s;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 180px;
    height: 180px;
    top: -90px;
    left: 30px;
}

.cloud-2::after {
    width: 250px;
    height: 250px;
    top: -125px;
    left: 160px;
}

.cloud-3 {
    width: 250px;
    height: 80px;
    top: 60%;
    animation-duration: 28s;
    animation-delay: -20s;
}

.cloud-3::before {
    width: 120px;
    height: 120px;
    top: -60px;
    left: 20px;
}

.cloud-3::after {
    width: 170px;
    height: 170px;
    top: -85px;
    left: 100px;
}

.cloud-4 {
    width: 350px;
    height: 100px;
    top: 80%;
    animation-duration: 32s;
    animation-delay: -5s;
}

@keyframes floatCloud {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(calc(100vw + 100%)); }
}

/* ===== PESAWAT TERBANG ANIMASI ===== */
.plane {
    position: fixed;
    font-size: 50px;
    animation: flyPlane 20s infinite linear;
    z-index: 1;
    opacity: 0.6;
}

@keyframes flyPlane {
    0% { 
        transform: translate(-200px, 100px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { 
        transform: translate(calc(100vw + 200px), -100px) rotate(5deg);
        opacity: 0;
    }
}

/* ===== CONTAINER UTAMA ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .icon {
    font-size: 70px;
    display: block;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-header h1 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 5px;
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group .input-group {
    position: relative;
}

.form-group .input-group .icon-input {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* ===== DASHBOARD ===== */
.dashboard-wrapper {
    padding: 20px 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.top-bar .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar .brand h2 {
    color: #2d3748;
    font-size: 24px;
}

.top-bar .brand span {
    color: #667eea;
}

.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .user-info .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.btn-logout {
    padding: 10px 24px;
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: #f56565;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 129, 129, 0.4);
}

/* ===== STATS CARD ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2d3748;
}

.stat-card .stat-label {
    color: #718096;
    font-size: 14px;
    margin-top: 5px;
}

/* ===== TABLE CARD ===== */
.table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    color: #2d3748;
    font-size: 20px;
}

.btn-add {
    padding: 12px 25px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-scheduled {
    background: #bee3f8;
    color: #2a69ac;
}

.status-delayed {
    background: #feebc8;
    color: #c05621;
}

.status-cancelled {
    background: #fed7d7;
    color: #c53030;
}

.status-completed {
    background: #c6f6d5;
    color: #276749;
}

.btn-action {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 3px;
}

.btn-edit {
    background: #4299e1;
    color: white;
}

.btn-edit:hover {
    background: #3182ce;
    transform: scale(1.05);
}

.btn-delete {
    background: #fc8181;
    color: white;
}

.btn-delete:hover {
    background: #f56565;
    transform: scale(1.05);
}

/* ===== MODAL / FORM ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal h2 {
    color: #2d3748;
    margin-bottom: 25px;
}

.modal .form-group input,
.modal .form-group select {
    padding: 12px 15px;
}

.modal .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-submit {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #cbd5e0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .top-bar .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Menu Navigation */
.menu-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-btn i {
    font-size: 16px;
}