/**
 * ZESCO Corporate Branding Stylesheet
 * Clean, minimal professional design - ORANGE PRIMARY, Green accent
 */

:root {
    /* ZESCO Brand Colors - ORANGE is PRIMARY */
    --zesco-primary: #F7941D;
    --zesco-primary-dark: #E67E00;
    --zesco-primary-light: #FFB74D;
    
    /* Green as secondary/accent */
    --zesco-secondary: #00843D;
    --zesco-secondary-dark: #006630;
    --zesco-secondary-light: #4CAF50;
    
    /* Neutral Colors */
    --zesco-white: #FFFFFF;
    --zesco-gray-light: #F8F9FA;
    --zesco-gray: #6C757D;
    --zesco-gray-dark: #343A40;
    --zesco-black: #212529;
    
    /* Gradients - Orange primary */
    --zesco-gradient: linear-gradient(135deg, var(--zesco-primary) 0%, var(--zesco-primary-dark) 100%);
    --zesco-gradient-secondary: linear-gradient(135deg, var(--zesco-secondary) 0%, var(--zesco-secondary-dark) 100%);
    --zesco-bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* ==========================================
   AUTH PAGES STYLING - with Pattern Background
   ========================================== */

/* Auth page background with pattern */
.zesco-auth-bg {
    background: 
        linear-gradient(135deg, rgba(247, 148, 29, 0.9) 0%, rgba(10, 148, 10, 0.637) 100%),
        url('/images/auth-bg-pattern.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth card styling */
.zesco-auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    border: none;
}

.zesco-auth-card.register-card {
    max-width: 550px;
}

/* Auth header - Orange gradient with green accent stripe */
.zesco-auth-header {
    background: var(--zesco-gradient);
    padding: 30px 20px 25px;
    text-align: center;
    color: white;
    position: relative;
}

.zesco-auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--zesco-secondary);
}

.zesco-auth-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.zesco-auth-header .subtitle {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.zesco-auth-header .logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

/* Auth body */
.zesco-auth-body {
    padding: 35px 30px;
}

.zesco-auth-body .form-title {
    text-align: center;
    color: var(--zesco-gray-dark);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Form inputs - Orange focus */
.zesco-input-group {
    position: relative;
    margin-bottom: 20px;
}

.zesco-input-group .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 45px 14px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: auto;
}

.zesco-input-group .form-control:focus {
    border-color: var(--zesco-primary);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
    outline: none;
}

.zesco-input-group .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zesco-primary);
    font-size: 1rem;
}

.zesco-input-group .form-control.is-invalid {
    border-color: #dc3545;
}

.zesco-input-group .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Select styling */
.zesco-input-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F7941D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 45px center;
    padding-right: 65px;
}

/* Primary button - ORANGE - Consistent sizing */
.zesco-btn-primary {
    background: var(--zesco-gradient);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.zesco-btn-primary:hover {
    background: var(--zesco-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.35);
    color: white;
    text-decoration: none;
}

.zesco-btn-primary:active {
    transform: translateY(0);
}

/* Full width variant for forms */
.zesco-btn-primary.btn-block {
    width: 100%;
}

/* Secondary/Outline button - Matches primary size */
.zesco-btn-outline {
    background: transparent;
    border: 2px solid var(--zesco-secondary);
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--zesco-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.zesco-btn-outline:hover {
    background: var(--zesco-secondary);
    color: white;
    text-decoration: none;
}

/* Green accent button */
.zesco-btn-accent {
    background: var(--zesco-gradient-secondary);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.zesco-btn-accent:hover {
    background: var(--zesco-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 61, 0.35);
}

/* Small button variant */
.zesco-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Links - Orange primary */
.zesco-link {
    color: var(--zesco-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.zesco-link:hover {
    color: var(--zesco-primary-dark);
    text-decoration: underline;
}

/* Auth footer */
.zesco-auth-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--zesco-gray-light);
}

.zesco-auth-footer a {
    color: var(--zesco-primary);
    font-weight: 500;
}

/* Checkbox styling */
.zesco-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.zesco-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--zesco-primary);
}

.zesco-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--zesco-gray-dark);
}

/* Alert styling */
.zesco-alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.zesco-alert-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.zesco-alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.zesco-alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ==========================================
   CAREERS MODULE STYLING
   ========================================== */

/* Page wrapper */
.zesco-page {
    background: var(--zesco-bg-gradient);
    min-height: 100vh;
    padding: 20px;
}

/* Card styling - Orange header */
.zesco-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
}

.zesco-card-header {
    background: var(--zesco-gradient);
    color: white;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 1.1rem;
}

.zesco-card-header.secondary {
    background: var(--zesco-gradient-secondary);
}

.zesco-card-body {
    padding: 24px;
}

.zesco-card-footer {
    padding: 18px 24px;
    background: var(--zesco-gray-light);
    border-top: 1px solid #eee;
}

/* Job listing card */
.zesco-job-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    border-left: 4px solid var(--zesco-primary);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.zesco-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left-color: var(--zesco-secondary);
}

.zesco-job-card .job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zesco-primary-dark);
    margin-bottom: 10px;
}

.zesco-job-card .job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.zesco-job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--zesco-gray);
}

.zesco-job-card .job-meta i {
    color: var(--zesco-secondary);
}

.zesco-job-card .job-description {
    color: var(--zesco-gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Detail labels - Orange primary */
.zesco-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--zesco-primary-dark);
    margin-bottom: 6px;
}

.zesco-value {
    font-size: 1rem;
    color: var(--zesco-gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Badge/Tag styling */
.zesco-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zesco-badge-primary {
    background: rgba(247, 148, 29, 0.15);
    color: var(--zesco-primary-dark);
}

.zesco-badge-green {
    background: #D1FAE5;
    color: var(--zesco-secondary);
}

.zesco-badge-gray {
    background: #E5E7EB;
    color: var(--zesco-gray);
}

.zesco-badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

/* Table styling - Orange header */
.zesco-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.zesco-table thead th {
    background: var(--zesco-primary);
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
}

.zesco-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.zesco-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.zesco-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.zesco-table tbody tr:hover {
    background: rgba(247, 148, 29, 0.04);
}

/* Action dropdown */
.zesco-dropdown-btn {
    background: var(--zesco-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zesco-dropdown-btn:hover {
    background: var(--zesco-primary-dark);
}

/* Deadline/Expired styling */
.zesco-expired {
    color: #DC2626;
    font-weight: 600;
}

.zesco-deadline {
    color: var(--zesco-primary);
    font-weight: 600;
}

/* Section divider - Orange */
.zesco-divider {
    height: 4px;
    background: var(--zesco-gradient);
    border-radius: 2px;
    margin: 30px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zesco-auth-card {
        margin: 10px;
    }
    
    .zesco-auth-body {
        padding: 25px 20px;
    }
    
    .zesco-job-card .job-meta {
        flex-direction: column;
        gap: 10px;
    }
}
