/* Spanish Verbs Learning Plugin Styles */

* {
    box-sizing: border-box;
}

.svl-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.svl-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.svl-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.svl-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.svl-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
}

.svl-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    min-width: 150px;
}

.svl-tab:hover {
    background: #e9ecef;
}

.svl-tab.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.svl-content {
    padding: 30px;
}

.svl-tab-content {
    display: none;
}

.svl-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.svl-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.svl-controls select,
.svl-controls button,
.svl-controls input {
    padding: 12px 20px;
    font-size: 1em;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.svl-controls select {
    flex: 1;
    min-width: 200px;
}

.svl-controls button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

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

.svl-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.svl-controls input[type="text"] {
    flex: 1;
}

.svl-conjugation-table {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.svl-conjugation-table h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.svl-conjugation-table h4 {
    margin: 25px 0 15px 0;
    color: #667eea;
}

.svl-conjugation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.svl-pronoun-row {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.svl-pronoun {
    font-weight: 600;
    color: #495057;
}

.svl-conjugation {
    color: #667eea;
    font-size: 1.2em;
    font-weight: 700;
}

.svl-irregular {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.svl-irregular .svl-conjugation {
    color: #d63031;
}

.svl-quiz-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.svl-question {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #2d3436;
    text-align: center;
}

.svl-answer-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    display: block;
    font-size: 1.2em;
    text-align: center;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
}

.svl-feedback {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

.svl-correct {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.svl-incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.svl-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.svl-stat-card {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.svl-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
}

.svl-stat-label {
    color: #6c757d;
    margin-top: 5px;
}

.svl-verb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.svl-verb-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.svl-verb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.svl-verb-card.irregular {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.svl-verb-infinitive {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.svl-verb-translation {
    color: #636e72;
    font-size: 0.9em;
}

.svl-verb-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-top: 10px;
    background: #667eea;
    color: white;
}

.svl-progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.svl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.svl-hint {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.svl-hint ul {
    margin: 10px 0;
    padding-left: 20px;
}

.svl-theory-section {
    display: none;
}

.svl-theory-section.active {
    display: block;
}

.svl-theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.svl-theory-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.svl-theory-card strong {
    display: block;
    margin-bottom: 10px;
}

.svl-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.svl-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.svl-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.svl-modal-close {
    font-size: 2em;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.svl-form-group {
    margin-bottom: 20px;
}

.svl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.svl-form-group input,
.svl-form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
}

.svl-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.svl-progress-section {
    margin-top: 30px;
}

.svl-progress-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.svl-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.svl-progress-verb {
    font-weight: 700;
    font-size: 1.1em;
    color: #2d3436;
}

.svl-progress-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.svl-mastery-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.svl-mastery-beginner {
    background: #fee;
    color: #c33;
}

.svl-mastery-intermediate {
    background: #ffeaa7;
    color: #d63031;
}

.svl-mastery-advanced {
    background: #55efc4;
    color: #00b894;
}

.svl-mastery-master {
    background: #74b9ff;
    color: #0984e3;
}

.svl-delete-btn {
    background: #dc3545 !important;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
}

.svl-delete-btn:hover {
    background: #c82333 !important;
}

@media (max-width: 768px) {
    .svl-header h1 {
        font-size: 1.8em;
    }
    
    .svl-controls {
        flex-direction: column;
    }
    
    .svl-controls select,
    .svl-controls input {
        width: 100%;
    }
    
    .svl-tabs {
        flex-direction: column;
    }
    
    .svl-tab {
        border-bottom: 1px solid #dee2e6;
    }
    
    .svl-theory-grid,
    .svl-conjugation-grid {
        grid-template-columns: 1fr;
    }
}
