/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f8fafc;
    --gray: #6b7280;
    --gray-dark: #374151;
    --border: #374151;
}

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(30, 41, 59, 0.8);
    /* border-radius: 16px; */
    /* border: 1px solid var(--border); */
    padding: 2rem;
}

h1, h2 {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

input::placeholder, textarea::placeholder {
    color: var(--gray);
}

button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

button.reset {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

button.export {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

button.clear-storage {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

button.remove {
    background: var(--danger);
    padding: 6px 12px;
    font-size: 0.75rem;
    margin: 0;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: var(--success);
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: var(--danger);
}

.unlocked-items {
    margin-top: 2rem;
}

.unlocked-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.unlocked-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.progress-container {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.progress-text {
    text-align: center;
    padding: 1rem;
    font-weight: bold;
    color: var(--primary);
}

.progress-details {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
    text-align: center;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: var(--gray);
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.type-correct { 
    background: rgba(16, 185, 129, 0.2); 
    color: var(--success);
    border: 1px solid var(--success);
}

.type-close { 
    background: rgba(245, 158, 11, 0.2); 
    color: var(--warning);
    border: 1px solid var(--warning);
}

.type-distraction { 
    background: rgba(239, 68, 68, 0.2); 
    color: var(--danger);
    border: 1px solid var(--danger);
}

.type-other { 
    background: rgba(107, 114, 128, 0.2); 
    color: var(--gray);
    border: 1px solid var(--gray);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.actions {
    text-align: center;
}

.button-group {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.notification {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    display: none;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.type-correct-row { background: rgba(16, 185, 129, 0.05); }
.type-close-row { background: rgba(245, 158, 11, 0.05); }
.type-distraction-row { background: rgba(239, 68, 68, 0.05); }
.type-other-row { background: rgba(107, 114, 128, 0.05); }

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin-right: 0;
    }
}