/* Custom CSS for Job Portal */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
}

.search-box .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.category-card:hover .card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.category-icon {
    padding: 20px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: inline-block;
}

.job-count .badge {
    padding: 8px 15px;
    border-radius: 20px;
}

/* Job Listing Styles */
.job-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.job-meta {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.job-categories .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Job Details Page */
.job-details-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #dee2e6;
    padding: 12px;
}

/* Admin Panel Styles */
.admin-header {
    background: var(--dark-color);
    color: white;
    padding: 15px 0;
}

.admin-sidebar {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 30px;
}

/* Form Styles */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-section h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.dynamic-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .search-box .form-control,
    .search-box .btn {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    margin-top: auto;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rounded-custom {
    border-radius: 15px;
}
