/**
 * Cookie Consent Banner Styles
 * Matches the existing application design
 */

/* Banner Styles */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #007bff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    font-family: inherit;
}

.cc-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.cc-compliance {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.cc-message {
    flex: 1;
}

.cc-message h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cc-message p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

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

.cc-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cc-accept-all {
    background-color: #4caf50;
    color: white;
}

.cc-accept-all:hover {
    background-color: #45a049;
}

.cc-accept-necessary {
    background-color: #007bff;
    color: white;
}

.cc-accept-necessary:hover {
    background-color: #0056b3;
}

.cc-settings {
    background-color: #6c757d;
    color: white;
}

.cc-settings:hover {
    background-color: #545b62;
}

.cc-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    padding: 8px 0;
}

.cc-link:hover {
    text-decoration: underline;
}

.cc-close {
    position: absolute;
    top: -5px;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cc-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

/* Modal Styles */
.cc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cc-modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cc-modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.cc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cc-modal-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

.cc-modal-body {
    padding: 20px;
}

.cc-cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cc-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.cc-category-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.cc-category-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .cc-slider {
    background-color: #007bff;
}

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

input:disabled + .cc-slider {
    background-color: #4caf50;
    cursor: not-allowed;
}

.cc-modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
}

.cc-save-settings {
    background-color: #007bff;
    color: white;
}

.cc-save-settings:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cc-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .cc-compliance {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .cc-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cc-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cc-close {
        top: 10px;
        right: 10px;
    }
    
    .cc-modal {
        padding: 10px;
    }
    
    .cc-modal-content {
        max-height: 90vh;
    }
    
    .cc-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cc-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cc-btn {
        width: 100%;
        min-width: unset;
    }
    
    .cc-message h3 {
        font-size: 16px;
    }
    
    .cc-message p {
        font-size: 13px;
    }
}