/* Simple Cookie Banner Styles (Robinhood-like) */
.simple-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: white;
    padding: 24px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    /* Clean border */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.simple-cookie-banner.show {
    transform: translateY(0);
}

.simple-cookie-container {
    max-width: 600px;
    margin: 0 auto;
}

.simple-cookie-content {
    margin-bottom: 24px;
}

.simple-cookie-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: white;
}

.simple-cookie-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.simple-cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.simple-cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.simple-cookie-btn-primary {
    background: #00D924;
    color: black;
}

.simple-cookie-btn-primary:hover {
    background: #00C420;
}

.simple-cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.simple-cookie-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-content {
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.cookie-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

.cookie-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.cookie-btn-accept {
    background: #27ae60;
    color: white;
}

.cookie-btn-accept:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.cookie-btn-settings {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    font-size: 13px;
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    background: #3498db;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.cookie-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #667eea;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.cookie-category-details {
    font-size: 13px;
    color: #495057;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #27ae60;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #6c757d;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cookie-close:hover {
    background: rgba(255,255,255,0.2);
}

.cookie-impact {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.cookie-impact-title {
    font-weight: 600;
    color: #856404;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.cookie-impact-list {
    margin: 0;
    padding-left: 20px;
    color: #856404;
    font-size: 13px;
}

.cookie-impact-list li {
    margin: 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-cookie-banner {
        padding: 20px;
    }
    
    .simple-cookie-actions {
        flex-direction: column;
    }
    
    .simple-cookie-btn {
        flex: none;
        width: 100%;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-title {
        font-size: 16px;
    }
    
    .cookie-text {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.3s ease-out;
}

/* Hide scrollbar in modal but keep functionality */
.cookie-modal-content::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}