/* --- Global Reset & Base --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f8f9fa; /* Latar belakang lembut */
    color: #343a40; /* Warna teks utama */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #007bff; /* Biru dari logo */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.main-header .logo {
    font-weight: bold;
    font-size: 1.8em;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    /* Styling untuk logo dua baris di header */
    flex-direction: column; 
    align-items: flex-start;
    line-height: 1.1; /* Mengatur tinggi baris untuk tagline */
}

.main-header img {
    height: 40px; 
    margin-right: 10px;
}

.main-nav {
    text-align: right;
    display: flex; /* Untuk layout navigasi yang rapi */
    gap: 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px; /* Jarak ikon dan teks */
}

.main-nav a:hover {
    color: #e2e6ea;
}

/* --- Containers & Cards --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* --- Tombol Aksi (CTA) --- */
.cta-button, .view-button, .process-btn {
    display: inline-flex; /* Mengatur ikon dan teks */
    align-items: center;
    gap: 8px; 
    padding: 12px 25px;
    margin-top: 20px;
    background-color: #007bff; /* Biru Primer */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
}

.cta-button:hover, .view-button:hover, .process-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Kustomisasi Button Khusus di Tabel/Dashboard */
.process-btn {
    padding: 8px 15px; 
    font-size: 0.95em;
    font-weight: 500;
}

/* Styling untuk Loading State */
.loading-button {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Landing Page --- */
.landing {
    text-align: center;
    padding: 80px 20px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.landing h1 {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}
.landing p {
    font-size: 1.2em;
    max-width: 600px;
    margin-bottom: 30px;
}
.login-options a {
    color: #007bff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

/* --- Daftar Kantin --- */
.kantin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.kantin-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #007bff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kantin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}
.form-group input:focus, .form-group select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-color: #007bff;
    outline: 0;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.quantity-control button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Styling untuk radio button (Pembayaran) */
.radio-group label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

/* --- Dashboard & Tabel --- */
.stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.data-table th, .data-table td {
    padding: 12px 10px;
    vertical-align: middle;
    border: 1px solid #ddd;
    text-align: left;
}
.data-table th {
    background-color: #f0f2f5;
    font-weight: 600;
    color: #495057;
}

/* Warna untuk Status */
.status-new { color: #007bff; font-weight: bold;}
.status-processing { color: #ffc107; font-weight: bold;}
.status-ready { color: #8a2be2; font-weight: bold;} 
.status-completed { color: #28a745; font-weight: bold;}
.status-cancelled { color: #dc3545; font-weight: bold;}
.status-waiting-verification { color: #b8860b; font-weight: bold;} 
.status-siap-dikirim { color: #20b2aa; font-weight: bold;} 
.status-dikirim { color: #ffa500; font-weight: bold;} 


/* --- Footer (Update Profesional) --- */
.main-footer {
    background-color: #343a40;
    color: #e9ecef;
    padding: 40px 20px;
    font-size: 0.9em;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; 
    gap: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Styling untuk daftar link di Footer */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.footer-col ul li a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* --- Floating WhatsApp Button (FIXED) --- */
.whatsapp-float {
    position: fixed;
    width: 200px;
    height: 50px;
    bottom: 40px;
    right: 20px;
    background-color: #25d366; /* Hijau WhatsApp */
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 8px;
    padding: 0 15px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

.whatsapp-float i {
    font-size: 1.4em;
}

/* --- Responsive Design (Mobile-Friendly) --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        justify-content: space-around;
    }
    .main-nav a {
        margin: 5px 0;
        padding: 5px 0;
        font-size: 0.9em;
    }
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
    .landing h1 {
        font-size: 2em;
    }
    .stats-cards {
        flex-direction: column;
    }
    .data-table, .product-list {
        overflow-x: auto;
    }
    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-item input[type="number"] {
        margin-top: 10px;
        width: 100%;
    }
    
    /* Mobile Footer Stack */
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    .footer-col {
        min-width: 100%;
    }
}