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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

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

.stats-bar {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.panel-card h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

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

.panel-header h2 {
    margin: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.tasks-list {
    max-height: 600px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: start;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: #999;
}

.task-checkbox {
    margin-right: 15px;
}

.checkbox-link {
    text-decoration: none;
}

.checkbox {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #667eea;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 1rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox:hover {
    background-color: #f0f0ff;
    transform: scale(1.1);
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.task-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

.task-actions {
    margin-left: 15px;
}

.btn-delete {
    display: inline-block;
    padding: 5px 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-delete:hover {
    transform: scale(1.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 1rem !important;
    color: #bbb;
}

/* Scrollbar styling */
.tasks-list::-webkit-scrollbar {
    width: 8px;
}

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

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

.tasks-list::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}
