@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    overflow: hidden;
    background: var(--bg-body);
    font-family: var(--font-body);
}

:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary-color: #10b981;
    --accent-color: #f43f5e;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-light: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.5);

    --sidebar-width: 280px;
    --header-height: 80px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body.dark-theme {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;

    --secondary-color: #1e293b;
    --text-main: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;

    --border-light: #334155;
    --bg-body: #0f172a;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body.dark-theme {
    background: #0f172a;
    background-image: none;
    color: var(--text-main);
}

body.dark-theme .glass,
body.dark-theme .sidebar,
body.dark-theme .stat-card,
body.dark-theme .tasks-table-container,
body.dark-theme .tasks-table th,
body.dark-theme .tasks-table td,
body.dark-theme .calendar-grid,
body.dark-theme .cal-cell,
body.dark-theme .task-card,
body.dark-theme .focus-container .timer-modes,
body.dark-theme .filter-btn,
body.dark-theme .btn-secondary,
body.dark-theme .form-control {
    background: #1e293b;
    border-color: #334155;
    color: var(--text-main);
}

body.dark-theme .board-column {
    background: #0f172a;
}

body.dark-theme .cal-cell:hover,
body.dark-theme .task-card:hover,
body.dark-theme .tasks-table tr:hover td {
    background: #334155;
}

body.dark-theme .page-header h1 {
    background: linear-gradient(135deg, #e0e7ff 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme input {
    background: #1e293b;
    color: white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-image: url('https://grainy-gradients.vercel.app/noise.svg'), linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

body:has(.auth-container) {
    background: white !important;
    background-image: none !important;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

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

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

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

.app-container {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-left: 5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-glow);
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px 14px 14px 4px;
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 5;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    width: 350px;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    width: 380px;
}

.search-bar input {
    border: none;
    background: transparent;
    margin-left: 12px;
    flex-grow: 1;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
}

.user-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-avatar img:hover {
    transform: scale(1.1) rotate(3deg);
}

.content-wrapper {
    padding: 40px;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--text-light) transparent;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-header i {
    font-size: 20px;
    color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.tasks-table-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.table-toolbar {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tasks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tasks-table th {
    text-align: left;
    padding: 20px 30px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
}

.tasks-table td {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    vertical-align: middle;
}

.tasks-table tr {
    transition: background 0.2s;
}

.tasks-table tr:hover td {
    background-color: #f1f5f9;
}

.tasks-table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-work {
    background: #e0e7ff;
    color: #4338ca;
}

.badge-personal {
    background: #fae8ff;
    color: #86198f;
}

.badge-study {
    background: #ecfdf5;
    color: #047857;
}

.badge-health {
    background: #fef2f2;
    color: #b91c1c;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: all 0.3s transform;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-light);
}

.icon-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.icon-btn i {
    font-size: 20px;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

body.dark-theme .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}



.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

body.dark-theme .alert-success {
    background: rgba(4, 120, 87, 0.2);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.2);
}

body.dark-theme .alert-error {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.2);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-surface);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

body.dark-theme .modal {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

.bg-white-fix {
    background: var(--bg-surface);
}

body.dark-theme .bg-white-fix {
    background: #1e293b;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    border-color: var(--primary-light);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

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

.fade-out {
    animation: fadeOut 0.5s forwards;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-box {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-container {
    padding: 0;
    gap: 0;
    background: white;
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    overflow-y: auto;
}

.auth-left {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 60px;
    z-index: 2;
}

.auth-right {
    display: none !important;
}

.auth-right::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.2;
}

.auth-decoration {
    color: white;
    text-align: center;
    padding: 60px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.user-menu-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: #fef2f2;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-radius: 0;
        height: auto;
        padding: 20px;
        border: none;
    }

    .main-content {
        border-radius: 0;
        border: none;
    }

    .auth-right {
        display: none;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Calendar */
/* Calendar */
/* Page Header Compact */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Calendar */
/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    width: 100%;
    /* Sabit yükseklik yerine min-height verip sığmasını sağlayalım */
    height: auto;
    min-height: calc(100vh - 220px);
    box-sizing: border-box;
}

.cal-head {
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.cal-cell {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    min-height: 120px;
    /* Daha uzun hücre */
    padding: 8px;
    position: relative;
    transition: background 0.2s;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.overdue-card::before {
    display: none !important;
}

.cal-cell:hover {
    background: #f8fafc;
}

.cal-cell.today {
    background: #eff6ff;
    border-color: var(--primary-light);
}

.mini-task {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    font-weight: 600;
    transition: transform 0.2s;
}

.mini-task:hover {
    transform: translateX(2px);
}

/* Focus Mode */
.timer-display {
    font-variant-numeric: tabular-nums;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Auth Headers Styling - Fixed Spacing */
.auth-header {
    text-align: center;
    margin-bottom: 16px;
}

.auth-header .logo-area {
    margin: 0 auto 12px auto;
    width: fit-content;
    padding: 0;
    justify-content: center;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 0;
}

/* Board Board */
.task-board {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 20px;
}

.board-column {
    flex: 1;
    min-width: 260px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-height: calc(100vh - 220px);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.header-todo {
    border-bottom: 3px solid #64748b;
    padding-bottom: 8px;
}

.header-progress {
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 8px;
}

.header-done {
    border-bottom: 3px solid #22c55e;
    padding-bottom: 8px;
}

.column-content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.task-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: grab;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.task-card:active {
    cursor: grabbing;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--border-light);
}

.card-badges {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-date.overdue {
    color: #ef4444;
    font-weight: 600;
}

.priority-high,
.priority-high i {
    color: #ef4444 !important;
}

.priority-medium,
.priority-medium i {
    color: #f59e0b !important;
}

/* Dark Mode Scrollbar for Columns */
body.dark-theme .column-content::-webkit-scrollbar-thumb {
    background-color: #475569;
}

body.dark-theme .column-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.priority-low,
.priority-low i {
    color: #3b82f6 !important;
}

/* Scrollbar for columns */
.column-content::-webkit-scrollbar {
    width: 6px;
}

.column-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* Reusable Content Card */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    color: var(--text-main);
}

/* Project Card */
.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

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

/* Dark theme specific override ensures background isn't white */
body.dark-theme .project-card,
body.dark-theme .content-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .project-card h3 {
    color: #f8fafc !important;
}

/* Dark Mode Enhancements for Tables and Stats */
body.dark-theme .tasks-table-container {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .tasks-table th {
    background: #0f172a;
    color: #cbd5e1;
    border-bottom: 1px solid #334155;
}

body.dark-theme .tasks-table td {
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

body.dark-theme .table-toolbar {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .toolbar-left {
    color: #f8fafc !important;
}

body.dark-theme .filter-btn {
    color: #cbd5e1;
    background: #0f172a;
    border: 1px solid #334155;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .filter-btn.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

body.dark-theme .stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

body.dark-theme .stat-header span {
    color: #cbd5e1;
}


body.dark-theme .stat-header i {
    color: #94a3b8;
}

body.dark-theme .main-content {
    background: #1e293b;
    /* Dark slate background */
    border-color: #334155;
    color: #f8fafc;
}


body.dark-theme .calendar-grid {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .top-header {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .search-bar {
    background: #0f172a;
    border-color: #334155;
}

body.dark-theme .search-bar input {
    color: #f8fafc;
}

body.dark-theme .search-bar i {
    color: #94a3b8;
}


body.dark-theme .cal-cell {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .cal-cell:hover {
    background: #334155;
}

body.dark-theme .cal-cell.today {
    background: #1e293b;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

body.dark-theme .cal-head {
    color: #cbd5e1;
}

body.dark-theme .tasks-table tr:hover td {
    background-color: #1e293b;
    /* Slightly lighter than background or distinct hover color */
    background-color: #334155;
}

/* Calendar Navigation */
.calendar-nav {
    background: white;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    display: flex;
}

body.dark-theme .calendar-nav {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* Takvim İçi Görev Stili */
.mini-task {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 3px;
    cursor: pointer;
    line-height: 1.3;
    font-weight: 500;
    transition: all 0.2s ease;

    /* Uzun metinler için */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* En fazla 4 satır - Kullanıcı isteği üzerine artırıldı */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    /* Alt satıra geçebilsin */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mini-task:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.cal-cell.empty {
    background: transparent !important;
    border: none !important;
}

.cal-cell.faded {
    background: #f9fafb;
    color: var(--text-muted);
}

body.dark-theme .cal-cell.faded {
    background: #0f172a;
    /* Slightly darker than main calendar */
    border: 1px solid #334155;
    color: #475569;
}

/* Dark Mode Input Fixes */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .form-control {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
}

body.dark-theme input::placeholder {
    color: #64748b !important;
}

/* Fix for Note Cards in Dark Mode */
.note-card textarea,
body.dark-theme .note-card textarea {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dropdown Header Styles */
.dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.d-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 15px;
}

.d-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

/* Sidebar Footer & Profile Card */
.sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
}

.user-profile-card {
    background: transparent;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    cursor: default;
}

.user-profile-card:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.02);
}

.user-profile-card img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    flex: 1;
    overflow: hidden;
}

.profile-info .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.profile-info .plan {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.logout-btn:hover {
    background: rgba(254, 202, 202, 0.1);
    color: #ef4444;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4), 0 0 4px rgba(239, 68, 68, 0.2);
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

/* Dark Mode Adjustments */
body.dark-theme .user-profile-card {
    background: transparent;
}

body.dark-theme .user-profile-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .logout-btn:hover {
    background: rgba(127, 29, 29, 0.2);
    color: #f87171;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.4), 0 0 5px rgba(248, 113, 113, 0.2);
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* TABLET & SMALL LAPTOP (Max Width: 1024px) */
@media (max-width: 1024px) {
    .app-container {
        padding: 10px;
        gap: 10px;
    }

    .sidebar {
        width: 240px;
        /* Biraz daha dar sidebar */
    }

    .content-wrapper {
        padding: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .task-board {
        gap: 16px;
    }

    .board-column {
        padding: 12px;
    }
}

/* MOBILE DEVICES (Max Width: 768px) */
@media (max-width: 768px) {
    body {
        overflow: auto;
        /* Mobilde scroll yapabilsin */
    }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 0;
        gap: 0;
    }

    /* Sidebar Mobile Style */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        /* Ekran dışına it */
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        border-right: 1px solid var(--border-light);
    }

    .sidebar.active {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    /* Main Content Mobile */
    .main-content {
        border-radius: 0;
        border: none;
        width: 100%;
        margin: 0;
        overflow: visible;
        min-height: 100vh;
    }

    .top-header {
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 50;
        /* Scroll ederken üstte kalsın */
    }

    .header-left {
        gap: 10px;
    }

    .mobile-menu-btn {
        display: flex !important;
        /* Hamburger menü görünsün */
    }

    .user-actions .icon-btn {
        width: 36px;
        height: 36px;
    }

    .content-wrapper {
        padding: 16px;
        height: auto;
        overflow: visible;
        /* İçerik taşsın */
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        /* Tek kolon */
        gap: 16px;
    }

    /* Tasks Table */
    .tasks-table-container {
        overflow-x: auto;
        /* Yatay scroll */
        border-radius: 12px;
    }

    .table-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .toolbar-right {
        display: flex;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .tasks-table th,
    .tasks-table td {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        /* Satırlar kırılmasın */
    }

    /* Board Mobile */
    .task-board {
        flex-direction: column;
        /* Alt alta diz */
        gap: 20px;
        height: auto;
        padding-bottom: 40px;
    }

    .board-column {
        min-width: 100%;
        max-height: 500px;
        /* Kaydırılabilir olsun */
    }

    /* Search Bar Hide on Mobile (Optional) */
    .search-bar {
        display: none;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions button {
        width: 100%;
    }

    /* Analytics Page Mobile */
    .stats-grid+div {
        flex-direction: column;
    }
}
