/* ========================================
   GLOBAL RESET & BASE
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f4f7fc;
    color: #333;
}

/* ========================================
   ORDER FORM STYLES
   ======================================== */
.orderform { 
    box-shadow: 0 0 0 0.5px rgb(0 20 40 / 10%), 0 2px 8px 0 rgb(50 55 90 / 20%);
    padding: 25px 30px;
    margin: 40px 0;
    background: #ffffff;
    border-radius: 8px;
}

.orderform .form-group {
    margin-bottom: 18px !important;
    clear: both !important;
    overflow: hidden !important;
}

.orderform .form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* ========================================
   DROPDOWN / SELECT FIX - SABHI PAGES KE LIYE
   ======================================== */
select.form-control,
.orderform select,
select {
    padding: 6px 12px !important;
    height: 38px !important;
    line-height: 1.4 !important;
    min-height: 38px !important;
    vertical-align: middle !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Dropdown options */
select.form-control option,
.orderform select option,
select option {
    padding: 6px 10px !important;
    line-height: 1.4 !important;
    min-height: 22px !important;
    font-size: 14px !important;
}

/* Focus state for dropdowns */
select.form-control:focus,
.orderform select:focus,
select:focus {
    border-color: #24389a !important;
    box-shadow: 0 0 0 0.2rem rgba(36, 56, 154, 0.25) !important;
    outline: 0 !important;
}

/* ========================================
   INPUT FIELDS FIX
   ======================================== */
.form-control,
input.form-control,
textarea.form-control {
    padding: 6px 12px !important;
    height: 38px !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    border-color: #24389a !important;
    box-shadow: 0 0 0 0.2rem rgba(36, 56, 154, 0.25) !important;
    outline: 0 !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
    padding: 8px 12px !important;
    resize: vertical !important;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
nav {
    background-color: #24389a;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.navbar-nav a:hover {
    color: #ffd700 !important;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.navbar-nav a.active {
    color: #ffd700 !important;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 12px;
}

.navbar-toggler .fa-bars {
    color: #ffffff;
    font-size: 24px;
}

/* ========================================
   HEADER STYLES
   ======================================== */
header {
    padding: 15px 0;
    background: #ffffff;
}

header img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
    background-color: #24389a;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    width: 100%;
    float: left;
}

footer p {
    margin: 0;
    padding: 10px 15px;
    font-size: 14px;
}

/* ========================================
   TABLE STYLES
   ======================================== */
.table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: #24389a;
    color: #ffffff;
    border: none;
    padding: 12px 15px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* ========================================
   BADGE STYLES
   ======================================== */
.badge-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-primary {
    background: #007bff;
    color: #fff;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    border: none !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-success {
    background: #28a745 !important;
    color: #fff !important;
}

.btn-success:hover {
    background: #218838 !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #c82333 !important;
}

.btn-info {
    background: #17a2b8 !important;
    color: #fff !important;
}

.btn-info:hover {
    background: #138496 !important;
}

.btn-sm {
    padding: 4px 10px !important;
    font-size: 12px !important;
}

/* ========================================
   USERS MENU STYLES
   ======================================== */
.usermenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usermenu li {
    border: 1px solid #ccc;
    padding: 12px 15px;
    border-bottom: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.usermenu a:last-child li {
    border-bottom: 1px solid #ccc;
}

.usermenu a {
    text-decoration: none;
    color: #000;
    display: block;
}

.usermenu li:hover {
    background: #f0f0f0;
}

.usermenu li.active {
    background: #24389a;
    color: #ffffff;
    border-color: #24389a;
}

.usermenu li.active a {
    color: #ffffff;
}

.usermenu li i {
    margin-right: 10px;
    width: 20px;
}

/* ========================================
   DASHBOARD CARD STYLES
   ======================================== */
.dashboard-card {
    background: #3f4552;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dashboard-card .icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.dashboard-card .count {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

.dashboard-card .label {
    font-style: italic;
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal-header {
    background: #24389a;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.modal-header .modal-title {
    color: #ffffff;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.8;
}

.modal-header .close:hover {
    color: #ffffff;
    opacity: 1;
}

/* ========================================
   ALERT STYLES
   ======================================== */
.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 15px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media screen and (min-width: 480px) {
    .headright {
        padding-top: 30px;
        text-align: right;
    }
}

@media screen and (max-width: 479px) {
    header img {
        height: 60px;
    }
    .headright {
        text-align: center;
        padding-top: 10px;
    }
    header .row {
        text-align: center;
    }
    .orderform {
        margin: 20px 0;
        padding: 15px;
    }
    .orderform .col-md-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        float: none !important;
    }
    select.form-control,
    .form-control {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* ========================================
   UTILITY STYLES
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}