:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-sm: 8px;
    --card-bg: #ffffff;


}

.mastered-badge {
    background: rgb(13, 167, 116);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.dark-mode {
    --text: #f9fafb;
    --text-light: #d1d5db;
    --bg: #111827;
    --bg-secondary: #1f2937;
    --border: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-bg: #1f2937;

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;

}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

}

/* Header Styles */
header {
    background-color: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    user-select: none;
    position: fixed;
    width: 100vw;

}

.logo img {
    width: 2.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;

}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    text-decoration: none;
}

.dark-mode .logo {
    color: white;

}

.logo i {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
    gap: 25px;
}

.nav-link {
    color: black;
    width: 100%;


}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-mode .nav-link {
    color: white;
    width: 100%;

}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
}

nav a:hover,
nav a.active {
    background-color: var(--primary);
    color: white;
}

.header-actions {

    display: flex;
    align-items: center;
    gap: 15px;
}

.left {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 55%;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        var(--primary);
    background-blend-mode: darken;
    color: white;
    border-color: var(--primary);
}

.user-actions button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
}

.user-actions button:hover {
    background-color: var(--primary-dark);
}

/* Main Content Styles */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

.page {
    display: none;
    margin-top: 6.2rem;
}

.page.active {
    display: block;
}


/* search form */
/* Search form styles */
.search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form .search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    color: #111827;
    transition: all 0.3s ease;
}

.search-form .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-form button[type="submit"] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-form button[type="submit"]:hover {
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        var(--primary);
    background-blend-mode: darken;
}

/* Dark Mode Styles */
.dark-mode .search-form .search-input {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-mode .search-form .search-input::placeholder {
    color: #9ca3af;
}

.dark-mode .search-form .search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}



.dark-mode .search-form button[type="submit"]:hover {
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        var(--primary);
    background-blend-mode: darken;
}

/* Search highlight */
.search-highlight {
    background-color: rgba(255, 235, 59, 0.733);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.dark-mode .search-highlight {
    background-color: rgba(255, 189, 22, 0.664);
    color: #1f2937;
}

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
}

.dark-mode .no-results h3 {
    color: #d1d5db;
}

.dark-mode .no-results {
    color: #9ca3af;
}


.settings-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background-color: #69696991;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* صفحة الإعدادات */
.settings-page {
    position: absolute;
    position: fixed;
    /* keep it above content */
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-page.open {
    right: 0;
}

.settings-page.active {
    right: 0;
}

.settings-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-settings {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-settings:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-content {
    padding: 20px;
    flex: 1;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-info {
    flex: 1;
}

.setting-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.setting-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}


.toggle-btn,
.action-btn,
.danger-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
}


.toggle-btn {
    background: var(--secondary);
    color: white;
}

.action-btn {
    color: white;
}



.toggle-btn:hover,
.action-btn:hover,
.danger-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: var(--primary);
}

/* طبقة التعتيم خلف الإعدادات */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.808);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Dark Mode للاعدادات */
.dark-mode .settings-page {
    background: #1f2937;
}

.dark-mode .settings-section h3 {
    color: #60a5fa;
    border-bottom-color: #374151;
}

.dark-mode .setting-item {
    border-bottom-color: #374151;
}

.dark-mode .font-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}





#home {
    user-select: none;
}

/* Homepage Styles */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 40px;
    margin-top: 5rem;

}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 25px;
}

.cta-button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}



/* Vocabulary Page */
.vocabulary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.vocabulary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}


.stat-card {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.vocabulary-list {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.vocabulary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.vocabulary-item:hover {
    background: var(--bg-secondary);
}

.vocabulary-item:last-child {
    border-bottom: none;
}

.word-info {
    flex: 1;
}


.word-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.word-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

.word-translation {
    font-size: 16px;
    font-weight: 500;
}


.word-example {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.word-actions {
    display: flex;
    gap: 10px;
}

.word-actions button {
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}

.word-actions button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}



/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}


/* ============ TOGGLE NAVIGATION MENU ============ */

/* Base more menu (hidden by default) */
.more {
    width: 250px;
    max-width: 280px;
    padding: 20px;
    background-color: white;
    position: absolute;
    top: 50px;
    right: 0px;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
    font-family: inherit;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.dark-mode .more {
    background-color: black;
}

/* When menu is open */
.more.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.Vocabulary-actions {
    display: flex;
    justify-content: center;
    width: fit-content;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-btns {
    display: flex;
    gap: 7px;
}

.v-btn {
    max-height: 45px;
    width: fit-content;
}




.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}




.btn-primary {
    padding: 14px 28px;
    border-radius: 10px;
    width: fit-content;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}


.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

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


/* Switch styling for auto-translate toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 14px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Translation button styles */
.retranslate-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retranslate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.retranslate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* Remove the green background from .css-actions */
.css-actions {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    flex-wrap: wrap;
    margin-bottom: 15px !important;
    background-color: transparent !important;
    /* REMOVE THE GREEN */
    z-index: 90000 !important;
    justify-content: center;
}



/* Custom CSS Modal Styles */
.custom-css-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.custom-css-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.custom-css-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px 12px 0 0;
}

.custom-css-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-css-header h3 i {
    color: var(--primary);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--hover);
    color: var(--text);
}

.custom-css-body {
    padding: 20px;
    background-color: rgb(165, 165, 165);
    flex: 1;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.dark-mode .custom-css-body {
    background-color: #111827;
}

.css-editor-header {
    margin-bottom: 15px;
}

.css-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.css-examples small {
    color: var(--text-light);
    font-weight: 600;
}

.css-examples code {
    background: var(--code-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: black;
    border: 1px solid var(--border);
}

.dark-mode .css-examples code {
    color: white;
}

#customCSSInput {
    width: 100%;
    min-height: 220px;
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    overflow-y: scroll;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

#customCSSInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

.css-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    background-color: green;
    z-index: 90000;
}

.css-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.css-info {
    padding: 10px;
    background: var(--hover);
    border-radius: 6px;
    border-left: 3px solid var(--warning);
}

.css-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.css-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.css-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reset-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.801);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dark-mode .reset-confirm-modal {
    background: rgba(0, 0, 0, 0.801);

}

.reset-confirm-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.reset-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--warning-light);
    border-radius: 12px 12px 0 0;
}

.reset-modal-header h3 {
    margin: 0;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-modal-body {
    padding: 20px;
}

.reset-modal-body p {
    margin: 0 0 15px 0;
    color: var(--text);
    line-height: 1.5;
}

.reset-warning {
    background: var(--warning-light);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--warning);
}

.reset-warning i {
    color: var(--warning);
    margin-right: 8px;
}

.reset-warning span {
    color: white;
    font-weight: 600;
}

.reset-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Button danger style */
.btn-danger {
    background: var(--danger) !important;
    color: white !important;
    border: none !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    transform: translateY(-2px);
}

/* ================================
   BUTTON STYLES - ADD THIS SECTION
   ================================ */

/* Base button class */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    min-width: 100px !important;
}

/* Button variants */
.btn-primary {
    background: #4f46e5 !important;
    color: white !important;
}

.btn-secondary {
    background: #6b7280 !important;
    color: white !important;
}

.btn-danger {
    background: #ef4444 !important;
    border: 2px solid var(--border);
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
    margin: 10px;
}

.btn-danger-2 {
    background: #ef4444 !important;
    color: white;
}

.btn-success {
    background: #10b981 !important;
    color: white !important;
}

/* Hover effects */
.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.9 !important;
}

/* Active state */
.btn:active {
    transform: translateY(0) !important;
}

.btn-2 {
    border: 2px solid var(--border);
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
    height: fit-content;
}

.btn-primary-2 {
    background: var(--primary);
    color: white;
}

.btn-secondary-2 {
    background-color: gray;
}

.btn-danger-2 {
    background: #ef4444 !important;
    color: white;
}


/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-body {
        padding: 0px;
    }



    .btn-primary {
        padding: 14px 24px;
        font-size: 15px;
    }
}





/* Responsive Design */
@media (max-width: 768px) {
    .settings-page {
        width: 100%;
        height: 100vh;
        right: -100%;
    }



    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        margin-top: 7.3rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .settings-header {
        padding: 15px;
    }

    .settings-content {
        padding: 15px;
    }

    .setting-item {

        align-items: flex-start;
        gap: 10px;
    }



    .header-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .left {
        width: 100%;
    }

    nav ul {
        gap: 15px;
    }



    .vocabulary-header {
        flex-direction: column;
        flex-wrap: wrap;
        padding-top: 15px;
        justify-content: center;
        gap: 15px;
    }

    .reading-controls {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }



    .btn-primary {
        width: fit-content;
        justify-content: center;
        padding: 16px 28px;
    }
}