/* ===== GDPR Cookie Banner ===== */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2533;
    color: #f0f0f0;
    padding: 18px 24px;
    z-index: 10000;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
    display: none;
    box-sizing: border-box;
}

#gdpr-banner .gdpr-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

#gdpr-banner .gdpr-text {
    font-size: 14px;
    flex: 1 1 400px;
    line-height: 1.5;
}

#gdpr-banner .gdpr-text a {
    color: #6cb4f0;
    text-decoration: underline;
}

#gdpr-banner .gdpr-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#gdpr-banner .btn-gdpr-accept {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

#gdpr-banner .btn-gdpr-accept:hover {
    background: #0056b3;
}

#gdpr-banner .btn-gdpr-reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

#gdpr-banner .btn-gdpr-reject:hover {
    background: #2c3e50;
    color: #fff;
}

#gdpr-banner .btn-gdpr-settings {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

#gdpr-banner .btn-gdpr-settings:hover {
    background: #2c3e50;
    color: #fff;
}

/* ===== Mobilni uređaji ===== */
@media (max-width: 575.98px) {
    #gdpr-banner {
        padding: 14px 16px;
    }

    #gdpr-banner .gdpr-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #gdpr-banner .gdpr-text {
        flex: 1 1 100%;
        font-size: 13px;
    }

    #gdpr-banner .gdpr-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    #gdpr-banner .btn-gdpr-accept,
    #gdpr-banner .btn-gdpr-reject,
    #gdpr-banner .btn-gdpr-settings {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        white-space: normal;
    }
}

/* ===== GDPR Settings Modal ===== */
#gdprModal .modal-header {
    background: #1a2533;
    color: #fff;
    border-bottom: none;
}

#gdprModal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

#gdprModal .modal-header .close:hover {
    opacity: 1;
}

#gdprModal .cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

#gdprModal .cookie-option:last-child {
    border-bottom: none;
}

#gdprModal .cookie-option-info h6 {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 15px;
}

#gdprModal .cookie-option-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    max-width: 340px;
}

#gdprModal .cookie-option-toggle {
    flex-shrink: 0;
    margin-left: 20px;
    padding-top: 2px;
}

/* Toggle switch */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.gdpr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.gdpr-switch input:checked + .gdpr-slider {
    background-color: #007bff;
}

.gdpr-switch input:disabled + .gdpr-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.gdpr-switch input:checked + .gdpr-slider:before {
    transform: translateX(22px);
}

.gdpr-switch input:disabled + .gdpr-slider:before {
    transform: translateX(22px);
}

/* Footer link */
.gdpr-footer-link {
    cursor: pointer;
    color: #6c757d;
    text-decoration: underline;
    font-size: 13px;
    background: none;
    border: none;
    padding: 0;
}

.gdpr-footer-link:hover {
    color: #343a40;
}

/* ===== Mini footer - fiksiran na dnu ===== */
#gdpr-mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 6px 16px;
    text-align: center;
    font-size: 12px;
    color: #666;
    z-index: 9000;
    display: none; /* gdpr.js kontrolira vidljivost */
    box-sizing: border-box;
}

#gdpr-mini-footer a {
    color: #666;
    text-decoration: underline;
}

#gdpr-mini-footer a:hover {
    color: #333;
}
