 /* CSS Variables for VerbMaster Pro */
:root {
    /* Light Mode Colors */
    --bg-gradient-start: #8B5CF6;
    --bg-gradient-middle: #6366F1;
    --bg-gradient-end: #3B82F6;
    
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    
    --search-bg: rgba(255, 255, 255, 0.2);
    --search-border: rgba(255, 255, 255, 0.3);
    
    --button-bg: rgba(255, 255, 255, 0.15);
    --button-hover: rgba(255, 255, 255, 0.25);
    --button-active: rgba(255, 255, 255, 0.35);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient-start: #6B21A8;
        --bg-gradient-middle: #4C1D95;
        --bg-gradient-end: #1E3A8A;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        var(--bg-gradient-start) 0%, 
        var(--bg-gradient-middle) 50%, 
        var(--bg-gradient-end) 100%);
    position: relative;
}

/* Header Styles */
.app-header {
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.theme-toggle {
    background: var(--button-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

/* Search Section */
.search-section {
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--search-bg);
    border: 2px solid var(--search-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats-section {
    text-align: center;
    margin: 1.5rem 0;
}

.stats-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

#visibleCount {
    font-weight: 700;
    color: var(--text-primary);
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--button-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.flag {
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.action-btn {
    padding: 0.875rem 1.75rem;
    background: var(--button-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Verbs Grid */
.verbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Verb Card */
.verb-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.verb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.2);
}

.verb-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.verb-forms {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.verb-form {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.translations {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.translation {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
}

.translation-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.translation-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem 1.5rem;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .verbs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-section {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.625rem 1.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
    
    .search-input {
        font-size: 0.875rem;
        padding: 0.875rem 0.875rem 0.875rem 3rem;
    }
}

/* Print Styles */
@media print {
    .app-header,
    .search-section,
    .filter-section,
    .action-buttons,
    .app-footer {
        display: none;
    }
    
    .verbs-grid {
        display: block;
    }
    
    .verb-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}
/* Add to existing style.css */

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.view-btn {
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.view-icon {
    font-size: 1.1rem;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.table-container.hidden {
    display: none;
}

.verbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.verbs-table thead {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.verbs-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.verbs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.verbs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.verbs-table td {
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
}

.verbs-table td:first-child {
    font-weight: 700;
    color: var(--text-primary);
}

/* Hide grid when table is shown */
.verbs-grid.hidden {
    display: none;
}

/* Responsive adjustments for table */
@media (max-width: 1024px) {
    .verbs-table {
        font-size: 0.8rem;
    }
    
    .verbs-table th,
    .verbs-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .view-toggle {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
    
    .table-container {
        border-radius: 8px;
    }
    
    .verbs-table {
        font-size: 0.75rem;
    }
    
    .verbs-table th,
    .verbs-table td {
        padding: 0.625rem 0.375rem;
    }
}
