/* Custom styles for TalentBridge */
.gradient-bg { 
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); 
}

.card-hover { 
    transition: all 0.3s ease; 
}
.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
}

.verified-badge { 
    background: linear-gradient(45deg, #1e40af, #3b82f6); 
}

.carousel-container { 
    scroll-behavior: smooth; 
}

.stage-active { 
    background: #1e40af; 
    color: white; 
}

.stage-completed { 
    background: #10b981; 
    color: white; 
}

.stage-pending { 
    background: #e5e7eb; 
    color: #6b7280; 
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
    width: 200%;
}

/* ---------- Converted Tailwind @apply ---------- */

/* Form input */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border-width: 1px;
    border-color: #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
}
.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #3b82f6; /* ring-2 ring-blue-500 */
}

/* Label */
.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;    /* font-medium */
    color: #374151;      /* text-gray-700 */
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: #2563eb; /* blue-600 */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: #1d4ed8; /* blue-700 */
}

.btn-secondary {
    background-color: #4b5563; /* gray-600 */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-secondary:hover {
    background-color: #374151; /* gray-700 */
}

.btn-success {
    background-color: #16a34a; /* green-600 */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-success:hover {
    background-color: #15803d; /* green-700 */
}

.btn-danger {
    background-color: #dc2626; /* red-600 */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-danger:hover {
    background-color: #b91c1c; /* red-700 */
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    max-width: 28rem;
    width: 100%;
    max-height: 24rem;
    overflow-y: auto;
}

/* Table */
.table {
    min-width: 100%;
    border-collapse: collapse;
}
/* Scrollable table container */
.table-scroll {
    overflow: auto; /* both x and y scrollbars when needed */
    max-height: 24rem; /* ~384px; adjust if needed */
    -webkit-overflow-scrolling: touch;
}
.table th {
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    color: #111827;
}

/* Status badges */
.status-active {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #d1fae5;
    color: #065f46;
}
.status-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #991b1b;
}
.status-frozen {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fef3c7;
    color: #92400e;
}

/* Spinner */
.spinner {
    border-radius: 9999px;
    height: 2rem;
    width: 2rem;
    border-bottom: 2px solid #2563eb;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    z-index: 50;
}

/* File upload */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.file-upload-area:hover {
    border-color: #60a5fa;
}
.file-upload-area.dragover {
    border-color: #60a5fa;
    background: #eff6ff;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
}
.progress-fill {
    background: #2563eb;
    height: 0.5rem;
    border-radius: 9999px;
    transition: width 0.3s;
}
/* Hero banner background container */
.hero-banner {
   
    background: linear-gradient(rgb(30 64 175 / 4%), rgb(59 130 246 / 6%)), url(../../uploads/photos/banner.jpeg) center / cover no-repeat;
}
/* Mobile min-height */
@media (max-width: 640px) {
    .hero-banner { min-height: 320px; padding-top: 3rem; padding-bottom: 3rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-banner { min-height: 420px; padding-top: 4rem; padding-bottom: 4rem; }
}
@media (min-width: 1025px) {
    .hero-banner { min-height: 520px; padding-top: 5rem; padding-bottom: 5rem; }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(30 64 175 / 0.5), rgb(59 130 246 / 0.5));
}

.hero-content { position: relative; }

@media (max-width: 640px) {
    .hero-banner { padding-top: 3rem; padding-bottom: 3rem; }
}

/* Responsive grid */
.grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 1.5rem;
}
.card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-in {
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
