
/* Genel Buton Stilleri */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.btn-tertiary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

    .btn-tertiary:hover {
        background-color: #e0e0e0;
    }


/* Çerez Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    /* width: 100%; */
    background-color: #ffffff;
    color: #2e2e2e;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* border-radius: 1rem; */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

    .cookie-consent-banner.hidden {
        display: none;
    }

.banner-content {
    margin-bottom: 15px;
    max-width: 800px;
}

    .banner-content h3 {
        margin-top: 0;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 10px;

    }

    .banner-content .privacy-link {
        color: #00aaff;
        text-decoration: underline;
    }

.banner-actions button {
    margin: 5px 10px;
}


/* Çerez Ayarları Modalı */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex; /* Hidden class kaldırıldığında görünür olacak */
    align-items: center;
    justify-content: center;
}

    .cookie-settings-modal.hidden {
        display: none;
    }

    .cookie-settings-modal .cookie-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.6);
    }

    .cookie-settings-modal .cookie-modal-content {
        position: relative;
        background-color: #fff;
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        width: 90%;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 1002;
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

    .modal-header h3 {
        margin: 0;
        font-size: 22px;
    }

.cookie-close-button {
    background: none;
    width: max-content;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    padding: 5px 10px;
}

    .close-button:hover {
        color: #333;
    }

.cookie-modal-body p {
    font-size: 15px;
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .category-header h4 {
        margin: 0;
        font-size: 18px;
    }

.category-description {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    margin-bottom: 0; /* Added to prevent extra space */
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    text-align: right;
}

/* Toggle Switch Stilleri */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Genişlik ayarlandı */
    height: 28px; /* Yükseklik ayarlandı */
}

    .switch 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;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px; /* İç topun boyutu */
        width: 20px; /* İç topun boyutu */
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:disabled + .slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

    input:disabled + .slider:before {
        background-color: #b0b0b0;
    }


input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(22px); /* Kaydırma mesafesi ayarlandı */
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Footer Link */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #e9ecef;
}

#manageCookiePreferencesLink {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

    #manageCookiePreferencesLink:hover {
        text-decoration: underline;
    }

/* Responsiveness */
@media (max-width: 768px) {
    .banner-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

        .banner-actions button {
            width: 90%;
            margin: 8px auto;
        }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .category-header h4 {
        font-size: 16px;
    }
}
