/* SCÜ Design System Components */

/* GENEL SAYFA STİLLERİ */
.component-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.component-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002D72;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

/* =========================================
   UTILITY SHIM
   ========================================= */
.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* .border { border-width: 1px; }  -- Removed to prevent conflict with bootstrap utils if needed */

.bg-slate-50 {
    background-color: #f8fafc;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.text-brand-red {
    color: #C8102E;
}

.text-green-500 {
    color: #22c55e;
}

.text-red-500 {
    color: #ef4444;
}

.list-none {
    list-style: none;
}

/* =========================================
   D) TABS (Prefixed to avoid Bootstrap conflict)
   ========================================= */
.comp-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.comp-tab-item {
    padding-bottom: 0.75rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.comp-tab-item:hover {
    color: #002D72;
}

.comp-tab-item.active {
    color: #002D72;
}

.comp-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #002D72;
}

.comp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.comp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   E) MODAL (Prefixed)
   ========================================= */
/* Not renaming Modal classes yet as they might not be used inside summernote directly, 
   but keeping an eye on .modal which is definitely Bootstrap. 
   If custom modal is needed, use .comp-modal */

/* =========================================
   F) ACCORDION (Prefixed)
   ========================================= */
.comp-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    margin-bottom: 1rem;
}

.comp-accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.comp-accordion-item:last-child {
    border-bottom: none;
}

.comp-accordion-header {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    background: white;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.comp-accordion-header:hover {
    background: #f8fafc;
}

.comp-accordion-header.active {
    color: #C8102E;
}

.accordion-icon {
    transition: transform 0.3s;
}

.comp-accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.comp-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8fafc;
    color: #475569;
}

.comp-accordion-body-content {
    padding: 1.25rem;
}

/* =========================================
   G) ALERTS (Prefixed)
   ========================================= */
.comp-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.comp-alert svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.comp-alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.comp-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.comp-alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.comp-alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* =========================================
   H) TOAST / POPUP (Prefixed)
   ========================================= */
.comp-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comp-toast {
    min-width: 300px;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border-left: 4px solid;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
}

.comp-toast.show {
    transform: translateX(0);
}

.comp-toast-success {
    border-left-color: #10b981;
}

.comp-toast-error {
    border-left-color: #ef4444;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.1rem;
}

.toast-message {
    font-size: 0.85rem;
    color: #64748b;
}