/* WinknZap Job Portal - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    transition: all 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

.hover-shadow {
    transition: all 0.2s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-input {
    border-radius: 0.25em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-dismissible .btn-close {
    transition: all 0.2s;
}

/* Pagination */
.pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
    border: none;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

/* Stats Cards */
.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-card p {
    font-size: 14px;
    color: #666;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline > div {
    margin-left: 30px;
    position: relative;
}

.timeline > div::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dee2e6;
}

/* Status Indicators */
.status-pending {
    color: #ffc107;
}

.status-approved {
    color: #198754;
}

.status-rejected {
    color: #dc3545;
}

/* Icon Styles */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

/* Min Height */
.min-vh-100 {
    min-height: 100vh;
}

/* Utility Classes */
.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .stat-card h3 {
        font-size: 24px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0;
}

.service-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.03);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.service-option input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.service-option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-option span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    word-break: break-word;
}

.service-option input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Checkbox Groups (for non-grid options) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    background-color: transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-option:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-option span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    border-radius: 4px;
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Dashboard Stats */
.card .card-body h3 {
    font-size: 2.5rem;
    font-weight: 600;
}

.card .card-body h6 {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.display-4 {
    font-weight: 700;
    letter-spacing: -1px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Modal */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Status Badge Colors */
.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-approved {
    background-color: #198754;
    color: #fff;
}

.badge-rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Text Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-text {
    font-size: 0.875rem;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Form Labels */
label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.5rem;
}

/* Input Focus States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.06) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

/* Borders */
.border-light {
    border-color: #e9ecef !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.min-vh-100 {
    min-height: 100vh;
}
