/* Modern Todo Uygulaması CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.logo:hover {
    transform: scale(1.05);
}

.title-container {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Add Todo Section */
.add-todo-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.add-todo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    background: #f3f6fd;
    font-size: 1.05rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    outline: none;
}

input[type="text"]:focus, textarea:focus, select:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
    border: 1.5px solid #667eea;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f3f6fd url('data:image/svg+xml;utf8,<svg fill=\"%23667eea\" height=\"20\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>') no-repeat right 1.2rem center/1.2rem 1.2rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.12);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-add:active {
    transform: scale(0.98);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Todo List */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.todo-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #e1e5e9;
}

.todo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.todo-item.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.todo-item.completed .todo-content h3 {
    text-decoration: line-through;
    color: #6c757d;
}

.todo-item.priority-high {
    border-left-color: #dc3545;
}

.todo-item.priority-medium {
    border-left-color: #ffc107;
}

.todo-item.priority-low {
    border-left-color: #28a745;
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.todo-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    flex: 1;
    margin-right: 20px;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.toggle-btn {
    background: #28a745;
    color: white;
}

.toggle-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.todo-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.todo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.priority-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.priority-badge.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.priority-low {
    background: #d4edda;
    color: #155724;
}

.date {
    color: #6c757d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 8px;
        max-width: 100vw;
    }
    .add-todo-section {
        padding: 16px 6px;
        max-width: 100vw;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 4px 18px rgba(102, 126, 234, 0.10);
    }
    .add-todo-form {
        gap: 10px;
    }
    .form-group {
        gap: 6px;
    }
    input[type="text"], textarea, select {
        font-size: 1rem;
        padding: 14px 12px;
        border-radius: 10px;
        background: #f3f6fd;
        box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08);
    }
    .btn-add {
        width: 100%;
        padding: 14px 0;
        font-size: 1.1rem;
        border-radius: 10px;
        margin-top: 4px;
    }
    .filters {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 10px 0;
        border-radius: 10px;
    }
    .todo-list {
        gap: 10px;
    }
    .todo-item {
        padding: 14px 8px;
        border-radius: 10px;
    }
    .todo-content h3 {
        font-size: 1.05rem;
    }
    .logo {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    .header-content {
        gap: 8px;
    }
    .title-container {
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item {
    animation: fadeIn 0.5s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
    font-size: 1rem;
} 