:root {
    /* 🌊 Modern Blue Palette */
    --primary: #5A8CFA;
    --primary-dark: #4175E2;
    --primary-light: #F0F5FA;
    --secondary: #2C3D5F;
    --accent: #F9A826;
    --background: #F4F7FE;
    --surface: #ffffff;
    --border: #E2E8F0;
    --text-main: #2C3D5F;
    --text-muted: #A4B2CC;
    --error: #FF647C;
    --success: #00C48C;
    --warning: #F9A826;

    /* Utility */
    --shadow-sm: 0 4px 12px rgba(90, 140, 250, 0.05);
    --shadow-md: 0 8px 24px rgba(90, 140, 250, 0.08);
    --shadow-lg: 0 16px 40px rgba(90, 140, 250, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 24px);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

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

/* Cards & UI Blocks */
.card,
.auth-card,
.job-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 16px;
}

.auth-wrapper {
    background: radial-gradient(circle at top left, #ecfdf5, #eff6ff, #f8fafc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
}

.content-inner .auth-card {
    max-width: 100%;
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.auth-wrapper .auth-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(32px, 8vw, 48px);
    margin: 0;
    box-shadow: var(--shadow-lg) !important;
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.job-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Form Design */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(90, 140, 250, 0.3);
    font-family: 'Inter', sans-serif !important;
    margin-top: 10px;

}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(90, 140, 250, 0.4);
    background: var(--primary-dark);
}

.floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(90, 140, 250, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.floating-add-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(90, 140, 250, 0.4);
    background: var(--primary-dark);
}

.btn-dark {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(44, 61, 95, 0.2);
}

.btn-dark:hover {
    background: #1C274C;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 61, 95, 0.3);
}

.btn-white {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* ═══ Calendar Component ═══ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calendar-day.other-month {
    opacity: 0.3;
    pointer-events: none;
    background: transparent;
}

.calendar-day.is-today {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.calendar-day.is-today .day-number {
    color: var(--primary);
    font-size: 18px;
}

.day-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.job-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-arrow:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Rich Text Content (CKEditor) */
.rich-text {
    line-height: 1.1;
    color: var(--text-main);
}

.rich-text p {
    margin-bottom: 1em;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 1em;
    padding-left: 24px;
}

.rich-text ul {
    list-style-type: disc;
}

.rich-text ol {
    list-style-type: decimal;
}

.rich-text li {
    margin-bottom: 0.5em;
}

.rich-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* CKEditor Overrides */
:root {
    --ck-border-radius: 12px;
    --ck-color-base-border: var(--border);
    --ck-color-focus-border: var(--primary);
    --ck-color-shadow-inner: transparent;
    --ck-color-shadow-drop: transparent;
}

.ck-editor__editable {
    min-height: 200px !important;
    border-bottom-left-radius: var(--ck-border-radius) !important;
    border-bottom-right-radius: var(--ck-border-radius) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 0 15px !important;
    line-height: 1.6 !important;
}

.ck-toolbar {
    border-top-left-radius: var(--ck-border-radius) !important;
    border-top-right-radius: var(--ck-border-radius) !important;
    background: var(--bg-main) !important;
    border-color: var(--border) !important;
}

.ck.ck-editor__main>.ck-editor__editable.ck-focused {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
    outline: none !important;
}

.ck.ck-toolbar {
    border-bottom: 1px solid var(--border) !important;
}

/* Notification Bar */
.notification-bar {
    background: var(--text-main);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.notification-bar.hidden {
    display: none;
}

.notification-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.notification-close:hover {
    opacity: 1;
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    height: 70px;
    background: var(--secondary);
    border-radius: 35px;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 16px 32px rgba(44, 61, 95, 0.3);
    border: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff !important;
    font-size: 11px;
    font-weight: 500;
    gap: 6px;
    flex: 1;
    transition: all 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary) !important;
}

.bottom-nav-item .material-icons {
    font-size: 24px;
}


/* ═══ Jobs Page Components ═══ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.5px;
    margin-top: 20px;
}

/* Filter System */
.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.filter-container {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

/* Modern Job Cards */
.jobs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.job-card-new {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px 60px 20px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.job-card-new:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.job-date-badge {
    background: var(--bg-main);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    transition: all 0.2s ease;
}

.job-card-new:hover .job-date-badge {
    background: var(--primary-light);
    color: var(--primary);
}

.job-date-badge .day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.job-date-badge .month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.job-content {
    flex: 1;
}

.job-main-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.job-sub-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.job-right-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.job-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.badge-approved {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-waiting {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #ffedd5;
}

.job-delete-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: 0.2s;
}

.job-delete-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    header {
        display: none;
    }

    body {
        padding-bottom: 80px;
    }

    .nav-links {
        display: none;
    }

    .calendar-grid {
        gap: 4px;
        padding: 12px;
        border-radius: var(--radius-md);
    }

    .calendar-day {
        padding: 4px;
    }

    .day-number {
        font-size: 13px;
    }

    .job-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: 2px;
        right: 2px;
    }

    /* Jobs Responsive */
    .filter-toggle {
        display: flex;
    }

    .filter-container {
        display: none;
        padding: 16px;
    }

    .filter-container.active {
        display: block;
    }

    .job-card-new {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 52px 16px 16px;
        gap: 16px;
    }

    .job-right-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border);
        padding-top: 12px;
    }

    .job-price-tag {
        margin-bottom: 0;
    }

    .job-delete-btn {
        opacity: 1;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .job-right-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .job-price-tag {
        font-size: 16px;
    }

    .btn-copy-container {
        display: flex;
        width: 100%;
        gap: 8px;
        margin-top: 4px;
    }

    .btn-copy-small {
        flex: 1;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
        margin-top: 0;
    }

    .job-badges-container {
        justify-content: flex-start !important;
        width: 100%;
    }

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

    .job-sub-meta {
        gap: 8px;
    }
}

/* ═══ Tab Interface ═══ */
.tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-main);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: calc(var(--radius-md) - 4px);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ Copy Button & Toast Styles ═══ */
.btn-copy-container {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-copy-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.08);
    color: var(--primary);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sözleşme - Purple/Indigo */
.btn-copy-contract {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.btn-copy-contract:hover {
    background: #6366f1 !important;
    color: white !important;
}

/* Takip - Green */
.btn-copy-track {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.btn-copy-track:hover {
    background: #10b981 !important;
    color: white !important;
}

/* Ekip - Blue */
.btn-copy-team {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.btn-copy-team:hover {
    background: #3b82f6 !important;
    color: white !important;
}

.job-badges-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.custom-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none;
    opacity: 0;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .tabs-header {
        position: sticky;
        top: 70px;
        z-index: 90;
        backdrop-filter: blur(10px);
        background: rgba(248, 250, 252, 0.8);
    }

    .tab-btn {
        font-size: 10px;
        padding: 10px 8px;
    }
}

/* Floating Action Button (Mobile) */
.nav-fab-wrapper {
    flex: 0 0 70px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
}

.nav-fab {
    position: absolute;
    top: -24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(90, 140, 250, 0.4);
    border: 6px solid var(--background);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    text-decoration: none !important;
}

.nav-fab:active {
    transform: scale(0.9);
}

.nav-fab .material-icons {
    font-size: 32px;
    color: white;
}

@media (min-width: 769px) {
    .nav-fab-wrapper {
        display: none;
    }
}