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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --sidebar-bg: #f5f5f5;
    --text-primary: #1a202c;
    --text-secondary: #626262;
    --text-tertiary: #9ca3af;
    --accent: #ff6b6b;
    --accent-light: #FFE2E2;
    --success: #51cf66;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --sidebar-bg: #151515;
    --text-primary: #fafbfc;
    --text-secondary: #ccc;
    --text-tertiary: #888;
    --accent: #ff6b6b;
    --accent-light: #FFE2E2;
    --success: #51cf66;
    --border: #333;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    line-height: 1.6;
}

.main-container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 340px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.user-section {
    margin-bottom: 8px;
}

#usernameInput {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

#usernameInput:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.user-greeting {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

.sidebar-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Timer Circular */
.timer-section {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.timer-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    min-height: 220px;
}

.timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-circle-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.timer-display {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-status {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.progress-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: var(--accent);
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c8c 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    margin-top: auto;
}

.toggle-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Ayarlar */
.settings-section {
    margin-top: auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-group input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* Görevler */
.tasks-container {
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

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

.tasks-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.walking-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-track {
    width: 120px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.walking-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.5s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.task-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.task-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.task-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.task-input-group .btn-primary {
    padding: 14px 20px;
    flex: 0 0 auto;
    border-radius: 10px;
    font-size: 18px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Yeni Görev Tasarımı */
.task-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--bg-tertiary);
}

.task-item.completed::before {
    background: var(--success);
}

.task-item.completed .task-content {
    opacity: 0.8;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.task-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-btn {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    background: var(--bg-primary);
}

.task-delete {
    color: var(--accent);
    border-color: var(--accent);
}

.task-delete:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state span {
    font-size: 14px;
    opacity: 0.7;
}

/* SAĞ PANEL - İstatistikler */
.stats-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border);
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.stats-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.user-icon {
    font-size: 16px;
}

#displayUsername {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.progress-section {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #51cf66 0%, var(--accent) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    text-align: center;
}

.motivation-section {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.motivation-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* İletişim Bölümü */
.contact-section {
    background: var(--bg-secondary);
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c8c 100%);
    padding: 16px 20px;
}

.contact-header h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-content {
    padding: 20px;
}

.designer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.designer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.designer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.designer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.designer-role {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.portfolio-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.portfolio-link:hover::before {
    left: 100%;
}

.portfolio-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.portfolio-link svg {
    transition: transform 0.3s ease;
}

.portfolio-link:hover svg {
    transform: translateX(3px);
}

/* Dark mode için iletişim kutusu stilleri */
body.dark-mode .portfolio-link {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

body.dark-mode .portfolio-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
        max-height: auto;
    }

    .stats-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
    }

    .settings-section {
        margin-top: 0;
    }

    .main-content {
        flex: 1;
    }

    .tasks-container {
        padding: 24px;
    }
    
    .timer-circle-container {
        min-height: 200px;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-display {
        font-size: 32px;
    }

    .tasks-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .walking-progress {
        width: 100%;
        justify-content: space-between;
    }
    
    .contact-section {
        margin-top: 8px;
    }
    
    .designer-info {
        justify-content: center;
        text-align: center;
    }
    
    .designer-details {
        align-items: center;
    }
}