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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: #2d3748;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

img, input, textarea, select, button { max-width: 100%; }

/* ====== APP LAYOUT ====== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.sidebar {
    width: 220px;
    background: #1e3a5f;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-menu li.active a {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: #fff;
}

.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-user { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.8); }

.sidebar-logout {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-logout:hover { color: #fca5a5; border-color: rgba(252,165,165,0.3); }

/* ====== MOBILE HEADER ====== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: #1e3a5f;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mobile-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
}

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-user { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.show { display: block; }

/* ====== MAIN CONTENT ====== */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 28px 32px;
    min-width: 0;
}

.page-header { margin-bottom: 24px; }

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1e3a5f;
}

.page-subtitle { color: #94a3b8; font-size: 0.88rem; margin-top: 4px; }

/* ====== LOGIN ====== */
.login-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(15,30,60,0.08);
    animation: fadeInUp 0.8s ease-out;
    border-top: 3px solid #1e3a5f;
}

.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #1e3a5f; }
.login-logo p { color: #94a3b8; font-size: 0.85rem; margin-top: 8px; letter-spacing: 3px; text-transform: uppercase; }

/* ====== STATS GRID ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1e3a5f;
}

.stat-card.stat-green  { border-left-color: #16a34a; }
.stat-card.stat-orange { border-left-color: #d97706; }
.stat-card.stat-blue   { border-left-color: #2563eb; }
.stat-card.stat-purple { border-left-color: #7c3aed; }
.stat-card.stat-teal   { border-left-color: #0d9488; }

.stat-number { font-size: 1.8rem; font-weight: 700; color: #1e3a5f; }
.stat-label { font-size: 0.78rem; color: #94a3b8; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ====== DASHBOARD GRID ====== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    min-width: 0;
}

.dashboard-card h3 {
    font-size: 0.95rem;
    color: #1e3a5f;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.upcoming-list { list-style: none; }
.upcoming-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.upcoming-list li:last-child { border-bottom: none; }
.upcoming-title { font-weight: 500; font-size: 0.88rem; color: #2d3748; }
.upcoming-meta { font-size: 0.75rem; color: #94a3b8; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.activity-list { list-style: none; }
.activity-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.activity-list li:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; background: #1e3a5f; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.activity-content { font-size: 0.82rem; line-height: 1.5; min-width: 0; word-break: break-word; }
.activity-user { font-weight: 600; color: #1e3a5f; }
.activity-desc { color: #64748b; }
.activity-time { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 2px; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 18px; }

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"], input[type="password"], input[type="date"],
textarea, select {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #2d3748;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1e3a5f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.06);
}

input::placeholder, textarea::placeholder { color: #a0aec0; }
select option { background: #fff; color: #2d3748; }

.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    text-align: center;
}

.btn-primary:hover {
    background: #2d4a73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.2);
}

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

/* ====== PANEL ====== */
.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel h3 { font-size: 0.95rem; color: #1e3a5f; margin-bottom: 18px; }

/* ====== ALERTS ====== */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 0.85rem; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.error { background: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 0.85rem; border: 1px solid #fecaca; }

/* ====== BADGES ====== */
.priority-badge, .status-badge, .project-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-dusuk { background: #f1f5f9; color: #94a3b8; }
.priority-normal { background: #eff6ff; color: #2563eb; }
.priority-yuksek { background: #fff7ed; color: #d97706; }
.priority-acil { background: #fef2f2; color: #dc2626; }

.status-badge { background: #f1f5f9; color: #64748b; }
.status-beklemede { background: #f1f5f9; color: #64748b; }
.status-devam-ediyor { background: #eff6ff; color: #2563eb; }
.status-tamamlandi { background: #f0fdf4; color: #16a34a; }
.status-aktif { background: #eff6ff; color: #2563eb; }

.project-badge { background: #faf5ff; color: #7c3aed; }

.count-badge {
    font-size: 0.72rem;
    color: #64748b;
    background: #edf2f7;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

/* ====== FILTER BAR ====== */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover { border-color: #1e3a5f; color: #1e3a5f; }
.filter-btn.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

/* ====== TASK CARDS ====== */
.task-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s;
}

.task-card:hover { box-shadow: 0 2px 12px rgba(15,30,60,0.05); }
.task-beklemede { border-left-color: #94a3b8; }
.task-devam-ediyor { border-left-color: #2563eb; }
.task-tamamlandi { border-left-color: #16a34a; opacity: 0.75; }

.task-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.task-top > div { display: flex; gap: 6px; flex-wrap: wrap; }
.task-due { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; }

.task-card h4 { font-size: 0.95rem; font-weight: 600; color: #2d3748; margin-bottom: 6px; word-break: break-word; }
.task-desc { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin-bottom: 12px; word-break: break-word; }

.task-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; gap: 10px; flex-wrap: wrap; }
.task-people { font-size: 0.75rem; color: #94a3b8; display: flex; gap: 10px; flex-wrap: wrap; }
.task-assigned { color: #1e3a5f; font-weight: 500; }
.task-creator { color: #94a3b8; }
.task-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.btn-sm {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
    background: none;
    white-space: nowrap;
    -webkit-appearance: none;
}

.btn-blue   { color: #2563eb; border-color: #bfdbfe; }
.btn-blue:hover { background: #eff6ff; }
.btn-green  { color: #16a34a; border-color: #bbf7d0; }
.btn-green:hover { background: #f0fdf4; }
.btn-orange { color: #d97706; border-color: #fde68a; }
.btn-orange:hover { background: #fffbeb; }
.btn-red    { color: #dc2626; border-color: #fecaca; }
.btn-red:hover { background: #fef2f2; }

/* ====== PROJECT CARDS ====== */
.project-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 14px;
    border-left: 4px solid #2563eb;
    transition: all 0.2s;
}

.project-card:hover { box-shadow: 0 2px 12px rgba(15,30,60,0.05); }
.project-beklemede { border-left-color: #94a3b8; }
.project-tamamlandi { border-left-color: #16a34a; opacity: 0.75; }

.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.project-dates { font-size: 0.75rem; color: #94a3b8; }

.project-card h4 { font-size: 1rem; font-weight: 600; color: #2d3748; margin-bottom: 6px; word-break: break-word; }
.project-desc { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin-bottom: 14px; word-break: break-word; }

.progress-section { margin-bottom: 14px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #64748b; margin-bottom: 6px; }
.progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #16a34a; border-radius: 3px; transition: width 0.3s; min-width: 0; }

.project-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; gap: 10px; flex-wrap: wrap; }

/* ====== NOTES ====== */
.notes-section-header { display: flex; align-items: center; margin-bottom: 16px; }
.notes-section-header h3 { font-size: 0.95rem; color: #1e3a5f; }

.note-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-left: 4px solid #cbd5e0;
    transition: all 0.2s;
}

.note-card:hover { box-shadow: 0 2px 12px rgba(15,30,60,0.05); }
.note-card.card-default { border-left-color: #1e3a5f; }
.note-card.card-purple  { border-left-color: #7c3aed; background: #faf9fc; }
.note-card.card-blue    { border-left-color: #2563eb; background: #f8faff; }
.note-card.card-green   { border-left-color: #16a34a; background: #f7fbf9; }
.note-card.card-red     { border-left-color: #dc2626; background: #fdf8f8; }
.note-card.card-gold    { border-left-color: #d97706; background: #fdfcf7; }

.note-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 6px; flex-wrap: wrap; }
.note-author { font-size: 0.72rem; color: #1e3a5f; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.note-date { font-size: 0.72rem; color: #94a3b8; }
.note-category { display: inline-block; font-size: 0.68rem; color: #1e3a5f; background: #edf2f7; padding: 2px 8px; border-radius: 10px; margin-left: 6px; font-weight: 500; }
.note-card h4 { font-size: 0.95rem; font-weight: 600; color: #2d3748; margin-bottom: 6px; word-break: break-word; }
.note-content { font-size: 0.85rem; color: #4a5568; line-height: 1.7; margin-bottom: 12px; white-space: pre-wrap; word-wrap: break-word; word-break: break-word; }
.note-footer { display: flex; justify-content: flex-end; }

/* Toolbar */
.toolbar { display: flex; gap: 4px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px 6px 0 0; border-bottom: none; flex-wrap: wrap; }
.toolbar button { background: #fff; border: 1px solid #e2e8f0; color: #64748b; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.78rem; font-family: 'Inter', sans-serif; transition: all 0.2s; -webkit-appearance: none; }
.toolbar button:hover { background: #edf2f7; color: #1e3a5f; }
.has-toolbar { border-radius: 0 0 6px 6px !important; }

.color-picker { display: flex; flex-direction: row; gap: 8px; margin-top: 6px; }
.color-dot { display: inline-block; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; flex-shrink: 0; }
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: #1e3a5f; box-shadow: 0 0 6px rgba(30,58,95,0.25); }
.color-dot[data-color="default"] { background: #cbd5e0; }
.color-dot[data-color="purple"]  { background: #b4a7d6; }
.color-dot[data-color="blue"]    { background: #90b8e0; }
.color-dot[data-color="green"]   { background: #8cbfa0; }
.color-dot[data-color="red"]     { background: #e0a0a0; }
.color-dot[data-color="gold"]    { background: #d4c080; }

.char-counter { text-align: right; font-size: 0.72rem; color: #a0aec0; margin-top: 6px; }
.char-counter.warn { color: #d97706; }
.char-counter.limit { color: #dc2626; }

.empty-text { color: #94a3b8; font-style: italic; font-size: 0.88rem; }

/* ====== PROJECT DETAIL ====== */
.back-link {
    display: inline-block;
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.back-link:hover { color: #1e3a5f; }

.project-info-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.info-date, .info-creator {
    font-size: 0.78rem;
    color: #94a3b8;
}

.project-detail-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.6;
}

.project-link {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s;
}
.project-link:hover { color: #2563eb; text-decoration: underline; }

.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }

.progress-section-big {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.progress-bar-big {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ====== TIMELINE ====== */
.timeline-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 0;
}

.timeline-section h3 {
    font-size: 0.95rem;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-group {
    margin-bottom: 24px;
}

.timeline-group:last-child { margin-bottom: 0; }

.timeline-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: #16a34a; }
.dot-blue { background: #2563eb; }
.dot-gray { background: #94a3b8; }

.timeline-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #2d3748;
}

.timeline-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

.timeline-empty {
    font-size: 0.82rem;
    color: #94a3b8;
    font-style: italic;
    padding-left: 22px;
    margin-bottom: 8px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding-left: 5px;
    margin-bottom: 8px;
}

.timeline-line {
    width: 2px;
    background: #e2e8f0;
    flex-shrink: 0;
    min-height: 40px;
    margin-left: 5px;
}

.timeline-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 0;
}

.timeline-card-title {
    font-weight: 500;
    font-size: 0.85rem;
    color: #2d3748;
    word-break: break-word;
}

.timeline-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE - TABLET (768-1024px)
   ========================================== */
@media (max-width: 1024px) {
    .main-content { padding: 24px 20px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .form-row-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Mobile header göster */
    .mobile-header { display: flex; }

    /* Sidebar gizle, toggle ile açılır */
    .sidebar {
        left: -260px;
        width: 260px;
    }
    .sidebar.open { left: 0; }

    /* Ana içerik: sidebar margin kaldır, üst padding mobile header için */
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 72px;
    }

    .page-header h1 { font-size: 1.3rem; }
    .page-subtitle { font-size: 0.82rem; }

    /* Project detail mobile */
    .stats-grid-4 { grid-template-columns: 1fr 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .project-info-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .timeline-section { padding: 16px; }
    .timeline-card { padding: 8px 12px; }
    .timeline-card-title { font-size: 0.82rem; }
    .progress-section-big { padding: 14px 16px; }

    /* Stats: 2 sütun */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card { padding: 14px 12px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.68rem; }

    /* Dashboard kartları: tek sütun */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .dashboard-card { padding: 16px; }
    .dashboard-card h3 { font-size: 0.9rem; }

    /* Formlar: tek sütun */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group { margin-bottom: 18px; }

    .form-row-4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .panel { padding: 16px; }
    .panel h3 { font-size: 0.9rem; }

    /* Görev kartları */
    .task-card { padding: 14px; }
    .task-top { flex-direction: column; align-items: flex-start; gap: 6px; }
    .task-card h4 { font-size: 0.9rem; }
    .task-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .task-people { flex-direction: column; gap: 2px; font-size: 0.72rem; }
    .task-actions { width: 100%; }

    /* Proje kartları */
    .project-card { padding: 14px; }
    .project-top { flex-direction: column; align-items: flex-start; gap: 4px; }
    .project-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .project-bottom .task-actions { width: 100%; }

    /* Not kartları */
    .note-card { padding: 14px; }
    .note-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .note-category { margin-left: 0; }

    /* Toolbar */
    .toolbar { gap: 3px; padding: 6px 8px; }
    .toolbar button { padding: 4px 8px; font-size: 0.72rem; }

    /* Color dot */
    .color-dot { width: 26px; height: 26px; }

    /* Butonlar */
    .btn-primary { padding: 12px; font-size: 0.88rem; }
    .btn-sm { padding: 6px 10px; font-size: 0.7rem; }

    /* Login */
    .login-container {
        padding: 32px 20px;
        border-radius: 12px;
        max-width: 100%;
    }
    .login-logo h1 { font-size: 1.5rem; }
    .login-logo p { font-size: 0.75rem; letter-spacing: 2px; }

    /* Filtre scroll */
    .filter-bar { gap: 4px; }
    .filter-btn { padding: 6px 12px; font-size: 0.75rem; }

    /* Activity / upcoming */
    .activity-content { font-size: 0.78rem; }
    .upcoming-title { font-size: 0.82rem; }
    .upcoming-meta { font-size: 0.72rem; }
}

/* ==========================================
   RESPONSIVE - SMALL PHONE (max 400px)
   ========================================== */
@media (max-width: 400px) {
    .main-content {
        padding: 10px;
        padding-top: 66px;
    }

    .stats-grid { gap: 8px; }
    .stat-card { padding: 10px; }
    .stat-number { font-size: 1.2rem; }

    .form-row-4 { grid-template-columns: 1fr; }

    .panel { padding: 12px; }

    .task-card, .project-card, .note-card { padding: 12px; }

    .login-container { padding: 24px 16px; }
    .login-logo h1 { font-size: 1.3rem; }

    .mobile-header h2 { font-size: 0.95rem; }

    .priority-badge, .status-badge, .project-badge {
        font-size: 0.62rem;
        padding: 2px 6px;
    }

    .btn-sm { padding: 5px 8px; font-size: 0.68rem; }
}
