/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #111827;
    /* Dark/Black for branding */
    --primary-dark: #000000;
    --primary-light: #F3F4F6;
    /* Light Gray */
    --text-color: #111827;
    /* Almost Black */
    --text-light: #6B7280;
    /* Gray */
    --background-color: #FFFFFF;
    /* White Background */
    --white: #FFFFFF;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --border-radius: 8px;
    /* Slightly squarer */
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

/* Header / Navbar */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    /* height removed as header handles it */
    display: block;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-light);
}

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
    color: var(--white);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: #FFFFFF;
    /* White background */
    color: var(--text-color);
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #F3F4F6;
    /* Subtle separator */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /* Extra bold */
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    /* Black */
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    /* Gray text */
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.6;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    /* Soften the image edges */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Services / Grid */
.service-card {
    background: var(--white);
    padding: 1.5rem;
    /* Compact padding */
    border-radius: 12px;
    box-shadow: none;
    /* Flat by default */
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid #E5E7EB;
    /* Subtle border */
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
    /* Highlight border on hover */
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Services Section Background */
#services {
    background-color: var(--primary-light);
    /* Light Gray to contrast with white cards */
}

/* Service Image Styles for Home Page */
.service-img-box {
    width: 100%;
    height: 200px;
    background-color: #F3F4F6;
    /* Neutral gray */
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    /* Center the image */
    align-items: center;
    justify-content: center;
}

/* Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-img {
    animation: float 4s ease-in-out infinite;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Auth Layout */
.auth-container {
    min-height: calc(100vh - 80px);
    /* Adjust for header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #F9FAFB;
    /* Neutral background */
}

.auth-box {
    background: var(--white);
    border-radius: 24px;
    /* More rounded */
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    width: 100%;
    max-width: 1000px;
    display: flex;
    min-height: 600px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-left {
    flex: 1;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.auth-right {
    flex: 1;
    background-color: #F3F4F6;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .auth-box {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .auth-left {
        padding: 2rem;
        order: 2;
    }

    .auth-right {
        order: 1;
        height: 200px;
    }
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    /* Slightly less rounded inputs for pro look */
    font-size: 1rem;
    background-color: #F9FAFB;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-btn {
    flex: 1;
    padding: 0.875rem;
    text-align: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-light);
}

.role-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 86, 210, 0.2);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar .nav-item {
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
    /* Proper opacity */
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar .nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 700;
}

.sidebar .material-icons {
    font-size: 20px;
}

.main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    /* Adjusted */
    background-color: #F8F9FA;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 2rem;
    }
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    /* Subtle dual shadow */
    border: 1px solid rgba(229, 231, 235, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.05);
    /* Slightly darker border on hover */
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    /* Darker text for value, not primary color */
    margin: 0.25rem 0;
    line-height: 1;
}

.stat-card span {
    font-size: 0.875rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    /* margin-bottom: 2rem; */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

thead {
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    vertical-align: middle;
}

th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:not(:last-child) {
    border-bottom: 1px solid #F3F4F6;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-completed {
    background-color: #ECFDF5;
    color: #059669;
}

.status-confirmed,
.status-accepted {
    background-color: #EFF6FF;
    color: #2563EB;
}

.status-pending {
    background-color: #FFFBEB;
    color: #D97706;
}

.status-cancelled {
    background-color: #FEF2F2;
    color: #DC2626;
}

.status-in-progress {
    background-color: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* SaaS Card (Job Market Items) */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #D1D5DB;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-light {
    color: var(--text-light);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Ensure headings use the new primary dark (black) */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
}

@media (max-width: 1024px) {
    .back-btn {
        display: inline-block !important;
    }
}

/* Mobile Responsive Adjustments for Dashboard */
@media (max-width: 768px) {
    .menu-btn {
        display: block !important;
    }

    .welcome-text {
        display: none;
        /* Hide on very small screens or change font-size */
    }

    header div {
        padding: 0 1rem !important;
    }

    .dashboard-layout {
        flex-direction: column;
        min-height: calc(100vh - 80px);
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 80px;
        width: 260px;
        height: calc(100vh - 80px);
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        left: 0;
    }

    #sidebarOverlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    #sidebarOverlay.active {
        display: block;
    }

    .main-content {
        padding: 1.5rem 1rem !important;
        width: 100%;
    }

    /* Grid layout adjustments */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .stat-card {
        padding: 1.25rem !important;
    }

    .stat-value {
        font-size: 2rem !important;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 1.5rem !important;
    }

    #bookingModal .modal-content div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}