* {
    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;
}

.tracker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px;
}

.tracker-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.tracker-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tracker-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tracker-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tracker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.goal-form {
    margin-bottom: 20px;
}

.goal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.goal-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
}

.goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goal-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: background-color 0.3s ease;
}

.goal-item:hover {
    background: #e9ecef;
}

.goal-checkbox {
    margin-right: 12px;
    transform: scale(1.2);
}

.goal-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.goal-text.completed {
    text-decoration: line-through;
    color: #6c757d;
}

.goal-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.goal-delete:hover {
    background: #c82333;
}

.progress-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

@media (max-width: 768px) {
    .tracker-header h1 {
        font-size: 2rem;
    }
    
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mind Gym Dropdown Styles */
.mind-gym-dropdown-container {
    position: relative;
    overflow: visible;
}

.mind-gym-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% - 5px);
    left: 10px;
    right: 10px;
    z-index: 1000;
    padding: 15px 10px 10px 10px;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mind-gym-dropdown-container:hover .mind-gym-dropdown-menu,
.mind-gym-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease-out;
}

.dropdown-game-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.dropdown-game-link:last-child {
    margin-bottom: 0;
}

.dropdown-game-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

