/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:#000000;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-card {
    padding: 40px 30px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #8CC63F;
    box-shadow: 0 0 0 2px rgba(140, 198, 63, 0.2);
}

.login-btn {
    width: 100%;
    background:#000000;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-footer {
    margin-top: 20px;
}

.back-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #8CC63F;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background:#000000;
    color: white;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    justify-content: flex-start;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #8CC63F;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
}

.sidebar-spacer {
    flex: 1;
}

.nav-link.logout {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
}

.section-header h1 i {
    margin-right: 10px;
    color: #8CC63F;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background:#000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.stat-info p {
    color: #7f8c8d;
    font-weight: 500;
}

/* Tables */
.table-responsive {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #e9ecef;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-pengerjaan { background: #cce5ff; color: #0066cc; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-dikirim { background: #d4edda; color: #155724; }
.status-selesai { background: #28a745; color: white; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary { background: #007bff; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    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: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #000000;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8CC63F;
    box-shadow: 0 0 0 2px rgba(140, 198, 63, 0.2);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px; /* Space for hamburger button */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card:hover {
        transform: none; /* Disable hover effect on mobile */
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }

    .stat-info h3 {
        font-size: 28px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    /* Form responsiveness */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Button responsiveness */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Modal responsiveness */
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    /* Section headers */
    .section-header h1 {
        font-size: 24px;
    }

    .section-header h1 i {
        margin-right: 8px;
    }

    /* Login page mobile */
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    /* Stats grid mobile */
    .stats-grid {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
        padding-top: 70px;
    }

    .hamburger-btn {
        top: 15px;
        left: 15px;
        padding: 8px;
        font-size: 16px;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-header .logo {
        width: 50px;
    }

    .sidebar-header h3 {
        font-size: 16px;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }

    .nav-link i {
        margin-right: 10px;
        width: 18px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .stat-info h3 {
        font-size: 24px;
    }

    .data-table {
        font-size: 12px;
        min-width: 500px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .section-header h1 {
        font-size: 20px;
    }

    .login-card {
        padding: 20px 15px;
        margin: 10px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .login-form input {
        padding: 10px 12px;
    }

    .login-btn {
        padding: 10px;
        font-size: 14px;
    }
}
