/* 
 * assets/css/main.css
 * Main stylesheet for CIYOTA Careers Portal
 */

/* Global Styles */
:root {
    --primary-color: #10235e; /* Updated to CIYOTA blue */
    --secondary-color: #043c79; /* Updated to CIYOTA secondary blue */
    --accent-color: #ffc32c; /* Added CIYOTA yellow */
    --success-color: #2ecc71;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.bg-ciyota-blue {
    background-color: #10235e !important; /* Fixed to actual blue */
}

.bg-ciyota-yellow {
    background-color: #ffc32c !important; /* Added yellow class */
}

.text-ciyota-blue {
    color: #10235e !important;
}

.text-ciyota-yellow {
    color: #ffc32c !important;
}

.navbar .nav-link {
    color: #10235e !important;
    font-weight: bold;
    font-size: 1.2em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important; /* Optional hover color */
    font-weight: bold;
}

.navbar .navbar-brand {
    color: #ffffff !important;
}

.container {
    flex: 1;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 0;
}

.social-icons a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #10235e !important; /* Updated to CIYOTA blue */
    transform: translateY(-3px);
}

/* Cards */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Disable hover effects for CIYOTA cards */
.ciyota-card, 
.ciyota-card:hover {
    transform: none !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1) !important;
    transition: none !important;
}

/* Only apply hover effect to non-CIYOTA cards */
.card:not(.ciyota-card):hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* CIYOTA card header styling */
.card-header.ciyota-bg-primary,
.ciyota-card-header.ciyota-bg-primary {
    background-color: #10235e !important;
    color: white !important;
    border-bottom: 1px solid #043c79 !important;
}

/* Job Listings */
.job-card {
    margin-bottom: 1.5rem;
}

.job-card .card-title {
    font-weight: 700;
    color: #10235e; /* Updated to CIYOTA blue */
}

.job-card .job-meta {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.job-card .job-meta i {
    width: 16px;
    text-align: center;
    margin-right: 5px;
    color: #10235e; /* Updated to CIYOTA blue */
}

.job-card .badge {
    font-size: 0.8rem;
    margin-right: 5px;
}

.job-card .deadline {
    color: var(--danger-color);
    font-weight: 500;
}

/* Override the job-detail-header for CIYOTA styling */
.job-detail-header {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.job-detail-header.ciyota-bg-gradient,
.ciyota-bg-gradient.ciyota-header {
    background: linear-gradient(135deg, #10235e 0%, #043c79 100%) !important;
    color: white !important;
    border-radius: 10px !important;
}

.job-description h4 {
    color: #10235e; /* Updated to CIYOTA blue */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.job-description h4.ciyota-section-title {
    color: #10235e !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #ffc32c !important;
}

.job-description ul {
    padding-left: 1.5rem;
}

/* Custom badges for CIYOTA */
.ciyota-badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    margin-right: 10px !important;
    display: inline-block !important;
}

.ciyota-badge-yellow {
    background-color: #ffc32c !important;
    color: #10235e !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    margin-right: 10px !important;
    display: inline-block !important;
}

.ciyota-badge-container {
    margin-bottom: 15px !important;
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #10235e; /* Updated to CIYOTA blue */
    box-shadow: 0 0 0 0.2rem rgba(16, 35, 94, 0.25);
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Button styling for CIYOTA */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.ciyota-btn-primary {
    background-color: #10235e !important;
    border-color: #10235e !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #043c79; /* Updated to CIYOTA secondary blue */
    border-color: #043c79;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.ciyota-btn-outline {
    color: #10235e !important;
    border-color: #10235e !important;
    background-color: transparent !important;
}

.btn.ciyota-btn-outline:hover {
    background-color: #10235e !important;
    color: white !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-file-label {
    overflow: hidden;
}

/* Login & Registration */
.auth-card {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-card .card-header {
    background-color: #10235e; /* Updated to CIYOTA blue */
    color: white;
    font-weight: 600;
    text-align: center;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .btn {
    width: 100%;
    padding: 15px;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: #10235e; /* Updated to CIYOTA blue */
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-stats {
    margin-bottom: 2rem;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #10235e; /* Updated to CIYOTA blue */
}

.stats-card .stats-count {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: var(--gray-color);
    font-weight: 500;
}

/* Applications Table */
.applications-table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.applications-table .status-badge {
    width: 100%;
    display: inline-block;
    text-align: center;
}

/* Notifications */
.notifications-container {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(16, 35, 94, 0.05); /* Updated to CIYOTA blue */
}

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: var(--gray-color);
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    justify-content: center;
}

.pagination .page-link {
    color: #10235e; /* Updated to CIYOTA blue */
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: #10235e; /* Updated to CIYOTA blue */
    border-color: #10235e;
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-color);
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h4 {
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.profile-tabs {
    margin-bottom: 1.5rem;
}

/* Modal styling */
.ciyota-modal-header {
    background-color: #10235e !important;
    color: white !important;
    border-bottom: 1px solid #043c79 !important;
}

.ciyota-modal-header .close {
    color: white !important;
    opacity: 0.8 !important;
}

.ciyota-modal-header .close:hover {
    opacity: 1 !important;
}

/* Similar jobs styling */
.ciyota-similar-job {
    margin-bottom: 1.5rem;
}

.ciyota-similar-job h5 a {
    color: #10235e !important;
    text-decoration: none !important;
}

.ciyota-similar-job h5 a:hover {
    color: #043c79 !important;
    text-decoration: underline !important;
}

.ciyota-similar-job i {
    color: #10235e !important;
    margin-right: 5px !important;
}

/* List items with CIYOTA styling */
.ciyota-list-item i {
    width: 20px !important;
    text-align: center !important;
    margin-right: 5px !important;
    color: #10235e !important;
}

/* Alert with CIYOTA styling */
.ciyota-alert {
    background-color: rgba(16, 35, 94, 0.1) !important;
    border-color: rgba(16, 35, 94, 0.2) !important;
    color: #10235e !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin-top: 1rem !important;
}

.ciyota-alert i {
    color: #10235e !important;
}

/* Social buttons for share modal */
.ciyota-social-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #10235e !important;
    border: 1px solid #10235e !important;
    margin: 0 5px !important;
}

.ciyota-social-btn:hover {
    background-color: #10235e !important;
    color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-detail-header {
        padding: 1.5rem;
    }
    
    .auth-card {
        margin: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-picture {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Custom Classes */
.text-muted {
    color: var(--gray-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(to right, #10235e, #043c79) !important; /* Updated to CIYOTA blues */
    color: white;
}

.text-small {
    font-size: 0.85rem;
}

.rounded-button {
    border-radius: 50px;
}

.shadow-sm {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.shadow-md {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Styles */
.notification-item {
    padding: 0.5rem 1rem;
    white-space: normal;
    max-width: 350px;
    border-bottom: 1px solid #eee;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(16, 35, 94, 0.05); /* Updated to CIYOTA blue */
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-circle {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.notifications-container {
    max-height: 300px;
    overflow-y: auto;
}

@media (min-width: 576px) {
    .dropdown-menu#notificationsMenu {
        width: 350px;
    }
}