﻿
:root {
    --primary-color: #040b38;
    --primary-hover-color: #03274e;
    --text-color: #333;
    --light-text: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --box-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-dark: 0 4px 8px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --transition-speed: 0.3s;
    --sidebar-bg: #ffffff;
    --sidebar-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    --sidebar-text: #333333;
    --sidebar-icon: #6c757d;
    --sidebar-hover: #f8f9fa;
    --sidebar-active: #e9ecef;
}
/* Layout and responsive structure */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Open Sans', Arial, sans-serif;
    transition: margin-left var(--transition-speed);
    color: var(--text-color);
}

.container {
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

.hypnotic {
    width: 56px;
    height: 56px;
    border: 2.2px solid #040b38;
    border-radius: 50%;
    display: grid;
    animation: hypnotic-ss6pk4 1.5s infinite linear;
    transform-origin: 50% 80%;
}

    .hypnotic:before,
    .hypnotic:after {
        content: "";
        grid-area: 1/1;
        border: inherit;
        border-radius: 50%;
        animation: inherit;
        animation-duration: 1s;
        transform-origin: inherit;
    }

    .hypnotic:after {
        --s: -1;
    }

@keyframes hypnotic-ss6pk4 {
    100% {
        transform: rotate(calc(var(--s,1)*1turn));
    }
}
/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
}
/* Button Styles */
.btn {
    color: white;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .btn:hover {
        background-color: var(--primary-hover-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        color: white;
    }

.btn-secondary {
    background-color: #6c757d;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

.job-container-button {
    margin-left: 10px;
}
/* Card Styles */
.job-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .job-card:hover {
        box-shadow: var(--box-shadow-dark);
        transform: translateY(-5px);
    }

.job-title {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.search-section {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-title {
    cursor: pointer;
    padding: 15px 20px;
}

.search-Info {
    padding: 20px;
    background-color: white;
}

.vacancy-Info {
    padding: 20px;
}
/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(4, 11, 56, 0.25);
    }

.input-group {
    margin-bottom: 15px;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Header/Navbar Styles */
.navbar {
    
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

/* Navbar Styles */
.main-navbar {
    background-color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px; /* Starts below navbar */
    left: -280px;
    width: 280px;
    height: calc(100vh - 56px - 60px); /* Account for navbar and footer */
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    box-shadow: var(--sidebar-shadow);
    transition: left 0.3s ease-in-out;
    z-index: 1040;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
}

.sidebar-nav {
    padding: 1rem 0;
    margin: 0;
    list-style: none;
}

.sidebar-item {
    padding: 0.25rem 1rem;
    margin: 0.25rem 0;
}

.sidebar-link {
    color: var(--sidebar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .sidebar-link:hover {
        background-color: var(--sidebar-hover);
        color: var(--sidebar-text);
    }

    .sidebar-link.active {
        background-color: var(--sidebar-active);
        color: var(--primary-color);
        font-weight: 500;
    }

.sidebar-icon {
    color: var(--sidebar-icon);
    min-width: 30px;
    text-align: center;
    margin-right: 1rem;
    transition: margin-right var(--transition-speed);
}

.sidebar-toggler {
    position: absolute;
    right: 10px;
    top: 10px;
    color: var(--sidebar-icon);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}

/* Desktop sidebar */
@media (min-width: 992px) {
    .sidebar {
        left: 0;
        height: calc(100vh - 56px - 60px);
        bottom: 0;
    }

        .sidebar.collapsed {
            width: var(--sidebar-collapsed-width);
        }

    /* Adjust main content margin */
    .main-content {
        margin-left: var(--sidebar-width);
        padding-bottom: 60px; /* Footer height */
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Mobile sidebar */
@media (max-width: 992px) {
    .sidebar.show {
        left: 0;
    }

    /* Push main content when sidebar is open */
    body.sidebar-show {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Ensure navbar stays on top */
.main-navbar {
    z-index: 1050;
}

/* Footer adjustments */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

/* Sidebar dropdown styles for mobile */
.sidebar .dropdown-menu {
    position: static !important;
    transform: none !important;
    background-color: var(--sidebar-bg);
    border: 1px solid rgba(0,0,0,0.1);
    margin: 0.5rem 0 0.5rem 30px;
    box-shadow: none;
}

.sidebar .dropdown-item {
    color: var(--sidebar-text);
    padding: 0.5rem 1.5rem;
}

    .sidebar .dropdown-item:hover {
        background-color: var(--sidebar-hover);
    }
/* Make sure footer doesn't overlap content */
.main-content {
    min-height: calc(100vh - 116px); /* 56px navbar + 60px footer */
    padding-bottom: 60px; /* Footer height */
}


/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}

/* Active State */
.sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Search Section Styles */
.card-header {
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.form-select, .form-control {
    border-left: none;
    padding-left: 0;
}

.input-group-text {
    border-right: none;
    background-color: #f8f9fa !important;
}

/* Footer Styles */
footer {
    bottom: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .dropdown-menu {
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
}
/* Add these to your existing CSS */

/* Sidebar mobile user dropdown */
.sidebar .dropdown-menu {
    position: static !important;
    transform: none !important;
    background-color: rgba(0,0,0,0.2);
    border: none;
    margin-left: 30px;
}

.sidebar .dropdown-item {
    color: white;
    padding: 0.5rem 1.5rem;
}

    .sidebar .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
    }

/* Mobile sidebar toggler positioning */
.navbar-toggler {
    margin-left: auto;
    order: 2;
}

/* Ensure content doesn't get hidden behind fixed elements */
.main-content {
    padding-bottom: 80px; /* Adjust based on your footer height */
}
.form-select, .form-select option {
    padding-left: 20px;
}
/* Mobile sidebar specific styles */
@media (max-width: 992px) {
    .sidebar {
        width: 280px;
        left: -280px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

        .sidebar.show {
            left: 0;
        }

    /* Push main content when sidebar is open */
    body.sidebar-show {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Make sure navbar stays on top */
    .main-navbar {
        z-index: 1060;
    }
}

/* Desktop specific styles */
@media (min-width: 992px) {
    .sidebar {
        left: 0;
    }

    /* Hide mobile navbar content on desktop */
    #navbarSupportedContent {
        display: flex !important;
    }
}
/* Job Card Styles */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

.card-header {
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Text truncation for role purpose */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 4.2em; /* 3 lines * 1.4 line-height */
}

/* Job meta information */
.job-meta {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

    .job-meta p {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-description {
        margin-bottom: 1rem;
    }

    .job-meta {
        margin-top: 1rem;
    }

    .text-truncate-3 {
        -webkit-line-clamp: 2;
        max-height: 2.8em;
    }
}