/* Nova - Noor Companies Employee Management System */
/* Brand Colors: Charcoal #4a4f54, Red #f5333f, Cream #fff3eb */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f7f3ed !important;
    color: #333;
    min-height: 100vh;
}

/* Beautiful card styling matching inspiration images */
.card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(74, 79, 84, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(74, 79, 84, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #4a4f54 0%, #3a3f44 100%);
    color: #fff3eb;
    border: none;
    border-radius: 0;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.card-body {
    padding: 2rem;
    background: #ffffff;
}

/* Main content area styling */
.container {
    max-width: 1200px;
    padding: 2rem 15px;
}

.main-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(74, 79, 84, 0.08);
    padding: 2.5rem;
    margin: 2rem 0;
}

/* Dashboard cards with beautiful styling */
.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(74, 79, 84, 0.06);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(74, 79, 84, 0.12);
    border-color: rgba(245, 51, 63, 0.2);
}

.dashboard-card h3 {
    color: #4a4f54;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.dashboard-card p {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Beautiful buttons */
.btn-primary {
    background: linear-gradient(135deg, #f5333f 0%, #e02d39 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 51, 63, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e02d39 0%, #d02733 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 51, 63, 0.3);
}

.btn-outline-primary {
    color: #f5333f;
    border: 2px solid #f5333f;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #f5333f;
    border-color: #f5333f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 51, 63, 0.25);
}

/* Form styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #f5333f;
    box-shadow: 0 0 0 0.25rem rgba(245, 51, 63, 0.15);
    background: #ffffff;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
}

.form-select:focus {
    border-color: #f5333f;
    box-shadow: 0 0 0 0.25rem rgba(245, 51, 63, 0.15);
}

/* Beautiful table styling */
.table {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(74, 79, 84, 0.06);
}

.table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 700;
    color: #4a4f54;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.table td {
    border: none;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    background: #ffffff;
}

.table tbody tr {
    border-bottom: 1px solid rgba(74, 79, 84, 0.06);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(247, 243, 237, 0.3);
    transform: scale(1.01);
}

/* Mobile responsive table improvements */
@media (max-width: 768px) {
    .table th, .table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .table th {
        padding: 0.8rem 0.4rem;
    }
    
    /* Hide less important columns on mobile */
    .table .mobile-hide {
        display: none !important;
    }
    
    /* Reduce transform effect on mobile for better performance */
    .table tbody tr:hover {
        transform: none;
        background: rgba(247, 243, 237, 0.5);
    }
}

/* Status badges */
.badge {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #000;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navbar styling */
.navbar {
    background: linear-gradient(135deg, #4a4f54 0%, #3a3f44 100%) !important;
    box-shadow: 0 4px 20px rgba(74, 79, 84, 0.15);
    padding: 1.25rem 0;
}

.navbar-brand {
    color: #fff3eb !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.navbar-brand h4 {
    font-weight: 700;
    color: #fff3eb !important;
    margin: 0;
}

.navbar-nav .nav-link {
    color: #fff3eb !important;
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 243, 235, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Admin badge styling */
.admin-badge {
    background: linear-gradient(135deg, #f5333f 0%, #e02d39 100%) !important;
    color: white !important;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    margin-left: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(245, 51, 63, 0.3);
}

/* Password visibility toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #495057;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 50px;
}

/* Login page special styling */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7f3ed 0%, #ede7da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(74, 79, 84, 0.15);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(10px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 16px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}