:root {
    --primary-color: #0F766E;
    --secondary-color: #5EEAD4;
    --accent-color: #FB7185;
    --background-color: #F8FAFC;
    --text-color: #0F172A;
    --text-secondary: #475569;
    --muted: #94A3B8;
    --white: #FFFFFF;
    --gray: #475569;
    --light-gray: #E5E7EB;
    --border: #E5E7EB;
    --card-bg: #FFFFFF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

input,
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

nav {
    padding: 1rem 0;
    position: relative;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 10px;
        top: 10px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: auto;
        right: 10px;
        background: var(--primary-color);
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        align-items: flex-end;
        text-align: right;
        width: max-content;
        max-width: calc(100vw - 20px);
    }

    nav ul.active {
        display: flex;
    }
}

/* Premium Navigation Buttons - Professional Styling */
.nav-btn {
    display: flex !important;
    align-items: center;
    padding: 0.65rem 1.1rem !important;
    border-radius: 6px !important;
    margin: 0 !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    border: 1.5px solid transparent !important;
    position: relative;
    letter-spacing: 0.3px;
}

/* Primary Navigation Buttons (Ghost style) */
.nav-btn-primary {
    color: var(--white) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.nav-btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(2px) !important;
    color: var(--white) !important;
}

.nav-btn-primary:active {
    transform: translateX(0) !important;
}

/* Logout Button (CTA) - Premium Red */
.nav-btn-logout {
    background: linear-gradient(135deg, #FB7185 0%, #FB923C 100%) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.25);
    border: none !important;
    font-weight: 600;
}

.nav-btn-logout:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.35) !important;
    color: var(--white) !important;
}

.nav-btn-logout:active {
    transform: translateY(0) !important;
}

/* Keep backward compatibility with logout-btn class */
.logout-btn {
    display: flex !important;
    align-items: center;
    padding: 0.65rem 1.1rem !important;
    background: linear-gradient(135deg, #FB7185 0%, #FB923C 100%) !important;
    color: var(--white) !important;
    border-radius: 6px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.25);
    border: none !important;
}

.logout-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.35) !important;
    color: var(--white) !important;
}

.logout-btn:active {
    transform: translateY(0) !important;
}

/* Logout Modal */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.logout-modal.active {
    opacity: 1;
}

.logout-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-modal.active .logout-modal-content {
    transform: scale(1);
}

.logout-modal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logout-modal-header svg {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-modal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.logout-modal-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.logout-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.logout-btn-cancel,
.logout-btn-confirm {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
}

.logout-btn-cancel {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.logout-btn-cancel:hover {
    background-color: #D1D5DB;
    transform: translateY(-2px);
}

.logout-btn-confirm {
    background: linear-gradient(135deg, #FB7185 0%, #FB923C 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(251, 113, 133, 0.3);
}

.logout-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 113, 133, 0.4);
}

.logout-btn-confirm:active {
    transform: translateY(0);
}

.logout-modal.logging-out .logout-modal-content {
    animation: fadeOutUp 0.3s ease-out forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #0D9488;
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 4rem 0;
}

section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Features Section */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card img {
    height: 80px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonial-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonials .card {
    text-align: left;
}

.testimonials .card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonials .card span {
    font-weight: 600;
    color: var(--primary-color);
}


/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        width: 100%;
    }

    nav h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-cards {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    footer ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Dashboard responsive */
    .dashboard-layout {
        flex-direction: column;
        padding: 1rem;
    }

    .dashboard-sidebar.left,
    .dashboard-sidebar.right {
        width: 100%;
        margin-bottom: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content-grid {
        grid-template-columns: 1fr;
    }

    /* Auth pages responsive */
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1.25rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.auth-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-card p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.3);
}

.auth-button {
    width: 100%;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.auth-links {
    margin-top: 2rem;
}

.auth-links p {
    margin: 0.5rem 0;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
main.dashboard {
    background-color: var(--background-color);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.goal-list,
.deadline-list,
.recommended-resources ul {
    list-style: none;
    padding: 0;
}

.goal-list li,
.deadline-list li,
.recommended-resources li {
    margin-bottom: 1rem;
}

.goal-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.goal-list strong {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 12px;
    background-color: var(--light-gray);
    border-radius: 6px;
    flex-grow: 1;
    margin-right: 1rem;
}

.progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 6px;
}

.goal-list span {
    font-weight: 600;
    color: var(--secondary-color);
}

.deadline-list strong {
    color: var(--primary-color);
}

.recommended-resources a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.recommended-resources a:hover {
    text-decoration: underline;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.card-link:hover {
    text-decoration: underline;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    padding: 4rem 2rem;
    align-items: flex-start;
}



.dashboard-sidebar.left {
    width: 240px;
    background: transparent;
    box-shadow: none;
}

.dashboard-sidebar.right {
    width: 280px;
}

.sidebar-menu h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.75rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 16px;
    /* Slightly more rounded */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
    border: none;
    /* Remove border for cleaner look */
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Soft shadow */
    margin-bottom: 1rem;
    /* More space between items */
    position: relative;
    overflow: hidden;
}

.sidebar-menu li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    background-color: #fff;
    /* Ensure bg stays white on hover */
}

/* Add a subtle highlight effect on hover */
.sidebar-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-menu li a:hover::before {
    opacity: 1;
}

.sidebar-menu li a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    /* Gradient for active */
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.4), 0 4px 6px -2px rgba(15, 118, 110, 0.2);
    /* Colored shadow */
}

.sidebar-menu li a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 20px -6px rgba(15, 118, 110, 0.5);
    /* Stronger shadow on hover for active */
}

.sidebar-menu li a.active .sidebar-icon {
    /* Ensure icon is white in active state */
    stroke: var(--white);
}

/* Specific icon adjustments if needed, though stroke usually inherits color */
.sidebar-menu li a:not(.active) .sidebar-icon {
    color: var(--gray);
    transition: color 0.3s;
}

.sidebar-menu li a:hover .sidebar-icon {
    color: var(--primary-color);
}


.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

main.dashboard {
    flex-grow: 1;
    padding: 0;
}

.dashboard-container {
    padding: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-item {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.job-status {
    white-space: nowrap;
}

.option-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) {
    .dashboard-layout {
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .dashboard-sidebar.left {
        width: 200px;
    }

    .dashboard-sidebar.right {
        width: 240px;
    }

    .sidebar-menu h4 {
        font-size: 1rem;
        padding: 0 0.75rem;
    }

    .sidebar-menu li a {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .sidebar-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.75rem;
    }
}

/* Tablet portrait - Hide sidebar */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        align-items: stretch;
    }

    .dashboard-sidebar.left,
    .dashboard-sidebar.right {
        width: 100%;
        display: none;
    }

    main.dashboard {
        padding: 0;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .profile-grid,
    .results-grid,
    .roadmaps-grid,
    .resources-grid,
    .communities-grid {
        grid-template-columns: 1fr;
    }

    .job-board-container {
        grid-template-columns: 1fr;
    }

    .search-panel {
        position: static;
        margin-bottom: 1.5rem;
    }

    .sidebar-menu {
        margin-bottom: 1.5rem;
    }

    .job-item {
        align-items: flex-start;
    }
}

/* Mobile - Hide sidebar completely */
@media (max-width: 480px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.75rem;
    }

    .dashboard-sidebar.left,
    .dashboard-sidebar.right {
        width: 100%;
        display: none;
    }

    main.dashboard {
        padding: 0;
        min-width: 0;
    }

    .roadmaps-container,
    .resources-container,
    .communities-container {
        padding: 0.75rem;
    }

    .dashboard-container {
        padding: 0.75rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value,
    .stat-card .number {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 0.75rem;
    }

    .sidebar-menu h4 {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .sidebar-menu li a {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }

    .sidebar-icon {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
    }
}