/* Custom styles for Border Entry Tracker */

.experience-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 0.25rem;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.outcome-approved {
    background-color: #10b981;
    color: white;
}

.outcome-secondary {
    background-color: #f59e0b;
    color: white;
}

.outcome-rejected {
    background-color: #ef4444;
    color: white;
}

.reply-card {
    border-left: 4px solid #3b82f6;
    background-color: #f8fafc;
}

.visa-badge {
    background-color: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.entry-point-badge {
    background-color: #8b5cf6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.mode-badge {
    background-color: #0ea5e9;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.nationality-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.date-badge {
    background-color: #6b7280;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.wait-time-badge {
    background-color: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Evaluation badges */
.evaluation-easy {
    background-color: #34d399; /* green */
    color: #064e3b;
}

.evaluation-moderate {
    background-color: #fde68a; /* yellow */
    color: #7c2d12;
}

.evaluation-harsh {
    background-color: #fca5a5; /* red */
    color: #7f1d1d;
}

/* Evaluation button group */
.eval-btn {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}
.eval-btn:hover { filter: brightness(0.95); }
.eval-easy { background-color: #d1fae5; color: #065f46; }
.eval-moderate { background-color: #fef3c7; color: #7c2d12; }
.eval-harsh { background-color: #fee2e2; color: #7f1d1d; }
.eval-selected { outline: 2px solid #2563eb; }

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .experience-card {
        margin-bottom: 1rem;
    }
    
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-1.md\\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Animation for modal appearance */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success/Error message styling */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Search results count */
.results-count {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Higher z-index helper */
.z-60 { z-index: 60; }

/* Excel-like table styling */
.excel-table {
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #2b2b2b;
}

.excel-table th {
    background-color: #f2f2f2;
    border: 1px solid #d0d0d0;
    font-weight: 600;
    color: #333;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-table td {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    vertical-align: middle;
}

.excel-table tbody tr:hover {
    background-color: #f8f9fa;
}

.excel-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

.excel-table tbody tr:nth-child(even):hover {
    background-color: #f0f1f2;
}

/* Excel cell-like badges */
.excel-cell-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    border: 1px solid #c0c0c0;
    background-color: #ffffff;
    color: #333;
    text-align: center;
    min-width: 60px;
}

.excel-cell-badge.evaluation-easy {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border-color: #b8d1b8;
}

.excel-cell-badge.evaluation-moderate {
    background-color: #fff2cc;
    color: #7d6600;
    border-color: #f0d200;
}

.excel-cell-badge.evaluation-harsh {
    background-color: #ffeaea;
    color: #800000;
    border-color: #ffcccc;
}

.excel-cell-badge.outcome-approved {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border-color: #b8d1b8;
}

.excel-cell-badge.outcome-secondary-inspection {
    background-color: #fff2cc;
    color: #7d6600;
    border-color: #f0d200;
}

.excel-cell-badge.outcome-rejected {
    background-color: #ffeaea;
    color: #800000;
    border-color: #ffcccc;
}

/* Visa type styling for Excel look */
.excel-visa-type {
    font-weight: 500;
    color: #3366cc;
    background-color: #f0f8ff;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #c6d9f1;
    font-size: 12px;
}