/* ePartner GDPR Cookie Banner Stilovi */

.epartner-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.epartner-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.epartner-cookie-text {
    flex: 1;
    min-width: 250px;
}

.epartner-cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.epartner-more-info-link {
    color: #007bff;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 500;
}

.epartner-more-info-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.epartner-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.epartner-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.epartner-btn-accept {
    background-color: #28a745;
    color: #ffffff;
}

.epartner-btn-accept:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.epartner-btn-settings {
    background-color: #007bff;
    color: #ffffff;
}

.epartner-btn-settings:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.epartner-btn-link {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.epartner-btn-link:hover {
    background-color: #007bff;
    color: #ffffff;
}

.epartner-btn-reject {
    background-color: #6c757d;
    color: #ffffff;
}

.epartner-btn-reject:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Modal stilovi */
.epartner-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.epartner-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.epartner-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

.epartner-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.epartner-modal-close:hover {
    color: #333;
}

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

.epartner-modal-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.epartner-cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

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

.epartner-category-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.epartner-always-active {
    display: inline-block;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.epartner-category-description {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

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

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

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

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

input:checked + .epartner-slider {
    background-color: #28a745;
}

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

.epartner-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.epartner-switch.disabled .epartner-slider {
    cursor: not-allowed;
}

.epartner-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

/* Mobilni uređaji */
@media (max-width: 768px) {
    .epartner-cookie-banner {
        padding: 15px;
    }
    
    .epartner-cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .epartner-cookie-text {
        text-align: center;
    }
    
    .epartner-cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .epartner-btn {
        width: 100%;
        padding: 12px;
    }
    
    .epartner-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .epartner-modal-footer {
        flex-direction: column;
    }
}

/* Animacija izlaska */
.epartner-cookie-banner.hiding {
    animation: slideDownBanner 0.4s ease-in forwards;
}

@keyframes slideDownBanner {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}
