/* Cookie Banner Styles - Minimal & Dark Theme Compatible */
:root {
    --cb-bg: #1a1b2e;
    --cb-text: #e0e0e0;
    --cb-border: #2d2e42;
    --cb-accent: #6c5ce7;
    --cb-accent-hover: #5b4bc7;
    --cb-btn-bg: #2d2e42;
    --cb-btn-text: #fff;
    --cb-font: 'Roboto', sans-serif;
    --cb-z-index: 9999;
}

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cb-bg);
    border-top: 1px solid var(--cb-border);
    color: var(--cb-text);
    padding: 20px;
    z-index: var(--cb-z-index);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    font-family: var(--cb-font);
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

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

.cb-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 5px;
}

.cb-description {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
    max-width: 800px;
}

.cb-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}

.cb-btn-accept {
    background-color: var(--cb-accent);
    color: #fff;
}

.cb-btn-accept:hover {
    background-color: var(--cb-accent-hover);
}

.cb-btn-reject {
    background-color: transparent;
    border: 1px solid var(--cb-border);
    color: var(--cb-text);
}

.cb-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.cb-btn-customize {
    background-color: transparent;
    color: #aaa;
    text-decoration: underline;
    padding: 10px;
}

.cb-btn-customize:hover {
    color: #fff;
}

/* Detailed Settings Panel (initially hidden) */
#cookie-settings-panel {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.cb-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.cb-option:last-child {
    margin-bottom: 0;
}

.cb-option-label {
    display: flex;
    flex-direction: column;
}

.cb-option-title {
    font-weight: 600;
    color: #fff;
}

.cb-option-desc {
    font-size: 0.8em;
    color: #aaa;
}

/* Toggle Switch */
.cb-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

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

.cb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f4055;
    transition: .4s;
    border-radius: 20px;
}

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

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

input:disabled + .cb-slider {
    background-color: #2d2e42;
    cursor: not-allowed;
    opacity: 0.7;
}

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

/* Floating Re-open Button */
#cookie-reopen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(26, 27, 46, 0.8);
    border: 1px solid var(--cb-border);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    z-index: var(--cb-z-index);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

#cookie-reopen-btn:hover {
    background: var(--cb-accent);
    transform: scale(1.1);
}

#cookie-reopen-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

@media (max-width: 600px) {
    .cb-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cb-btn {
        width: 100%;
        text-align: center;
    }
}
