/* style.css - Mobile-first CSS untuk Presensi SMP PGRI Ciranjang */

/* Reset dan base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1e7d4a 0%, #2196f3 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 24px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* Nav Menu */
.nav-menu {
    background: white;
    padding: 10px 20px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.nav-menu a {
    padding: 10px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: #f5f5f5;
    color: #1e7d4a;
}

.nav-menu a.active {
    background: #1e7d4a;
    color: white;
}

/* Container */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffcdd2;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-info {
    background: #bbdefb;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-user {
        flex-direction: column;
        gap: 8px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
