/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
}

.header h1 i {
    margin-right: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu span {
    font-weight: 600;
    color: #666;
}

/* Ana İçerik */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    min-height: 600px;
}

/* Panel Stilleri */
.left-panel,
.center-panel,
.right-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Sol Panel - Görevler */
.tasks-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.task-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.task-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Genişletilmiş Form */
.task-form-expanded {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0 20px 0;
    border: 2px solid #e3f2fd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.task-form-expanded textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 10px;
}

.task-form-expanded textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-info i {
    color: #ffc107;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .task-form {
        flex-direction: column;
    }
}

.tasks-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.task-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.task-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.task-project,
.task-pomodoros {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-project i,
.task-pomodoros i {
    font-size: 10px;
}

.task-notes {
    width: 100%;
    background: #f8f9fa;
    color: #666;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 5px;
    border-left: 3px solid #667eea;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.task-notes i {
    margin-top: 2px;
    font-size: 11px;
    color: #667eea;
}

.task-actions {
    display: flex;
    gap: 5px;
    align-self: flex-start;
}

.task-actions button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.task-actions .complete-btn {
    color: #28a745;
}

.task-actions .delete-btn {
    color: #dc3545;
}

.task-actions button:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Orta Panel - Timer */
.timer-section {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Timer Navigation */
.timer-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.timer-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timer-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.timer-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timer-tab i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .timer-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .timer-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.timer-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.timer-circle::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    background: white;
}

.timer-text {
    position: relative;
    z-index: 2;
    color: #333;
}

#timerDisplay {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

#timerStatus {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Enerji Seçimi */
.energy-selection {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.energy-selection h3 {
    margin-bottom: 15px;
    color: #333;
}

.energy-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.energy-btn {
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 100px;
}

.energy-btn.high {
    color: #28a745;
    border-color: #28a745;
}

.energy-btn.medium {
    color: #ffc107;
    border-color: #ffc107;
}

.energy-btn.low {
    color: #dc3545;
    border-color: #dc3545;
}

.energy-btn:hover,
.energy-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.energy-btn.high:hover,
.energy-btn.high.selected {
    background: #28a745;
    color: white;
}

.energy-btn.medium:hover,
.energy-btn.medium.selected {
    background: #ffc107;
    color: white;
}

.energy-btn.low:hover,
.energy-btn.low.selected {
    background: #dc3545;
    color: white;
}

/* Timer Kontrolleri */
.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-width: 120px;
}

/* Aktif Görev */
.active-task {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.active-task h4 {
    color: #1976d2;
    margin-bottom: 5px;
}

/* Sağ Panel - İstatistikler */
.stats-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.stats-cards {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* AI Bölümü */
.ai-section {
    text-align: center;
}

.btn-ai {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.ai-recommendations {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.ai-recommendations h4 {
    color: #333;
    margin-bottom: 15px;
}

.ai-recommendations p {
    line-height: 1.6;
    color: #666;
}

/* Buton Stilleri */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Bildirimler */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .left-panel {
        grid-column: 1 / -1;
    }
    
    .center-panel {
        grid-column: 1;
    }
    
    .right-panel {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    #timerDisplay {
        font-size: 2.5rem;
    }
    
    .energy-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .left-panel,
    .center-panel,
    .right-panel {
        padding: 20px;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    #timerDisplay {
        font-size: 2rem;
    }
    
    .task-form {
        flex-direction: column;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Özelleştirme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
