/* Cookie Modal Base Styles */
.cookie-modal {
    position: fixed;
    background-color: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    z-index: 50;
}

/* Modal Positions */
.cookie-modal-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cookie-modal-top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.cookie-modal-bottom-center {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Modal Sizes */
.cookie-modal-small {
    max-width: 48rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-medium {
    max-width: 56rem;
    width: 90%;
    max-height: 120vh;
    overflow-y: auto;
}

.cookie-modal-large {
    max-width: 70rem;
    width: 90%;
    max-height: 150vh;
    overflow-y: auto;
}
/* Responsive Design kısmına ekle */
@media (min-width: 768px) {
    .cookie-modal-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .cookie-modal-tab-text {
        max-width: none;
    }

    .cookie-modal-tab-required {
        width: 0.5rem;
        height: 0.5rem;
    }

    .cookie-modal-actions-buttons {
        flex-direction: row;
    }

    /* Medium modal için tab genişlikleri */
    .cookie-modal-medium .cookie-modal-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: 120px;
    }

    .cookie-modal-medium .cookie-modal-tab-text {
        max-width: 150px;
    }

    /* Large modal için tab genişlikleri - UPDATED */
    .cookie-modal-large .cookie-modal-tab {
        padding: 1rem 3rem;
        font-size: 1rem;
        min-width: 180px;
    }

    .cookie-modal-large .cookie-modal-tab-text {
        max-width: 220px;
    }

    .cookie-modal-fullscreen .cookie-modal-tab {
        padding: 1.5rem 5rem;
        font-size: 1.25rem;
        min-width: 280px;
        flex: 1; /* Tabları eşit genişlikte yay */
    }

    .cookie-modal-fullscreen .cookie-modal-tab-text {
        max-width: none; /* Sınır kaldır, tam genişlik kullan */
    }

    /* Fullscreen modal tabs nav'ı da ayarla */
    .cookie-modal-fullscreen .cookie-modal-tabs-nav {
        display: flex;
        gap: 0.5rem;
        justify-content: center; /* Tabları ortala */
        flex-wrap: wrap; /* Gerekirse alt satıra geç */
    }
}
.cookie-modal-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
}

/* Modal Backdrop */
.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

/* Modal Container */
.cookie-modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

/* Modal Header */
.cookie-modal-header {
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.cookie-modal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-modal-header-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
}

.cookie-modal-header-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cookie-modal-header-text p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

.cookie-modal-close-button {
    padding: 0.5rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.cookie-modal-close-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    color: #374151;
}

/* Modal Body */
.cookie-modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(90vh - 140px);
}

/* Modal Tabs */
.cookie-modal-tabs {
    padding: 1rem 1.5rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.cookie-modal-tabs-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cookie-modal-tabs-nav::-webkit-scrollbar {
    display: none;
}

.cookie-modal-tab {
    position: relative;
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
    min-width: 0;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #4b5563;
}

.cookie-modal-tab:hover {
    color: #1f2937;
    background: rgba(243, 244, 246, 0.5);
}

.cookie-modal-tab-active {
    color: #2563eb;
    background: rgba(239, 246, 255, 0.5);
}

.cookie-modal-tab-icon {
    flex-shrink: 0;
    transition: color 0.3s ease;
    color: #6b7280;
}

.cookie-modal-tab-active .cookie-modal-tab-icon {
    color: #2563eb;
}

.cookie-modal-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.cookie-modal-tab-required {
    width: 0.375rem;
    height: 0.375rem;
    background-color: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.cookie-modal-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.125rem;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

/* Modal Content */
.cookie-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cookie-modal-content-spacing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Category Section */
.cookie-modal-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-modal-category-header {
    background: linear-gradient(135deg, #f9fafb, #f1f5f9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.cookie-modal-category-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-modal-category-info {
    flex: 1;
    min-width: 0;
}

.cookie-modal-category-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cookie-modal-category-icon {
    flex-shrink: 0;
    transition: color 0.3s ease;
    color: #6b7280;
}

.cookie-modal-category-icon-active {
    color: #059669;
}

.cookie-modal-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    word-break: break-words;
    margin: 0;
}

.cookie-modal-category-required-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dbeafe;
    color: #1d4ed8;
    border-radius: 9999px;
    flex-shrink: 0;
}

.cookie-modal-category-description {
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Toggle Switch */
.cookie-modal-toggle-container {
    flex-shrink: 0;
    position: relative;
}

.cookie-modal-toggle {
    width: 3.5rem;
    height: 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #d1d5db;
}

.cookie-modal-toggle-active {
    background: linear-gradient(135deg, #4ade80, #10b981);
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.3);
}

.cookie-modal-toggle-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-toggle:not(.cookie-modal-toggle-disabled):hover {
    transform: scale(1.05);
}

.cookie-modal-toggle-handle {
    position: absolute;
    top: 0.125rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0.125rem;
}

.cookie-modal-toggle-handle-active {
    transform: translateX(1.75rem);
}

.cookie-modal-toggle-handle-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 50%;
}

.cookie-modal-toggle-required-indicator {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 2px solid white;
}

/* Cookie Items Section */
.cookie-modal-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-modal-items-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cookie-modal-items-title-indicator {
    width: 0.25rem;
    height: 1rem;
    background: linear-gradient(180deg, #3b82f6, #4f46e5);
    border-radius: 9999px;
}

.cookie-modal-items-grid {
    display: grid;
    gap: 0.75rem;
}

.cookie-modal-item {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.cookie-modal-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.cookie-modal-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-modal-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-modal-item-title {
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s ease;
    margin: 0;
}

.cookie-modal-item:hover .cookie-modal-item-title {
    color: #111827;
}

.cookie-modal-item-badges {
    display: flex;
    gap: 0.5rem;
}

.cookie-modal-item-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 9999px;
}

.cookie-modal-item-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.cookie-modal-item-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cookie-modal-item-meta-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
}

.cookie-modal-item-meta-dot-blue {
    background-color: #60a5fa;
}

.cookie-modal-item-meta-dot-green {
    background-color: #4ade80;
}

/* Modal Actions */
.cookie-modal-actions {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb, #f1f5f9);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.cookie-modal-actions-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cookie-modal-button {
    position: relative;
    overflow: hidden;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cookie-modal-button:hover {
    transform: scale(1.05);
}

.cookie-modal-button-reject {
    color: #374151;
    background-color: white;
    border: 2px solid #d1d5db;
}

.cookie-modal-button-reject:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

.cookie-modal-button-selection {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
}

.cookie-modal-button-selection:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.cookie-modal-button-accept {
    color: white;
    background: linear-gradient(135deg, #10b981, #059669);
}

.cookie-modal-button-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.25);
}

.cookie-modal-button-content {
    position: relative;
    z-index: 10;
}

.cookie-modal-button-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-button:hover .cookie-modal-button-overlay {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .cookie-modal-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .cookie-modal-tab-text {
        max-width: none;
    }

    .cookie-modal-tab-required {
        width: 0.5rem;
        height: 0.5rem;
    }

    .cookie-modal-actions-buttons {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .cookie-modal-small,
    .cookie-modal-medium,
    .cookie-modal-large {
        width: 95%;
        max-width: none;
    }
}