/* style.css */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --darker: #1e2a38;
    --light: #f8f9fa;
    --gray: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: #e0e0e0;
    line-height: 1.7;
    padding: 20px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* Main Content */
main.container {
    padding: 40px;
}

/* Environment Badge */
.environment-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.card h2 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.form-group select,
.form-group input {
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.form-group small {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.form-group-full {
    grid-column: 1 / -1;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    text-align: center;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
}

.btn-secondary {
    background: linear-gradient(to right, #6c757d, #5a6268);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(to right, #5a6268, #6c757d);
    box-shadow: 0 7px 20px rgba(108, 117, 125, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: auto;
}

/* Results */
.result-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.result-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Text Output */
.text-output {
    background-color: #f7f6f5;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    height: auto;
    overflow-y: auto;
    color: #484537;
    font-size: 1.1rem;
}

.text-output::-webkit-scrollbar {
    width: 8px;
}

.text-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.text-output::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.text-output::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.formatted-text h1,
.formatted-text h2,
.formatted-text h3 {
    color: #484537;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.3;
}

.formatted-text h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.formatted-text h2 {
    font-size: 1.5rem;
}

.formatted-text h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.formatted-text p {
    margin-bottom: 1rem;
}

.formatted-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.formatted-text li {
    margin-bottom: 0.5rem;
}

.formatted-text article {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.text-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.text-info p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-message {
    color: var(--danger);
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Code Preview */
.code-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-preview h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.html-code {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
}

.html-code code {
    color: #c3e88d;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Footer */
/* Footer Styles - Überarbeitet */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    font-size: 1.1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .footer {
        padding: 25px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        order: 2;
        /* Links nach unten verschieben */
        width: 100%;
    }

    .footer-content>div:first-child {
        order: 1;
        /* Copyright nach oben */
        width: 100%;
    }

    .footer-links a,
    .footer-links span {
        font-size: 1rem;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links span {
        display: none;
        /* Trennstrich auf sehr kleinen Bildschirmen ausblenden */
    }
}

/* Debug Information */
.debug-info {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: monospace;
    color: #ffc107;
}

.debug-info h3 {
    margin-top: 0;
    color: #ffc107;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Scrollbar für Code Preview */
.html-code::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.html-code::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.html-code::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.html-code::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0;
        border-radius: 0;
    }

    .header {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-header {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .text-output {
        max-height: 300px;
        padding: 15px;
    }

    main.container {
        padding: 10px;
    }

    .result-container {
        padding: 15px;
    }

    .code-preview {
        padding: 1rem;
    }
}

/* Combined Format Styles */
.combined-format {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.format-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-bottom: 1rem;
}

.format-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hover-Effekte für Formatbereiche */
.format-section:hover {
    background: rgba(67, 97, 238, 0.1);
    transition: background 0.3s ease;
}

/* Spezifische Stile für verschiedene Formatbereiche */
.format-section:nth-child(1) {
    border-left-color: #4361ee;
    /* Blau für Überschriften */
}

.format-section:nth-child(2) {
    border-left-color: #2ecc71;
    /* Grün für Listen */
}

.format-section:nth-child(3) {
    border-left-color: #8B5CF6;
    /* Lila für Artikel */
}

.format-section:nth-child(4) {
    border-left-color: #f39c12;
    /* Orange für Absätze */
}

/* =============================================
   404 ERROR PAGE STYLES
   ============================================= */
body.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    max-width: 600px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.error-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.home-button {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.home-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
}

.suggestions {
    margin-top: 2rem;
    text-align: left;
}

.suggestions h3 {
    color: white;
    margin-bottom: 1rem;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.suggestions a {
    color: var(--primary);
    text-decoration: none;
}

.suggestions a:hover {
    text-decoration: underline;
}

/* =============================================
   PRIVACY & LEGAL PAGE STYLES
   ============================================= */

/* Text Content */
.content-section h3 {
    color: white;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 20px;
    text-align: center;
}

/* Legal Notice Specific Styles */
.legal-section {
    margin-bottom: 2rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.disclaimer h4 {
    color: #ffc107;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eu-dispute-resolution {
    background: transparent;
    padding: 20px;
    margin: 20px 0;
}

.eu-dispute-resolution h4 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cookie Settings Styles */
.cookie-settings-section {
    margin: 3rem 0;
}

.cookie-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.current-settings {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.settings-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-label {
    font-weight: 600;
    color: white;
}

.setting-value {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.setting-value.active {
    background: var(--success);
    color: white;
}

.setting-value.inactive {
    background: #6B7280;
    color: white;
}

/* Button Variants */
.btn-success {
    background: linear-gradient(to right, var(--success), #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    background: linear-gradient(to right, #27ae60, var(--success));
    box-shadow: 0 7px 20px rgba(46, 204, 113, 0.4);
}

.btn-danger {
    background: linear-gradient(to right, var(--danger), #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(to right, #c0392b, var(--danger));
    box-shadow: 0 7px 20px rgba(231, 76, 60, 0.4);
}

/* Cookie Table Styles */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.cookie-table th {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.cookie-badge.necessary {
    background: var(--primary);
}

/* Explanation Box */
.explanation-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.explanation-points {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.point {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.point h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.point ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.point li {
    margin-bottom: 0.25rem;
}

.consent-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* =============================================
   COOKIE CONSENT MODAL STYLES
   ============================================= */
.cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center !important;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

.cookie-container {
    background: rgba(30, 42, 56, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    /* Zusätzliche Zentrierung */
}

.cookie-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.cookie-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cookie-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.cookie-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cookie-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.cookie-body::-webkit-scrollbar {
    width: 6px;
}

.cookie-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cookie-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.cookie-body p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1rem;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.25);
    transition: .4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

input:checked+.toggle-slider:before {
    transform: translateX(30px);
}

input:disabled+.toggle-slider {
    background-color: var(--primary);
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled+.toggle-slider:before {
    background-color: #f0f0f0;
}

.category-info {
    flex: 1;
}

.category-info strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.category-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-footer {
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-cookie {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cookie-necessary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-necessary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cookie-reject {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-cookie-reject:hover {
    background: rgba(231, 76, 60, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.btn-cookie-accept {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-accept:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.cookie-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: white;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS FOR NEW STYLES
   ============================================= */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }

    .error-container {
        padding: 2rem;
        margin: 1rem;
    }

    .cookie-consent {
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

    .cookie-buttons {
        grid-template-columns: 1fr;
    }

    .cookie-container {
        max-height: 95vh;
    }
}