/* =============================================
   Global Styles
   ============================================= */
* {
    font-family: 'Cairo', sans-serif;
}

a {
    color: #8B0000;
    text-decoration: none;
}

a:hover {
    color: #DC143C;
    text-decoration: underline;
}

body {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* =============================================
   Authentication Pages
   ============================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 700;
}

.auth-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.auth-body {
    padding: 40px 30px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25);
}

.input-group-text {
    background: white;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group .form-control {
    border-left: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
    background: linear-gradient(135deg, #A00000 0%, #8B0000 100%);
}

.btn-outline-primary {
    border: 2px solid #8B0000;
    color: #8B0000;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: #8B0000;
    color: white;
    transform: translateY(-2px);
}

/* =============================================
   Dashboard & Main Pages
   ============================================= */
.dashboard-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #8B0000;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #8B0000 !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #8B0000 !important;
}

/* =============================================
   Tables
   ============================================= */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
}

/* =============================================
   Badges
   ============================================= */
.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* =============================================
   Alerts
   ============================================= */
.alert {
    border-radius: 10px;
    border: none;
}

/* =============================================
   Cards
   ============================================= */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 700;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .auth-body {
        padding: 30px 20px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}
