/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #4a6fa5;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button {
    background: #f5f7fa;
    color: var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.download-button:hover {
    background: #1a365d;
    color: white;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button {
    background: #f5f7fa;
    color: var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.edit-button:hover {
    background: #1a365d;
    color: white;
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: var(--accent-color) !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .form-actions {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-actions .settings-button {
    width: 100%;
    justify-content: center;
  }
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: var(--accent-color) !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .form-actions {
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-actions .settings-button {
    width: 100%;
    justify-content: center;
  }
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: var(--accent-color) !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: var(--accent-color) !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: white !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Add explicit class for light mode that can be targeted and changed */
body.light-mode {
    background: var(--accent-color) !important;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 4px solid #4a6fa5;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
    font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
    color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
.subscription-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-section.danger-zone-redesign {
  position: relative;
}
.danger-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
}
.danger-accent i.fas.fa-trash {
  color: #fff;
  background: var(--error-color);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: unset;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Baloo 2', sans-serif !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
    border-width: 2.5px !important;
}

.language-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-button .language-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    transition: all 0.3s ease;
}

.language-button.active .language-icon {
    border-color: #274b81;
}

.language-button .language-name {
    font-weight: 500;
    font-size: 13px;
    font-family: 'Baloo 2', sans-serif !important;
}

@media (max-width: 768px) {
    .language-selection {
        gap: 6px;
    }
    
    .language-button {
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination-button.prev i {
  margin-right: 0.25rem;
}

.pagination-button.next i {
  margin-left: 0.25rem;
}

/* Search Container Styles */
.search-container {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form {
  width: 100%;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.search-input-wrapper {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  margin-right: 0.5rem;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.search-input:hover,
.search-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.select-wrapper select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: var(--primary-color);
    outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 120px;
  height: 100%;
}

.search-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
}

.search-button:active {
  transform: translateY(0);
}

.search-button i {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .input-group {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }

  .select-wrapper {
    flex: 1 1 auto;
  }

  .select-wrapper select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper,
  .select-wrapper {
    width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .settings-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .settings-section {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
}

.settings-main-grid > .settings-section {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.settings-section.danger-zone-redesign,
.settings-section.color-mode-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Color Mode Card & Bubbles */
.color-mode-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 260px;
}
.color-mode-bubbles {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.color-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.color-bubble.light {
  background: #F0F2F5;
  border: 3px solid #e0e0e0;
}

.color-bubble.dark {
  background: #121826;
  border: 3px solid #2d3748;
}

.color-bubble.blue {
  background: #1BC9C7;
  border: 3px solid #64D3D7;
}

.color-bubble.active {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.color-bubble.light.active {
  border-color: #555;
}

.color-bubble.dark.active {
  border-color: #4a5568;
}

.color-bubble.blue.active {
  border-color: #008B94;
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
.subscription-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-section.danger-zone-redesign {
  position: relative;
}
.danger-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
}
.danger-accent i.fas.fa-trash {
  color: #fff;
  background: var(--error-color);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: unset;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Baloo 2', sans-serif !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
    border-width: 2.5px !important;
}

.language-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-button .language-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    transition: all 0.3s ease;
}

.language-button.active .language-icon {
    border-color: #274b81;
}

.language-button .language-name {
    font-weight: 500;
    font-size: 13px;
    font-family: 'Baloo 2', sans-serif !important;
}

@media (max-width: 768px) {
    .language-selection {
        gap: 6px;
    }
    
    .language-button {
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination-button.prev i {
  margin-right: 0.25rem;
}

.pagination-button.next i {
  margin-left: 0.25rem;
}

/* Search Container Styles */
.search-container {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form {
  width: 100%;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.search-input-wrapper {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  margin-right: 0.5rem;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.search-input:hover,
.search-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.select-wrapper select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 120px;
  height: 100%;
}

.search-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
}

.search-button:active {
  transform: translateY(0);
}

.search-button i {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .input-group {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }

  .select-wrapper {
    flex: 1 1 auto;
  }

  .select-wrapper select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper,
  .select-wrapper {
    width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .settings-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .settings-section {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
}

.settings-main-grid > .settings-section {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.settings-section.danger-zone-redesign,
.settings-section.color-mode-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Color Mode Card & Bubbles */
.color-mode-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 260px;
}
.color-mode-bubbles {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.color-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.color-bubble.light {
  background: #F0F2F5;
  border: 3px solid #e0e0e0;
}

.color-bubble.dark {
  background: #121826;
  border: 3px solid #2d3748;
}

.color-bubble.blue {
  background: #1BC9C7;
  border: 3px solid #64D3D7;
}

.color-bubble.active {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.color-bubble.light.active {
  border-color: #555;
}

.color-bubble.dark.active {
  border-color: #4a5568;
}

.color-bubble.blue.active {
  border-color: #008B94;
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
.subscription-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-section.danger-zone-redesign {
  position: relative;
}
.danger-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
}
.danger-accent i.fas.fa-trash {
  color: #fff;
  background: var(--error-color);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: unset;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Baloo 2', sans-serif !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
    border-width: 2.5px !important;
}

.language-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-button .language-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    transition: all 0.3s ease;
}

.language-button.active .language-icon {
    border-color: #274b81;
}

.language-button .language-name {
    font-weight: 500;
    font-size: 13px;
    font-family: 'Baloo 2', sans-serif !important;
}

@media (max-width: 768px) {
    .language-selection {
        gap: 6px;
    }
    
    .language-button {
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination-button.prev i {
  margin-right: 0.25rem;
}

.pagination-button.next i {
  margin-left: 0.25rem;
}

/* Search Container Styles */
.search-container {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form {
  width: 100%;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.search-input-wrapper {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  margin-right: 0.5rem;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.search-input:hover,
.search-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.select-wrapper select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 120px;
  height: 100%;
}

.search-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
}

.search-button:active {
  transform: translateY(0);
}

.search-button i {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .input-group {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }

  .select-wrapper {
    flex: 1 1 auto;
  }

  .select-wrapper select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper,
  .select-wrapper {
    width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .settings-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .settings-section {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
}

.settings-main-grid > .settings-section {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.settings-section.danger-zone-redesign,
.settings-section.color-mode-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Color Mode Card & Bubbles */
.color-mode-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 260px;
}
.color-mode-bubbles {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.color-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.color-bubble.light {
  background: #F0F2F5;
  border: 3px solid #e0e0e0;
}

.color-bubble.dark {
  background: #121826;
  border: 3px solid #2d3748;
}

.color-bubble.blue {
  background: #1BC9C7;
  border: 3px solid #64D3D7;
}

.color-bubble.active {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.color-bubble.light.active {
  border-color: #555;
}

.color-bubble.dark.active {
  border-color: #4a5568;
}

.color-bubble.blue.active {
  border-color: #008B94;
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
.subscription-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-section.danger-zone-redesign {
  position: relative;
}
.danger-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
}
.danger-accent i.fas.fa-trash {
  color: #fff;
  background: var(--error-color);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: unset;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Baloo 2', sans-serif !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
    border-width: 2.5px !important;
}

.language-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-button .language-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    transition: all 0.3s ease;
}

.language-button.active .language-icon {
    border-color: #274b81;
}

.language-button .language-name {
    font-weight: 500;
    font-size: 13px;
    font-family: 'Baloo 2', sans-serif !important;
}

@media (max-width: 768px) {
    .language-selection {
        gap: 6px;
    }
    
    .language-button {
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination-button.prev i {
  margin-right: 0.25rem;
}

.pagination-button.next i {
  margin-left: 0.25rem;
}

/* Search Container Styles */
.search-container {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form {
  width: 100%;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.search-input-wrapper {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  margin-right: 0.5rem;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.search-input:hover,
.search-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.select-wrapper select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 120px;
  height: 100%;
}

.search-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
}

.search-button:active {
  transform: translateY(0);
}

.search-button i {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .input-group {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }

  .select-wrapper {
    flex: 1 1 auto;
  }

  .select-wrapper select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper,
  .select-wrapper {
    width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .settings-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .settings-section {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
}

.settings-main-grid > .settings-section {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.settings-section.danger-zone-redesign,
.settings-section.color-mode-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Color Mode Card & Bubbles */
.color-mode-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 260px;
}
.color-mode-bubbles {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.color-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.color-bubble.light {
  background: #F0F2F5;
  border: 3px solid #e0e0e0;
}

.color-bubble.dark {
  background: #121826;
  border: 3px solid #2d3748;
}

.color-bubble.blue {
  background: #1BC9C7;
  border: 3px solid #64D3D7;
}

.color-bubble.active {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.color-bubble.light.active {
  border-color: #555;
}

.color-bubble.dark.active {
  border-color: #4a5568;
}

.color-bubble.blue.active {
  border-color: #008B94;
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
  color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}
/* Reset & Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6fa5;
    --primary-color-rgb: 74, 111, 165;  /* RGB values for primary color */
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --bg-color: #f3f6fb;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --success-color-dark: #3d8b40;
    --error-color: #f44336;
    --error-color-dark: #d32f2f;
    --inactive-color: #d1d1d1;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f7f7f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, .baloo-2 {
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}


/* Header */

.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

.main-nav a i {
    font-size: 16px;
}

.main-nav a span {
    display: inline-block;
}

/* Underline animation for nav links */
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 2px;
}

.main-nav a:hover::after, .main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a.active::after,
.main-nav li.active > a::after {
    transform: scaleX(1);
}

.logout-button {
    background-color: #4a6fa5;
    color: white !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
    cursor: pointer;
}

.logout-button:hover, .logout-button:focus {
    background-color: #395a87;
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

.login-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin: 0;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
    text-decoration: none !important;
}

.main-nav li:last-child .login-button {
    margin-right: 0;
}

.main-nav li:has(.login-button)::after,
.main-nav li:has(.login-button).active::after,
.main-nav li.active .login-button::after {
    display: none !important;
}


/* Main Content */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}


/* Hero Section */

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 740px;
    height: auto;
    position: static;
    backdrop-filter: none;
    border: 2px solid #4a6fa5;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    box-shadow: none;
    padding: 0.5rem;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a6fa5;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff !important;
    font-size: 1.2rem;
    position: static;
    transform: none;
    opacity: 1;
    margin-right: 0;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
}

.search-input,
input.search-input,
input.form-control[type="text"] {
    padding: 1px 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    flex: 1;
    background: #fff;
    color: #222;
    min-width: 120px;
    box-shadow: none;
    transition: border 0.2s;
    width: 100%;
}

.search-input:focus,
input.search-input:focus,
input.form-control[type="text"]:focus {
    border: 1.5px solid #4a6fa5;
    background: #fff;
}

.search-button,
button.search-button {
    font-family: 'Baloo 2', sans-serif !important;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    background-color: #4a6fa5 !important;
    color: #ffffff;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    width: auto;
    height: auto;
}

.search-button:hover,
button.search-button:hover {
    background-color: #166088 !important;
}

@media (max-width: 600px) {
    .search-box,
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 10px !important;
        height: auto;
    }
    .search-input,
    input.search-input,
    input.form-control[type="text"],
    .citaten-select,
    select.form-control,
    .search-button,
    button.search-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .search-icon {
        margin-bottom: 4px;
        align-self: flex-start;
    }
    .citaten-dropdowns,
    .input-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}


/* Categories Section */

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}

.category-card.active {
    background-color: var(--primary-color);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.inactive {
    background-color: var(--inactive-color);
    cursor: not-allowed;
}

.category-card:hover:not(.inactive) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-letter {
    font-size: 24px;
    font-weight: bold;
}

.category-count {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}


/* Proverbs Section */

.proverb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proverb-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}

.proverb-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(74, 111, 165, 0.22), 0 4px 16px rgba(0,0,0,0.16);
}

.proverb-category-accent {
    height: 6px;
    width: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.category-label {
  background: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  right: 7px;
  top: 3px;
  position: absolute;
}

.proverb-content {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.proverb-text-top {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    height: 3.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-image-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0 1rem 0;
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.proverb-image-modern img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.proverb-text-bottom {
    color: #444;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Baloo 2', sans-serif !important;
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-actions-modern {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    width: 100%;
}

.proverb-actions-modern button {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 4px;
    background: #f5f7fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(.4,0,.2,1), color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    white-space: nowrap;
    text-align: center; /* Center text */
}

/* Make like button compact */
.proverb-actions-modern .like-button {
    flex: 0 0 auto;
    padding: 8px;
    width: 35px;
    justify-content: center;
}

/* Let other buttons fill remaining space */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    flex: 1;
}

.proverb-actions-modern i {
    font-size: 1em;
    margin-right: 0;
}

/* Ensure icon and text are centered together */
.proverb-actions-modern .download-button,
.proverb-actions-modern .edit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Remove any default spacing that might affect centering */
.proverb-actions-modern .download-button span,
.proverb-actions-modern .edit-button span {
    margin: 0;
    padding: 0;
}

.proverb-actions-modern .like-button i {
    margin-right: 0;
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .proverb-actions-modern {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
        gap: 0.35rem;
    }
    
    .proverb-actions-modern button {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .proverb-actions-modern .like-button {
        padding: 8px;
        width: 35px;
    }
}

/* Keep icon colors on hover */
.proverb-actions-modern button:hover i.fas.fa-heart,
.proverb-actions-modern button:focus i.fas.fa-heart {
    color: #ee1d52 !important;
}
.proverb-actions-modern button:hover i.fas.fa-download,
.proverb-actions-modern button:focus i.fas.fa-download {
    color: var(--primary-color) !important;
}
.proverb-actions-modern button:hover i.fas.fa-pen,
.proverb-actions-modern button:focus i.fas.fa-pen {
    color: var(--primary-color) !important;
}

@media (max-width: 600px) {
    .proverb-card {
        border-radius: 10px;
    }
    .proverb-content {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .proverb-actions-modern {
        padding: 0.75rem 1rem 1.25rem 1rem;
    }
}


/* Icons for proverb actions */

.icon-heart::before,
.icon-heart-filled::before,
.icon-download::before,
.icon-edit::before,
.icon-share::before {
    content: none;
}

.icon-heart-filled svg {
    fill: #f44336;
    stroke: #f44336;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.download-button i.fas.fa-download {
    color: var(--primary-color);
}

.edit-button i.fas.fa-pen {
    color: var(--primary-color);
}


/* Quote Section */

.quote {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-author {
    font-size: 18px;
    margin-bottom: 30px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.share-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.share-quote:hover {
    background-color: #f0f0f0;
}

.share-quote svg {
    width: 18px;
    height: 18px;
}

.more-quotes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.more-quotes:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4a6fa5;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.75rem;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.footer-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    transition: color 0.2s ease;
}

.contact-item i {
    width: 1.5rem;
    text-align: center;
    color: #4a6fa5;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #4a6fa5;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #6c757d;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    background: rgba(74, 111, 165, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #4a6fa5;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dark mode styles */
body.dark-mode footer {
    background-color: #1a1a1a;
    border-top-color: #2d2d2d;
}

body.dark-mode .footer-section h3 {
    color: #e9ecef;
}

body.dark-mode .footer-brand span {
    color: #e9ecef;
}

body.dark-mode .footer-tagline {
    color: #adb5bd;
}

body.dark-mode .contact-item {
    color: #adb5bd;
}

body.dark-mode .contact-item i {
    color: #7670da;
}

body.dark-mode .contact-item:hover {
    color: #7670da;
}

body.dark-mode .social-links a {
    background: rgba(118, 112, 218, 0.2);
    color: #7670da;
}

body.dark-mode .social-links a:hover {
    color: #fff;
    background: #7670da;
}

body.dark-mode .footer-bottom {
    border-top-color: #2d2d2d;
}

body.dark-mode .copyright {
    color: #adb5bd;
}

/* Update search icon color in dark mode */
body.dark-mode .search-icon {
    color: #7670da !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* Authentication Forms */

.auth-section {
    padding: 60px 0;
}

.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav li {
        margin: 5px 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .quote-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .proverb-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-width: repeat(auto-fill, minmax(40px, 1fr));
    }

    .quote-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Add after authentication forms styles */


/* Error Pages */

.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 120px;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 20px 0;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Success message toast notification */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.error-details {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.error-stack {
    overflow: auto;
    max-height: 300px;
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
}


/* Add after error pages styles */


/* Alert Messages */

.alert {
    display: none !important;
}


/* Add after alert styles */


/* Category Page */

.category-section {
    padding: 40px 0;
}

.category-navigation {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.category-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-nav-item:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: #666;
}


/* Add after category page styles */


/* Categories Page */

.categories-section {
    padding: 40px 0;
}

.categories-description {
    text-align: center;
    margin-bottom: 30px;
}

p.lead {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 15px;
}

p.total-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 10px 0;
}

.category-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid.large .category-card {
    height: 80px;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-grid.large .category-letter {
    font-size: 32px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.category-card.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active .category-letter {
    color: white;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.inactive {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-card.inactive .category-letter {
    color: #999;
}

.category-card.inactive .category-count {
    color: #999;
}

@media (max-width: 768px) {
    .category-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 15px;
    }

    .category-grid.large .category-card {
        height: 60px;
    }

    .category-grid.large .category-letter {
        font-size: 24px;
    }

    .category-count {
        font-size: 12px;
    }
}


/* Add styles for search results page */

.search-section {
    padding: 40px 0;
}

.search-section .search-box {
    margin: 25px auto;
    max-width: 600px;
}

.search-results-count {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Additional icon for search button */

.icon-search::before {
    content: "🔍";
    font-size: 18px;
    display: inline-block;
}


/* Quote Page Styles */

.quotes-container {
    margin-top: 2rem;
}

.page-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form .input-group input,
.search-form .input-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .input-group input {
    flex: 1;
    min-width: 200px;
}

.search-form .input-group select {
    width: auto;
    min-width: 150px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4a6fa5 !important;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover, .search-button:focus {
    background: #166088 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.language-tabs {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-item a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.tab-item.active {
    border-bottom: 3px solid var(--primary-color);
}

.tab-item.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.quote-text p::before {
    content: "\201C";
    /* Opening double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-text p::after {
    content: "\201D";
    /* Closing double quote */
    font-size: 1.5em;
    color: var(--primary-color);
    margin-left: 0.1em;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    color: #444;
    margin-bottom: 1rem;
}

.quote-author p::before {
    content: "— ";
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.like-button {
    background: #FBCFE8 !important;
    color: #831843 !important;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button:hover, .like-button:focus {
    background: #F9A8D4 !important;
    color: #831843 !important;
    transform: scale(1.06);
}

.like-button.liked {
    color: #e74c3c;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease forwards;
}

.like-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.like-button i.fas.fa-heart {
    color: #ee1d52 !important;
    stroke: #ee1d52 !important;
}

.like-button.liked i.fas.fa-heart {
    color: #ee1d52;
}

.like-button span {
    font-weight: 500;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: #888;
    font-size: 1.1rem;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .tab-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }

    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .input-group input,
    .search-form .input-group select,
    .search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-form .input-group>*:last-child {
        margin-bottom: 0;
    }
}


/* Language Filter */

.language-filter {
    margin-bottom: 1.5rem;
}

.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.filter-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .server-tabs {
        justify-content: center;
        gap: 6px;
    }

    .filter-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}


/* New tab navigation */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.tab-nav-item {
    padding: 10px 15px;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.tab-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .tab-navigation {
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: wrap;
    }

    .tab-nav-item {
        padding: 8px 12px;
    }
}


/* Featured Quote Section */

.featured-quote {
    padding: 40px 0;
    margin-top: 40px;
}

.quote-card-featured {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.quote-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.quote-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
}

.quote-text-featured {
    font-size: 24px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.quote-author-featured {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
}

.quote-author-featured p::before {
    content: "— ";
}

.quote-meta-featured {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
}

.quote-actions-featured {
    display: flex;
    gap: 15px;
}

.quote-button,
.share-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.quote-button:hover,
.share-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.quote-button i,
.share-button i {
    font-size: 16px;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .quote-card-featured {
        margin: 0 15px;
    }

    .quote-content {
        padding: 30px 20px;
    }

    .quote-text-featured {
        font-size: 20px;
    }

    .quote-meta-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .quote-actions-featured {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: #f4f7fb;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-section {
  background: linear-gradient(135deg, #4A90E2 60%, #50c9c3 100%);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10);
}

.welcome-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-message {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  opacity: 0.95;
}

.subscription-info {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.13);
  padding: 1.1rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.7rem;
}

.subscription-info strong {
  font-weight: 700;
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dashboard-section {
  background: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.dashboard-section:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.08);
}
.dashboard-section h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.cards-grid {
  gap: 2rem;
}
.card {
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
  background: #f9fbfd !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.13);
  transform: translateY(-4px) scale(1.02);
}
.card-content {
  padding: 1.2rem 1rem 1rem 1rem;
}
.card-text {
  font-size: 1.1rem;
  color: #222;
}
.card-actions {
  gap: 0.8rem;
}
.btn-like, .btn-unlike, .btn-download, .btn-edit {
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  letter-spacing: 0.01em;
}
.btn-like { background: linear-gradient(90deg, #4CAF50 60%, #43e97b 100%); }
.btn-unlike { background: linear-gradient(90deg, #f44336 60%, #ff7e5f 100%); }
.btn-download { background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%); }
.btn-edit { background: linear-gradient(90deg, #FFA000 60%, #ffd452 100%); }
.btn-like:hover, .btn-unlike:hover, .btn-download:hover, .btn-edit:hover {
  filter: brightness(1.08) saturate(1.2);
  opacity: 1;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.edit-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.edit-form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.edit-form button[type="button"] {
  background-color: #757575;
  color: white;
}

.no-cards {
  color: #666;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background-color: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


/* Modern Settings Page Redesign */
.settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(74, 111, 165, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: none;
  height: 100%;
}

.card-accent {
  position: absolute;
  top: 12px;
  right: 18px;
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}
.card-accent i {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 0;
  background: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
  border: 4px solid #fff;
  aspect-ratio: 1/1;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-accent.danger i {
  background: var(--error-color);
}

.settings-section h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  letter-spacing: 0.02em;
}

.settings-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #274b81;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Baloo 2', sans-serif;
  background: #f7faff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.settings-form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.settings-form input[readonly] {
  background: #f0f0f0;
  color: #888;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
}
.settings-button:hover, .settings-button:focus {
  background-color: var(--secondary-color);
  color: white;
}
.settings-button.upgrade {
  background-color: var(--success-color);
}
.settings-button.upgrade:hover {
  background-color: var(--success-color-dark);
}
.settings-button.downgrade {
  background-color: #4a6fa5;
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  position: relative;
  overflow: hidden;
}

.settings-button.downgrade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}

.settings-button.downgrade:hover::after {
  left: 120%;
  transition: left 0.5s cubic-bezier(.4,0,.2,1);
}

.settings-button.downgrade:hover, .settings-button.downgrade:focus {
  background-color: #274b81 !important;
  color: #fff;
}

.settings-button.delete {
  background-color: var(--error-color);
}
.settings-button.delete:hover {
  background-color: var(--error-color-dark);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-details {
  background: #f7faff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan {
  background: rgba(var(--primary-color-rgb), 0.08);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.current-plan h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.plan-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-left: 0.5rem;
}
.plan-features h4 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.subscription-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subscription-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
  font-size: 1rem;
}
.subscription-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
}
.subscription-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-section.danger-zone-redesign {
  position: relative;
}
.danger-action {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  margin: 0;
}
.danger-accent i.fas.fa-trash {
  color: #fff;
  background: var(--error-color);
  border: 4px solid #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: unset;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Baloo 2', sans-serif !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
    border-width: 2.5px !important;
}

.language-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.language-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-button .language-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #4a6fa5;
    transition: all 0.3s ease;
}

.language-button.active .language-icon {
    border-color: #274b81;
}

.language-button .language-name {
    font-weight: 500;
    font-size: 13px;
    font-family: 'Baloo 2', sans-serif !important;
}

@media (max-width: 768px) {
    .language-selection {
        gap: 6px;
    }
    
    .language-button {
        padding: 6px 12px;
        min-width: 100px;
    }
}

/* Pagination Styles */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

.pagination-button.prev i {
  margin-right: 0.25rem;
}

.pagination-button.next i {
  margin-left: 0.25rem;
}

/* Search Container Styles */
.search-container {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form {
  width: 100%;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.search-input-wrapper {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  margin-right: 0.5rem;
  position: static;
  left: unset;
  top: unset;
  transform: none;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.search-input:hover,
.search-input:focus {
  border: none !important;
  box-shadow: none !important;
}

.select-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.select-wrapper select {
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-width: 180px;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  min-width: 120px;
  height: 100%;
}

.search-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 111, 165, 0.2);
}

.search-button:active {
  transform: translateY(0);
}

.search-button i {
  font-size: 1rem;
}

@media (max-width: 992px) {
  .input-group {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }

  .select-wrapper {
    flex: 1 1 auto;
  }

  .select-wrapper select {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .search-container {
    margin: 1rem;
    padding: 1rem;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper,
  .select-wrapper {
    width: 100%;
  }

  .select-wrapper {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }
}

/* Loading Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .settings-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .settings-section {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
}

.settings-main-grid > .settings-section {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.settings-section.danger-zone-redesign,
.settings-section.color-mode-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
  border-radius: 16px;
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Color Mode Card & Bubbles */
.color-mode-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-width: 260px;
}
.color-mode-bubbles {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.color-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
  outline: none;
}
.color-bubble.light {
  background: #fff;
  border: 2px solid #222;
}
.color-bubble.dark {
  background: #32323a;
  border: 2px solid #888;
}
.color-bubble.active {
  box-shadow: 0 0 0 3px var(--primary-color, #4a6fa5);
  border-color: var(--primary-color, #4a6fa5);
}
.color-bubble:focus {
  outline: 2px solid var(--primary-color, #4a6fa5);
}

/* Dark mode background */
body.dark-mode {
  --bg-color: #121826;
  --card-bg: #1E293B;
  --primary-color: #7670da;
  --primary-color-rgb: 118, 112, 218;
  --secondary-color: #6366F1;
  --border-color: #23263a;
  --text-color: #eaeaea;
  --footer-bg: #181824;
  --footer-text: #bdbdbd;
  background: var(--bg-color) !important;
  --header-color: #C084FC;
  --body-text: #F1F5F9;
  --secondary-text: #94A3B8;
  --badge-bg: #6366F1;
  --like-btn-bg: #FBCFE8;
  --like-btn-text: #831843;
  --like-btn-hover: #F9A8D4;
  --download-btn-bg: #DDD6FE;
  --download-btn-text: #4C1D95;
  --download-btn-hover: #C4B5FD;
  --edit-btn-bg: #FDE68A;
  --edit-btn-text: #92400E;
  --edit-btn-hover: #FCD34D;
}
body.color-mode-animate {
  transition: background 0.3s;
}
.settings-section.color-mode-card {
  margin-top: 0 !important;
  border-left: 6px solid transparent;
}

body.dark-mode .categories-description .lead {
  color: #fff !important;
}

body.dark-mode .proverb-card,
body.dark-mode .card,
body.dark-mode .settings-section {
  background: var(--card-bg) !important;
  color: var(--body-text);
}
body.dark-mode .proverb-card .proverb-text-top {
  color: #fff !important;
}
body.dark-mode .card h2,
body.dark-mode .settings-section h2 {
  color: var(--header-color) !important;
}
body.dark-mode .proverb-card .proverb-text-bottom,
body.dark-mode .card .card-text,
body.dark-mode .settings-section,
body.dark-mode .settings-section p {
  color: var(--body-text) !important;
}
body.dark-mode .proverb-card .secondary,
body.dark-mode .card .secondary,
body.dark-mode .settings-section .secondary,
body.dark-mode .settings-section .description,
body.dark-mode .settings-section .warning-text {
  color: var(--secondary-text) !important;
}
body.dark-mode .category-label,
body.dark-mode .badge,
body.dark-mode .proverb-card .category-label {
  background: var(--badge-bg) !important;
  color: #7670da !important;
}
body.dark-mode .like-button {
  background: var(--like-btn-bg) !important;
  color: var(--like-btn-text) !important;
}
body.dark-mode .like-button:hover {
  background: var(--like-btn-hover) !important;
}
body.dark-mode .download-button {
  background: var(--download-btn-bg) !important;
  color: var(--download-btn-text) !important;
}
body.dark-mode .download-button:hover {
  background: var(--download-btn-hover) !important;
}
body.dark-mode .edit-button {
  background: var(--download-btn-bg) !important;
  color: var(--download-btn-text) !important;
}
body.dark-mode .edit-button:hover {
  background: var(--download-btn-hover) !important;
}
body.dark-mode .header {
  background: var(--card-bg) !important;
}

body.dark-mode .proverb-card .category-label {
  background: #7670da !important;
  color: #fff !important;
}

body.dark-mode .logout-button {
  background-color: #7670da !important;
}
body.dark-mode .logout-button:hover, body.dark-mode .logout-button:focus {
  background-color: #6366F1 !important;
}

.abonnementen-title {
  margin-top: 4rem;
  font-size: 1rem;
}

body.dark-mode .search-button {
  background: #7670da !important;
}

body.dark-mode .footer-section h3::after {
  background-color: #7670da;
}

body.dark-mode .footer-brand i {
  background: #7670da;
  color: #fff;
}

/* Card Edit Form UXD Redesign */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Inter:wght@400;500&display=swap');

.edit-form {
  background: var(--card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0.5rem 0;
  animation: fadeIn 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 5 !important; /* Higher z-index to stay above the bubble */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.edit-form label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 0.5rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: block;
}

.edit-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  font-size: 1.08rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7faff;
  color: var(--text-color, #222);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  z-index: 5;
}
.edit-form textarea:focus {
  border-color: var(--primary-color, #4a6fa5);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.10);
}

.edit-form .card-actions, .edit-form .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  z-index: 5;
}

.edit-form button[type="submit"], .edit-form .save-button {
  background: var(--primary-color, #4a6fa5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.edit-form button[type="submit"]:hover, .edit-form .save-button:hover {
  background: var(--secondary-color, #166088);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.edit-form button[type="button"], .edit-form .cancel-button {
  background: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.edit-form button[type="button"]:hover, .edit-form .cancel-button:hover {
  background: #e0e0e0;
  color: #222;
}

@media (max-width: 600px) {
  .edit-form {
    padding: 1rem 0.5rem;
    border-radius: 10px;
  }
  .edit-form textarea {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
  }
  .edit-form .card-actions, .edit-form .form-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .edit-form button {
    width: 100%;
  }
}

body.dark-mode .edit-form {
  background: var(--card-bg, #1E293B);
  box-shadow: 0 4px 24px rgba(118, 112, 218, 0.10), 0 1.5px 6px rgba(0,0,0,0.10);
}
body.dark-mode .edit-form label {
  color: #eaeaea;
}
body.dark-mode .edit-form textarea {
  background: #23263a;
  color: #eaeaea;
  border-color: #23263a;
}
body.dark-mode .edit-form textarea:focus {
  border-color: #7670da;
  box-shadow: 0 0 0 2px rgba(118, 112, 218, 0.10);
}
body.dark-mode .edit-form button[type="submit"], body.dark-mode .edit-form .save-button {
  background: #7670da;
}
body.dark-mode .edit-form button[type="submit"]:hover, body.dark-mode .edit-form .save-button:hover {
  background: #6366F1;
}
body.dark-mode .edit-form button[type="button"], body.dark-mode .edit-form .cancel-button {
  background: #23263a;
  color: #bdbdbd;
}
body.dark-mode .edit-form button[type="button"]:hover, body.dark-mode .edit-form .cancel-button:hover {
  background: #32323a;
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

body.dark-mode .category-nav-item,
body.dark-mode .category-grid .category-card:not(.active):not(.inactive) .category-letter,
body.dark-mode .category-grid .category-card.inactive .category-letter {
  color: #111 !important;
}

body.dark-mode .quote-card,
body.dark-mode .like-card {
  background: var(--card-bg) !important;
  color: var(--body-text) !important;
  box-shadow: 0 4px 24px rgba(118, 112, 218, 0.10), 0 1.5px 6px rgba(0,0,0,0.10) !important;
  border: 1.5px solid var(--border-color, #23263a) !important;
}
body.dark-mode .quote-card .quote-text,
body.dark-mode .quote-card .quote-author,
body.dark-mode .quote-card .quote-meta,
body.dark-mode .like-card .spreekwoord-text,
body.dark-mode .like-card .citaat-text,
body.dark-mode .like-card .citaat-auteur,
body.dark-mode .like-card .citaat-taal,
body.dark-mode .like-card .card-footer,
body.dark-mode .like-card .like-date {
  color: var(--body-text) !important;
}
body.dark-mode .quote-card .quote-meta {
  border-top: 1px solid var(--border-color, #23263a) !important;
}
body.dark-mode .like-card .card-footer {
  border-top: 1px solid var(--border-color, #23263a) !important;
}

body.dark-mode .like-card .spreekwoord-betekenis,
body.dark-mode .like-card .spreekwoord-betekenis strong,
body.dark-mode .like-card .spreekwoord-categorie,
body.dark-mode .like-card .spreekwoord-categorie strong {
  color: #fff !important;
}

.main-nav a, .main-nav ul, .main-nav li, .main-nav a span {
  font-family: 'Baloo 2', sans-serif !important;
}

.proverb-text-top,
.card-title,
.card-text,
.spreekwoord-text,
.citaat-text,
.proverb-actions-modern button,
.card-actions button,
.download-button,
.like-button,
.edit-button,
.spreekwoord-betekenis,
.spreekwoord-categorie,
.citaat-auteur,
.citaat-taal,
.proverb-text-bottom,
.hero-subtitle,
.edit-form button,
.search-input {
  font-family: 'Baloo 2', sans-serif !important;
}

.search-input::placeholder {
  font-family: 'Baloo 2', sans-serif !important;
}

.search-input {
  padding-left: 1.2rem !important;
}

/* Hamburger Menu Styles */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  transition: background 0.2s;
}
.menu-bar {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--primary-color, #4a6fa5);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.menu-bar.top {
  transform-origin: left center;
}
.menu-bar.middle {
  transition: opacity 0.2s cubic-bezier(.4,0,.2,1);
}
.menu-bar.bottom {
  transform-origin: left center;
}
.menu-trigger.active .menu-bar.top {
  transform: rotate(45deg) translate(4px, 6px);
  background: var(--secondary-color, #166088);
}
.menu-trigger.active .menu-bar.middle {
  opacity: 0;
}
.menu-trigger.active .menu-bar.bottom {
  transform: rotate(-45deg) translate(4px, -6px);
  background: var(--secondary-color, #166088);
}
.menu-trigger:focus {
  outline: 2px solid #7670da;
}

@media (max-width: 643px) {  .menu-trigger {    display: flex;    position: absolute;    right: 18px;    top: 18px;  }  .main-nav {    display: none !important;  }
  .mobile-nav-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.97);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
  }
  .mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-menu {
    margin: 80px auto 0 auto;
    align-items: center;
    border-radius: 16px;
    width: 90vw;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    box-shadow: 0 4px 24px rgba(74, 111, 165, 0.13);
  }
  .mobile-nav-menu ul {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .mobile-nav-menu li {
    width: 100%;
    text-align: center;
  }
  .mobile-nav-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--primary-color, #4a6fa5);
    font-size: 1.2rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-nav-menu a:hover {
    background: var(--primary-color, #4a6fa5);
    color: #fff;
  }
  .mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--primary-color, #4a6fa5);
    cursor: pointer;
    z-index: 10;
    font-family: 'Baloo 2', sans-serif;
    transition: color 0.2s;
  }
  .mobile-nav-close:hover {
    color: var(--secondary-color, #166088);
  }
}

@keyframes slideInMenu {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Hide overlay by default on desktop */
.mobile-nav-overlay { display: none; }
@media (max-width: 643px) {  .mobile-nav-overlay { display: flex; }}

@media (max-width: 643px) {  .mobile-nav-menu ul {    list-style: none;    padding: 0;    margin: 0;  }
  .mobile-nav-menu li {
    list-style: none;
    width: 100%;
    text-align: center;
  }
  .mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--primary-color, #4a6fa5);
    cursor: pointer;
    z-index: 10;
    font-family: 'Baloo 2', sans-serif;
    transition: color 0.2s;
    line-height: 1;
  }
}

@media (max-width: 643px) {  .mobile-nav-overlay {    background: #fff !important;  }}

.select-wrapper select, .select-wrapper select option {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.select-wrapper select {
  min-width: 210px;
  max-width: 260px;
}

.page-header p, .total-count {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.search-button i.fas.fa-search, .search-icon {
  color: #fff !important;
}

.search-button:hover i.fas.fa-search,
.search-button:focus i.fas.fa-search {
  color: #fff;
}

.citaten-select, .citaten-select option {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.quote-card-featured {
  position: relative;
  overflow: hidden;
}

.glass-loop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 40%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: glassShine 4s cubic-bezier(.4,0,.2,1) infinite;
  opacity: 0.7;
}

@keyframes glassShine {
  0% {
    transform: translateX(-100%);
    opacity: 0.2;
  }
  60% {
    opacity: 0.7;
  }
  80% {
    transform: translateX(100%);
    opacity: 0.2;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.2;
  }
}

/* Specific mobile styles for Citaten page */@media (max-width: 643px) {  .citaten-dropdowns {    flex-direction: column !important;    width: 100% !important;    gap: 0.75rem !important;    padding: 1rem !important;    margin-top: 0.75rem !important;    background: #fff !important;    border-radius: 8px !important;    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;  }
  
  .citaten-dropdowns .citaten-select {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0.75rem !important;
  }
  
  .citaten-search-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .citaten-search-form .search-input {
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease-out;
  max-width: 300px;
  font-family: 'Baloo 2', sans-serif;
}

.notification i {
  font-size: 1.2em;
}

.notification.success {
  background-color: #4CAF50;
  border-left: 4px solid #388E3C;
}

.notification.error {
  background-color: #f44336;
  border-left: 4px solid #d32f2f;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* --- MODAL MODERNISERING EN FORMULIEREN --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.25);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18);
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  min-width: 340px;
  max-width: 95vw;
  position: relative;
  animation: fadeIn 0.3s;
}
.modal-content h2 {
  font-size: 2rem;
  color: var(--primary-color, #4A90E2);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.modal-content .close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-content .close:hover {
  color: #f44336;
}
.form-group label {
  font-size: 1.1rem;
  color: #4A90E2;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.form-group input, .form-group select {
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  border-radius: 7px;
  border: 1.5px solid #e0e6ed;
  background: #f7fafd;
  margin-bottom: 0.5rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus {
  border: 1.5px solid #4A90E2;
  box-shadow: 0 0 0 2px #4A90E233;
  outline: none;
}
.form-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.btn-primary, .btn-secondary {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 7px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, #4A90E2 60%, #50c9c3 100%);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #357ab8 60%, #50c9c3 100%);
}
.btn-secondary {
  background: #e0e6ed;
  color: #4A90E2;
}
.btn-secondary:hover {
  background: #cfd8dc;
  color: #222;
}

@media (max-width: 900px) {
  .dashboard-container {
    padding: 1.2rem 0.2rem;
  }
  .dashboard-section {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .modal-content {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    min-width: 90vw;
  }
}
@media (max-width: 600px) {
  .dashboard-section h2, .modal-content h2 {
    font-size: 1.3rem;
  }
  .welcome-title {
    font-size: 1.5rem;
  }
}

body.dark-mode .subscription-details {
  background: #1a1d2e;
}

body.dark-mode .subscription-features li {
  color: #ffff;
}

body.dark-mode .settings-form input {
  background: #1a1d2e;
  color: #fff;
}

body.dark-mode .settings-form input {
  background: #1a1d2e;
  color: #fff;
  border: 2.5px solid #6366F1;
}

body.dark-mode .settings-form label {
  color: #7670da;
}

body.dark-mode .settings-button.downgrade {
  background-color: #6366F1;
}

body.dark-mode .settings-button.downgrade:hover,
body.dark-mode .settings-button.downgrade:focus,
body.dark-mode .settings-button.upgrade:hover,
body.dark-mode .settings-button.upgrade:focus {
  background-color: #4338CA !important; /* Darker purple color on hover with important flag */
  color: #ffffff !important;
}

/* Override any inline styles for .settings-button.downgrade:hover */
body.dark-mode .settings-button.downgrade[style*="background-color"]:hover,
body.dark-mode .settings-button.downgrade[style]:hover {
  background-color: #4338CA !important;
  color: #ffffff !important;
}

body.dark-mode .language-button {
    border-color: #6366F1 !important;
}

body.dark-mode .dropdown-group.citaten-dropdowns {
    background: #23263a !important;
}

.settings-section.profile-card .settings-form input {

  font-family: 'Baloo 2', 'Inter', sans-serif !important;
  font-size: 1rem !important;
  box-sizing: border-box;
  padding: 10px 12px !important;
  border: 2px solid #4a6fa5;
}

.settings-section.subscription-card .settings-form input {
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
}

.subscription-features,
.settings-button,
.warning-text,
.color-mode-card p {
  font-family: 'Baloo 2', 'Inter', sans-serif !important;
}

.proverb-card-bubble {
    height: 124px;
    width: 124px;
    background-color: #4a6fa5;
    position: absolute;
    top: -75px;
    right: -75px;
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
    transform: scale(1);
}

.proverb-card:hover .proverb-card-bubble {
    transform: scale(12);
}

/* Prevent bubble expansion when editing */
.proverb-card.editing:hover .proverb-card-bubble {
    transform: scale(1) !important;
}

.proverb-card-featured .proverb-card-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 40%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: glassShine 4s cubic-bezier(.4,0,.2,1) infinite;
  opacity: 0.7;
}

@keyframes glassShine {
  0% {
    transform: translateX(-100%);
    opacity: 0.2;
  }
  60% {
    opacity: 0.7;
  }
  80% {
    transform: translateX(100%);
    opacity: 0.2;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.2;
  }
}

.proverb-category-accent,
.proverb-content,
.proverb-actions-modern {
    position: relative;
    z-index: 1;
}

/* Ensure edit form is above the bubble */
.edit-form {
    position: relative;
    z-index: 5 !important; /* Higher z-index to stay above the bubble */
}

.proverb-text-top {
    transition: color 0.3s ease;
    transition-delay: 0s;
}

.proverb-card:hover .proverb-text-top {
    color: #fff;
    transition-delay: 0.05s;
}

.proverb-card:hover .proverb-text-bottom {
    color: #fff;
    transition-delay: 0.05s;
}

.profile-settings label {
    color: #4a6fa5;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.settings-section.profile-card .settings-form label {
    color: #4a6fa5 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.citaten-dropdowns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 0 -2.3rem;
  height: 100%;
}

.citaten-select {
  background: #4a6fa5;
  border: none;
  box-shadow: none;
  font-size: 1rem;
  padding: 0 2.2rem 0 0.7rem;
  border-radius: 50px;
  min-width: 120px;
  appearance: none;
  outline: none;
  color: white;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  margin-right: 0.2rem;
  position: relative;
  border: none;
  height: 100%;
  line-height: 1.2;
  display: flex;
  align-items: center;
  background-position: right 0.9em center;
  direction: ltr;
  font-family: 'Baloo 2', sans-serif !important;
}
.citaten-select:focus, .citaten-select:hover {
  background: #4a6fa5;
  border: none;
}
.citaten-select::-ms-expand {
  display: none;
}
.citaten-select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  background-size: 1.1em;
}

body.dark-mode .citaten-dropdowns {
  background: var(--card-bg) !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px rgba(118,112,218,0.10) !important;
  margin-left: 0.5rem !important;
  margin-right: auto !important;
  width: auto;
  max-width: 100%;
}
@media (max-width: 768px) {
  body.dark-mode .citaten-dropdowns {
    margin-left: 0 !important;
    width: 100% !important;
    border-radius: 24px !important;
    box-sizing: border-box;
  }
  body.dark-mode .citaten-select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}
body.dark-mode .citaten-select {
  background: #23263a !important;
  color: #eaeaea !important;
  border: 2px solid #6366F1 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0.75rem 2.2rem 0.75rem 0.7rem !important;
  min-width: 120px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 1rem;
  appearance: none;
  outline: none;
  position: relative;
  height: 100%;
  line-height: 1.2;
  display: flex;
  align-items: center;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
body.dark-mode .citaten-select:focus, body.dark-mode .citaten-select:hover {
  border-color: #7670da !important;
  background: #23263a !important;
}
body.dark-mode .citaten-select option {
  background: #23263a !important;
  color: #eaeaea !important;
}

body.dark-mode .settings-section.profile-card .settings-form input {
    border-color: #7670da !important;
}

body.dark-mode .settings-section.profile-card .settings-form label {
    color: #7670da !important;
}

/* --- Modern Search Bar Light Mode Redesign --- */
.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  max-width: 740px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #4a6fa5;
  margin-bottom: 2.9rem;
}

.search-container input[type="text"],
.search-container .search-input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  outline: none;
  flex: 1;
  background: #f4f6f8;
  color: #222;
  min-width: 120px;
  box-shadow: none;
  transition: border 0.2s;
}

.search-container input[type="text"]:focus,
.search-container .search-input:focus {
  border: 1.5px solid #4a6fa5;
  background: #fff;
}

.search-container select,
.search-container .citaten-select,
.search-container select.form-control {
  padding: 8px 12px;
  font-size: 14px;
  border: 2px solid #4a6fa5;
  border-radius: 9999px;
  outline: none;
  background: #f4f6f8;
  color: #222;
  min-width: 120px;
  box-shadow: none;
  transition: border 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-container select:focus,
.search-container .citaten-select:focus,
.search-container select.form-control:focus {
  border: 1.5px solid #4a6fa5;
  background: #fff;
}

.search-container button,
.search-container .search-button {
  font-family: 'Baloo 2', sans-serif !important;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background-color: #4a6fa5 !important;
  color: #ffffff;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
}

.search-container button:hover,
.search-container .search-button:hover {
  background-color: #166088 !important;
}

@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 10px;
  }
  .search-container input[type="text"],
  .search-container .search-input,
  .search-container select,
  .search-container .citaten-select,
  .search-container select.form-control,
  .search-container button,
  .search-container .search-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}
/* --- End Modern Search Bar Light Mode Redesign --- */

.clear-search {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    color: #4a6fa5;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
    padding: 0 0.5rem;
    display: none;
    line-height: 1;
}

.search-box.has-text .clear-search {
    display: block;
}

.clear-search:hover {
    opacity: 1;
    background: none !important;
}
@media (max-width: 600px) {
    .clear-search {
        right: 1.5rem;
        font-size: 1.2rem;
    }
}

/* Add this new style for select options */
.citaten-select option {
  direction: ltr;
  text-align: left;
  font-family: 'Baloo 2', sans-serif !important;
  background: white;
  color: #222;
  padding: 8px;
}

body.dark-mode .citaten-select,
body.dark-mode .citaten-select option {
  font-family: 'Baloo 2', sans-serif !important;
}

/* Download Functionality Styles */
.download-button {
    position: relative;
    overflow: hidden;
}

.download-button.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.download-button i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style for cards being downloaded */
.proverb-card-for-download {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Download Functionality Styles */
.download-button {
    position: relative;
    overflow: hidden;
}

.download-button.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.download-button i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style for cards being downloaded */
.proverb-card-for-download {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(74, 111, 165, 0.18), 0 2px 8px rgba(0,0,0,0.10);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}
