﻿:root {
    --cookie-primary: #5A768B;
    --cookie-success: #198754;
    --cookie-danger: #dc3545;
    --cookie-purple: #6f42c1;
    --cookie-teal: #20c997;
    --accordion-border: #d1d5db;
    --accordion-bg: #ffffff;
    --accordion-hover: #f9fafb;
    --accordion-text: #374151;
    --accordion-text-secondary: #6b7280;
}
.text-primary{
    color: var(--cookie-primary) !important;

}
#cookies-container h2,
#cookieSettingsModal h5,
#cookieSettingsModal h4 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 300; /* Roboto Light */
}
#cookies-container,
#cookieSettingsModal,
.privacy-main-container {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 300;
}


/* Cookie Banner Styles */
#cookies-container {
    visibility: hidden;
    opacity: 0;
    max-width: 600px; /* INCREASED from 500px to 600px */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    z-index: 1000;
}
.modal-title {
    color: #6c757d !important;
}
/* Button text wrapping fix */
.btn-cookie-accept,
.btn-cookie-decline,
.btn-cookie-settings {
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ...  if text is too long */
    min-width: fit-content; /* Allow buttons to grow as needed */
}
#privacy-container-body-content ul, .cookie-accordion ul {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1;
    padding-top: 5px;
}

    #privacy-container-body-content ul li, .cookie-accordion ul li {
        list-style-type: initial !important;
        line-height: 19px;
        font-size: 13px;
        margin-left: 30px;
        margin-top: 2px;
    }

@media (max-width: 768px) {
    #cookies-container {
        max-width: 100%;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (min-width: 769px) {
    #cookies-container {
        right: 2rem;
        bottom: 2rem;
    }
}

/* Cookie Icon Animation */
@keyframes cookieBounce {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.cookie-icon {
    animation: cookieBounce 2s infinite ease-in-out;
    font-size: 2rem;
    color: var(--cookie-primary);
}

/* Button Styles */
.btn-cookie-accept {
    background: linear-gradient(135deg, #6c8ba3 0%, #5A768B 100%);
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

    .btn-cookie-accept:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(90, 118, 139, 0.4);
        background: linear-gradient(135deg, #506679 0%, #455766 100%);
    }

.btn-cookie-decline {
    background-color: #6c757d;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

    .btn-cookie-decline:hover {
        background-color: #5c636a;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    }

.btn-cookie-settings {
    background-color: #fff;
    border: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

    .btn-cookie-settings:hover {
        background-color: #f8f9fa;
        border-color: #adb5bd;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: #495057;
    }

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 2px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 2px solid #e9ecef;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Custom Tabs */
.cookie-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.cookie-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .cookie-tab-btn:hover {
        color: var(--cookie-primary);
        background-color: rgba(13, 110, 253, 0.05);
    }

    .cookie-tab-btn.active {
        color: var(--cookie-primary);
        border-bottom-color: var(--cookie-primary);
    }


@media (max-width: 576px) {
    .cookie-tab-btn {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
        min-width: 100px;
    }
    .btn-cookie-accept,
    .btn-cookie-decline,
    .btn-cookie-settings {
        font-size: 0.875rem; /* Slightly smaller on mobile */
        padding: 10px 16px; /* Adjust padding */
    }

        .btn-cookie-accept i,
        .btn-cookie-decline i,
        .btn-cookie-settings i {
            font-size: 0.875rem; /* Match icon size to text */
        }
}

/* Tab Content */
.tab-content-item {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

    .tab-content-item.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie Cards */
.cookie-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

    .cookie-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, currentColor, transparent);
    }
.btn-primary {
    color: #fff;
    background-color: #5A768B;
    border-color: #5A768B;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #4b6173; /* darker shade of #5A768B */
        border-color: #425664; /* slightly darker for contrast */
    }


.cookie-card-essential {
    background: linear-gradient(135deg, #d9e0e5 0%, #e4eaee 100%);
    border-color: #5A768B;
    color: #3e5260;
}

.cookie-card-functional {
    background: linear-gradient(135deg, #f3e8ff 0%, #f9f3ff 100%);
    border-color: #d9c3f5;
    color: #4a1c78;
}

.cookie-card-performance {
    background: linear-gradient(135deg, #d4f4e8 0%, #e8f9f2 100%);
    border-color: #9fe6c7;
    color: #0f5132;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ced4da;
    transition: 0.3s;
    border-radius: 28px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0. 2);
    }

input:checked + .toggle-slider {
    background-color: var(--cookie-success);
}

    input:checked + .toggle-slider:before {
        transform: translateX(28px);
    }

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d;
}

/* Badge Styles */
.badge-always-active {
    background: linear-gradient(135deg, #6c8ba3 0%, #5A768B 100%);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-optional {
    background-color: #6c757d;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid currentColor;
}

/* Backdrop */
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(2px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-body {
        padding: 1.5rem 1rem;
    }

    .cookie-card {
        padding: 1rem;
    }

    #cookies-container {
        border-radius: 12px;
    }
}

/* Scrollbar styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

@media (max-width: 400px) {
    .btn-cookie-accept,
    .btn-cookie-decline,
    .btn-cookie-settings {
        font-size: 0.8rem; /* Even smaller on very small screens */
        padding: 8px 12px;
    }
}

/*privacy css*/
.privacy-main-container{
    width:70%;
    margin:100px auto;
}

.privacy-container, .cookie-accordion {
    border-bottom: 1px dotted #DFDFDF;
    padding-bottom: 25px;
}
    .privacy-container h1, .cookie-accordion h1 {
        font-size: 19px;
        font-weight: bold;
        line-height: 23px;
        margin-bottom: 10px;
        padding-top: 25px;
    }
    .privacy-container p, .cookie-accordion p,.privacy-container a ,.cookie-accordion a {
        line-height: 19px;
        font-size: 13px;
        font-weight: normal;
        margin: 0;
        padding: 0;
    }

    /*Accordion*/

/* Custom Accordion Styles */
.cookie-accordion-item {
    background-color: var(--accordion-bg);
    border: 1px solid var(--accordion-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Fix for side-by-side accordions */
.cookie-accordion-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Always 2 columns */
    column-gap: 2rem; /* Space between columns */
    align-items: start;
}
.cookie-accordion-row-full{
    display: grid;
    grid-template-columns: 1fr; /* Single column for full width */
    column-gap: 0; /* No gap needed */
    align-items: start;
}

/* Ensure accordion items don't stretch */
.cookie-accordion-item {
    height: fit-content; /* Only take up needed space */
    align-self: start; /* Stay at top of grid cell */
}

/* Alternative: If using Bootstrap columns */
.cookie-accordion-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .cookie-accordion-col .cookie-accordion-item {
        flex: 0 0 auto; /* Don't grow to fill space */
    }
    .cookie-accordion-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.cookie-accordion-header {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    background-color: var(--accordion-bg);
    transition: background-color 0.2s ease;
    user-select: none;
}

    .cookie-accordion-header:hover {
        background-color: var(--accordion-hover);
    }

.cookie-accordion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

    .cookie-accordion-icon i {
        font-size: 1.5rem;
        color: #4b5563;
    }

.cookie-accordion-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--accordion-text);
    margin: 0;
}

.cookie-accordion-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .cookie-accordion-toggle i {
        font-size: 1.25rem;
        color: #6b7280;
        transition: transform 0.3s ease;
    }

.cookie-accordion-item.active .cookie-accordion-toggle i {
    transform: rotate(180deg);
}

.cookie-accordion-toggle:hover {
    background-color: #e5e7eb;
}

.cookie-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    background-color: #fafafa;
}

.cookie-accordion-item.active .cookie-accordion-content {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 1px solid var(--accordion-border);
}

.cookie-accordion-body {
    color: var(--accordion-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
    .cookie-accordion-body a {
        
        color: var(--accordion-text-secondary);
    }

    .cookie-accordion-body p {
        margin-bottom: 1rem;
    }

        .cookie-accordion-body p:last-child {
            margin-bottom: 0;
        }

.cookie-service-title {
    font-weight: 600;
    color: var(--accordion-text);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

    .cookie-service-title:first-child {
        margin-top: 0;
    }

.cookie-info-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

    .cookie-info-item strong {
        color: var(--accordion-text);
    }

.cookie-link {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

    .cookie-link:hover {
        color: #1d4ed8;
    }
@media (max-width: 992px) {
    .cookie-accordion-row {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        
    }
}

/* Responsive Design */
@media (max-width: 768px) {
   

    .cookie-accordion-item.active .cookie-accordion-content {
        padding: 1rem;
    }

    .cookie-accordion-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }

        .cookie-accordion-icon i {
            font-size: 1.25rem;
        }

    .cookie-accordion-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
   

    .cookie-accordion-icon {
        width: 30px;
        height: 30px;
        margin-right: 0.5rem;
    }

        .cookie-accordion-icon i {
            font-size: 1.1rem;
        }

    .cookie-accordion-title {
        font-size: 0.9rem;
    }

    .cookie-accordion-toggle {
        width: 28px;
        height: 28px;
    }

        .cookie-accordion-toggle i {
            font-size: 1.1rem;
        }
}

/* Animation for smooth expansion */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-accordion-item.active .cookie-accordion-body {
    animation: slideDown 0.3s ease forwards;
}