/* SchoolSafe Cookie Consent Styles */
.sscc-banner {
    position: fixed;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9998;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sscc-banner.top {
    top: 0;
    border-bottom: 1px solid #e5e5e5;
}

.sscc-banner.bottom {
    bottom: 0;
    border-top: 1px solid #e5e5e5;
}

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

.sscc-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.sscc-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sscc-banner-logo {
    border-radius: 4px;
    object-fit: contain;
}

.sscc-banner-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.sscc-message {
    flex: 1;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.sscc-message a {
    color: #0066cc;
    text-decoration: underline;
}

.sscc-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.sscc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sscc-btn-primary {
    background: #1860f0;
    color: white;
}

.sscc-btn-primary:hover {
    background: #0d4bc3;
}

.sscc-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.sscc-btn-secondary:hover {
    background: #e5e7eb;
}

.sscc-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sscc-btn:focus-visible,
.sscc-message a:focus-visible,
.sscc-accordion-toggle:focus-visible,
.sscc-modal-close:focus-visible,
.sscc-reject-all:focus-visible,
.sscc-save-settings:focus-visible,
.sscc-accept-all:focus-visible {
    outline: 3px solid #1860f0;
    outline-offset: 2px;
}

.sscc-toggle input:focus-visible + .slider {
    outline: 3px solid #1860f0;
    outline-offset: 2px;
}

/* Modal Styles */
#sscc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sscc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.sscc-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#sscc-modal.closing .sscc-modal-overlay {
    opacity: 0;
}

#sscc-modal.closing .sscc-modal-content {
    transform: scale(0.9);
    opacity: 0;
}

/* Toggle Switch */
.sscc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

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

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

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

input:checked + .slider {
    background-color: #1860f0;
}

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

/* Accordion Styles */
.sscc-accordion-item {
    border-bottom: 1px solid #f0f0f0;
}

.sscc-accordion-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
    gap: 8px;
}

.sscc-accordion-icon {
    color: #1860f0;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
    font-size: 14px;
}

.sscc-accordion-panel {
    padding: 0 20px 16px;
    display: none;
}

/* Floating Button */
.sscc-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 64px;
    height: 64px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    font-size: 50px;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.95;
    overflow: hidden;
}

.sscc-floating-btn:hover {
    transform: scale(1.05);
    opacity: 1;
}

.sscc-floating-btn:focus {
    outline: 3px solid #1860f0;
    border-color: #1860f0;
}

@media (prefers-reduced-motion: reduce) {
    #sscc-modal,
    .sscc-modal-content,
    .sscc-accordion-icon,
    .slider,
    .sscc-btn,
    .sscc-floating-btn {
        transition: none !important;
    }

    .sscc-floating-btn:hover {
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sscc-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    
    .sscc-logo-section {
        justify-content: center;
    }
    
    .sscc-actions {
        justify-content: center;
    }
    
    .sscc-floating-btn {
        width: 56px;
        height: 56px;
        bottom: 16px;
        left: 16px;
        font-size: 28px;
    }
    
    .sscc-modal-content {
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .sscc-actions {
        flex-direction: column;
    }
    
    .sscc-btn {
        width: 100%;
    }
}