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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #2bef95;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

header {
    text-align: center;
    margin-bottom: 20px;
}

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

.language-selector {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-selector:hover {
    border-color: #667eea;
}

.language-selector:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

#taskInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

#taskCount {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.clear-btn {
    padding: 8px 16px;
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.task-list {
    list-style: none;
    margin-bottom: 20px;
}

.task-item {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.task-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.task-item.completed {
    opacity: 0.6;
}

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

.task-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.task-text {
    flex: 1;
    color: #333;
    font-size: 1rem;
    word-break: break-word;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.task-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

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

.empty-state.show {
    display: block;
}

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

/* Map/Plan */
.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.map-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* Hockey Schedule */
.schedule-header {
    text-align: center;
    margin-bottom: 30px;
}

.schedule-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.schedule-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.hockey-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.match-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.ceremony-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-color: #ffd700;
}

.ceremony-card:hover {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.ceremony-content {
    text-align: center;
    padding: 20px 0;
}

.ceremony-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    display: inline-block;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

.match-time-inline {
    margin-left: auto;
    color: #667eea;
    font-weight: 600;
    text-transform: none;
}

.match-pool-hall {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pool-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hall-badge {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-logo-placeholder {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.vs {
    margin: 0 15px;
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.match-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #667eea;
}

.match-venue {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .language-selector {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
        padding: 15px 20px;
    }
    
    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: #e0e0e0;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs {
        margin: 0;
    }
    
    .match-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}
