/* =========================================
   1. GLOBAL VARIABLES & LAYOUT
   ========================================= */
:root {
    --brand-color: #077c8c;
    --brand-light: #e0f2f1; /* Light version for backgrounds */
    --brand-hover: #055a66;
}

.applied-main-content {
    padding-top: 85px !important;
    padding-bottom: 60px !important;
    min-height: 100vh;
}

/* =========================================
   2. TEXT & ICON COLORS (Brand Theme)
   ========================================= */
.applied-text-brand {
    color: var(--brand-color) !important;
}

.applied-bg-brand-light {
    background-color: var(--brand-light) !important;
    color: var(--brand-color) !important;
}

/* =========================================
   3. JOB CARD STYLES (4 per row optimized)
   ========================================= */
.applied-job-card {
    background: white;
    border: 1px solid #e0e6f1;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.applied-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(7, 124, 140, 0.15);
    border-color: var(--brand-color);
}

.applied-company-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
}

.applied-job-info h6 {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* =========================================
   4. STATS CARDS (Unified Theme)
   ========================================= */
.applied-stats-card {
    background: white;
    border: 1px solid #e0e6f1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.applied-stats-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-color);
    box-shadow: 0 5px 15px rgba(7, 124, 140, 0.1);
}

.applied-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: var(--brand-light); 
    color: var(--brand-color); 
}

/* =========================================
   5. TRACKER STYLES (Brand Themed)
   ========================================= */
.applied-tracker-wrapper {
    overflow-x: auto;
    padding-bottom: 5px;
    margin-top: 15px;
}

.applied-progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-width: 100%; 
}

.applied-progress-track::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.applied-step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.applied-step-circle {
    width: 22px;
    height: 22px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin: 0 auto 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.3s ease;
}

.applied-step-label {
    font-size: 10px;
    color: #adb5bd;
    font-weight: 600;
    margin-bottom: 0;
}

/* Active & Completed - Using YOUR Color */
.applied-step-item.applied-completed .applied-step-circle,
.applied-step-item.applied-active .applied-step-circle {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
}

.applied-step-item.applied-completed .applied-step-label,
.applied-step-item.applied-active .applied-step-label {
    color: var(--brand-color);
}

.applied-step-item.applied-active .applied-step-circle {
    box-shadow: 0 0 0 3px var(--brand-light);
}

/* Badge for Rejected */
.applied-badge-danger-custom {
    background-color: #fee2e2;
    color: #dc2626;
}
.applied-badge-brand {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

/* =========================================
   6. SKELETON & RESPONSIVE
   ========================================= */
.applied-skeleton-box {
    background: #e9ecef;
    border-radius: 12px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .applied-main-content { padding-top: 70px !important; }
    .applied-filter-section { flex-direction: column; align-items: flex-start !important; gap: 12px; }
    .applied-filter-controls { width: 100%; display: flex; gap: 10px; }
    .form-select { flex: 1; }
}


/* =========================================
   FILTER SECTION STYLES (Fix for Side-by-Side)
   ========================================= */
.applied-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

.applied-filter-controls {
    display: flex !important; 
    flex-direction: row !important; 
    align-items: center;
    gap: 10px;
}

.applied-filter-controls .form-select {
    min-width: 140px; 
    cursor: pointer;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .applied-filter-section {
        flex-direction: column; 
        align-items: flex-start !important;
    }

    .applied-filter-controls {
        width: 100%; 
        justify-content: space-between; 
    }

    .applied-filter-controls .form-select {
        flex: 1; 
        width: 100%;
    }
}