﻿/* ===== INPUTS ===== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1.6px solid #dce3f0;
    border-radius: 10px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

    input:focus,
    select:focus {
        border-color: #004aad;
        box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.15);
    }

/* ===== LABELS ===== */
label {
    display: block;
    font-weight: 500;
    color: #004aad;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ===== BUTTON ===== */
button {
    background: #004aad;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}

    button:hover {
        background: #005be3;
        transform: translateY(-1px);
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }





/* ===============================
   🧭 Dashboard Layout
================================= */
.dashboard-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: #333;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

    .dashboard-header h2 {
        color: #004aad;
        font-size: 1.6rem;
    }

.btn-logout {
    background: #ff4747;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-logout:hover {
        background: #e23e3e;
    }

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    background: #f8f9fc;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .filters label {
        font-weight: 500;
    }

    .filters input[type="date"] {
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.btn-filter {
    background: #004aad;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-filter:hover {
        background: #005de8;
    }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    text-align: center;
    padding: 18px 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .stat-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .stat-card p {
        font-size: 1.4rem;
    }

    .stat-card.blue {
        background: #004aad;
    }

    .stat-card.green {
        background: #2ba84a;
    }

    .stat-card.yellow {
        background: #f4c542;
        color: #222;
    }

    .stat-card.red {
        background: #e63946;
    }

/* Recent Orders */
.recent-orders {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .recent-orders h3 {
        margin-bottom: 12px;
        font-weight: 600;
        color: #004aad;
    }

/* Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .orders-table th, .orders-table td {
        border-bottom: 1px solid #e3e3e3;
        padding: 10px 8px;
        text-align: center;
    }

    .orders-table th {
        background: #f1f4fb;
        color: #004aad;
        font-weight: 600;
    }

    .orders-table tr:hover {
        background: #f8faff;
    }

/* Status */
.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

    .status.pending {
        background: #f4c54233;
        color: #b48b00;
    }

    .status.completed {
        background: #2ba84a33;
        color: #2ba84a;
    }

    .status.rejected {
        background: #e6394633;
        color: #e63946;
    }

/* Loading */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    color: #004aad;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #004aad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Table Wrapper */
.recent-orders {
    overflow-x: auto;
}

/* Empty */
.empty {
    text-align: center;
    padding: 15px;
    color: #666;
}

/* ===============================
   📱 RESPONSIVE DESIGN
================================= */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

        .filters label {
            width: 100%;
            text-align: left;
        }

        .filters input, .btn-filter {
            width: 100%;
        }

    .btn-filter {
        margin-top: 8px;
    }

    .stat-card h3 {
        font-size: 0.95rem;
    }

    .stat-card p {
        font-size: 1.2rem;
    }

    .orders-table th, .orders-table td {
        font-size: 0.85rem;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h2 {
        font-size: 1.2rem;
    }

    .btn-logout {
        width: 100%;
    }

    .filters {
        padding: 10px;
        gap: 6px;
    }

    .stat-card {
        padding: 14px;
    }

    .recent-orders {
        padding: 10px;
    }
}
