/* Enhanced Status Badge Styling */
.status-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Individual Status Colors */
.status-applied {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #2196f3;
}

.status-applied:hover {
    background-color: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.status-interview {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ff9800;
}

.status-interview:hover {
    background-color: #ffe0b2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.status-onprogress {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-color: #9c27b0;
}

.status-onprogress:hover {
    background-color: #e1bee7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.status-accepted {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-color: #4caf50;
}

.status-accepted:hover {
    background-color: #c8e6c9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.status-rejected {
    background-color: #ffebee;
    color: #c62828;
    border-color: #f44336;
}

.status-rejected:hover {
    background-color: #ffcdd2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

/* Row Background Styling Based on Status */
.table tbody tr.status-applied-row {
    background-color: rgba(227, 242, 253, 0.1);
    border-left: 4px solid #2196f3;
}

.table tbody tr.status-interview-row {
    background-color: rgba(255, 243, 224, 0.1);
    border-left: 4px solid #ff9800;
}

.table tbody tr.status-onprogress-row {
    background-color: rgba(243, 229, 245, 0.1);
    border-left: 4px solid #9c27b0;
}

.table tbody tr.status-accepted-row {
    background-color: rgba(232, 245, 232, 0.1);
    border-left: 4px solid #4caf50;
}

.table tbody tr.status-rejected-row {
    background-color: rgba(255, 235, 238, 0.1);
    border-left: 4px solid #f44336;
}

/* Enhanced Status Select Styling */
.status-select {
    min-width: 130px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* Status-specific select styling */
.status-select.select-applied {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #2196f3;
}

.status-select.select-applied:focus {
    background-color: #bbdefb;
    color: #0d47a1;
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.status-select.select-interview {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ff9800;
}

.status-select.select-interview:focus {
    background-color: #ffe0b2;
    color: #e65100;
    border-color: #f57c00;
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25);
}

.status-select.select-onprogress {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-color: #9c27b0;
}

.status-select.select-onprogress:focus {
    background-color: #e1bee7;
    color: #4a148c;
    border-color: #8e24aa;
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

.status-select.select-accepted {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-color: #4caf50;
}

.status-select.select-accepted:focus {
    background-color: #c8e6c9;
    color: #1b5e20;
    border-color: #43a047;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.status-select.select-rejected {
    background-color: #ffebee;
    color: #c62828;
    border-color: #f44336;
}

.status-select.select-rejected:focus {
    background-color: #ffcdd2;
    color: #b71c1c;
    border-color: #e53935;
    box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.25);
}

/* Custom dropdown options styling */
.status-select option {
    padding: 8px 12px;
    font-weight: 600;
}

.status-select option[value="Applied"] {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-select option[value="Interview"] {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-select option[value="On Progress"] {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-select option[value="Accepted"] {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-select option[value="Rejected"] {
    background-color: #ffebee;
    color: #c62828;
}

/* Status Icons (if you want to add icons) */
.status-badge::before {
    margin-right: 0.25rem;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.status-applied::before {
    content: "\f1fa"; /* paper-plane icon */
}

.status-interview::before {
    content: "\f2b5"; /* microphone icon */
}

.status-onprogress::before {
    content: "\f110"; /* spinner icon */
}

.status-accepted::before {
    content: "\f00c"; /* check icon */
}

.status-rejected::before {
    content: "\f00d"; /* times icon */
}

/* Card Status Indicators */
.card.status-card {
    border-top: 4px solid;
    margin-bottom: 1rem;
}

.card.status-applied {
    border-top-color: #2196f3;
}

.card.status-interview {
    border-top-color: #ff9800;
}

.card.status-onprogress {
    border-top-color: #9c27b0;
}

.card.status-accepted {
    border-top-color: #4caf50;
}

.card.status-rejected {
    border-top-color: #f44336;
}

/* Pulse animation for active statuses */
.status-interview,
.status-onprogress {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        min-width: 60px;
    }
    
    .status-select {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        min-width: 100px;
    }
    
    .status-badge::before {
        display: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .status-applied {
        background-color: rgba(33, 150, 243, 0.2);
        color: #90caf9;
    }
    
    .status-interview {
        background-color: rgba(255, 152, 0, 0.2);
        color: #ffcc02;
    }
    
    .status-onprogress {
        background-color: rgba(156, 39, 176, 0.2);
        color: #ce93d8;
    }
    
    .status-accepted {
        background-color: rgba(76, 175, 80, 0.2);
        color: #a5d6a7;
    }
    
    .status-rejected {
        background-color: rgba(244, 67, 54, 0.2);
        color: #ef9a9a;
    }
}

/* Additional utility classes */
.text-status-applied { color: #1565c0 !important; }
.text-status-interview { color: #ef6c00 !important; }
.text-status-onprogress { color: #7b1fa2 !important; }
.text-status-accepted { color: #2e7d32 !important; }
.text-status-rejected { color: #c62828 !important; }

.bg-status-applied { background-color: #e3f2fd !important; }
.bg-status-interview { background-color: #fff3e0 !important; }
.bg-status-onprogress { background-color: #f3e5f5 !important; }
.bg-status-accepted { background-color: #e8f5e8 !important; }
.bg-status-rejected { background-color: #ffebee !important; }