/* Microsoft Blue + Islamic Theme */
:root {
    --ms-blue: #0078d4;
    --ms-blue-dark: #106ebe;
    --ms-blue-light: #deecf9;
    --ms-blue-lighter: #f3f9fd;
    --islamic-gold: #d4af37;
    --islamic-green: #228b22;
    --islamic-green-dark: #1e7e1e;
}

body {
    background: var(--ms-blue-lighter);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,120,212,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 30px rgba(0,120,212,0.15);
    transform: translateY(-2px);
}

.card-header {
    background: var(--ms-blue-light);
    border-bottom: 1px solid var(--ms-blue);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: var(--ms-blue-dark);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--ms-blue);
    border-color: var(--ms-blue);
}

.btn-primary:hover {
    background: var(--ms-blue-dark);
    border-color: var(--ms-blue-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--islamic-green);
    border-color: var(--islamic-green);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e1dfdd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--ms-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: var(--ms-blue-light);
    color: var(--ms-blue-dark);
    font-weight: 600;
    border: none;
}

.badge.bg-success {
    background: var(--islamic-green) !important;
}

.text-primary {
    color: var(--ms-blue) !important;
}

.status-card {
    background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-blue-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.status-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.islamic-accent {
    border-left: 4px solid var(--islamic-gold);
}

/* Premium Mobile Enhancements */
.page-header {
    background: linear-gradient(135deg, var(--ms-blue) 0%, var(--islamic-green) 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,120,212,0.15);
}

.page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.page-header .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.page-header .btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Enhanced Tables */
.table thead th {
    background: var(--ms-blue-light) !important;
    color: var(--ms-blue-dark) !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 12px;
    border: none;
}

.table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-color: rgba(0,120,212,0.1);
}

/* Enhanced Modals */
.modal-content {
    border-radius: 20px !important;
    border: none;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--ms-blue-light) !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 1px solid var(--ms-blue);
    padding: 20px 24px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .page-header h2 {
        font-size: 1.4rem;
    }
    
    .card {
        margin-bottom: 15px;
        border-radius: 16px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
        font-weight: 500;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .status-card h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,120,212,0.08);
        overflow: hidden;
    }
    
    .table {
        margin: 0;
        font-size: 13px;
    }
    
    .badge {
        font-size: 11px;
        padding: 5px 10px;
        border-radius: 8px;
    }
    
    .modal-dialog {
        margin: 15px;
        max-width: calc(100vw - 30px);
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.2rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 10px 6px;
    }
    
    .btn-group-sm {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-sm .btn {
        width: 100%;
        margin-bottom: 4px;
        border-radius: 8px;
    }
}