﻿body {
    background-color: #f5f7fa;
}
/* Sabit kenar çubuğu */
.main-sidebar {
    background-color: #1a2b63;
    width: 280px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
}

.content-wrapper {
    margin-left: 280px;
}

.sidebar-link {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .sidebar-link:hover,
    .sidebar-link.active {
        background-color: rgba(255, 255, 255, 0.12);
    }
/* Başlık degrade */
.header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* Adım göstergesi (Stepper) */
.stepper-container {
    overflow-x: auto;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: max-content;
}

.step {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

    .step .step-content {
        background-color: #e9ecef;
        color: #495057;
        font-weight: 600;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        position: relative;
    }

        .step .step-content::after {
            content: "";
            position: absolute;
            right: -10px;
            top: 0;
            width: 0;
            height: 0;
            border-top: 18px solid transparent;
            border-bottom: 18px solid transparent;
            border-left: 10px solid #e9ecef;
        }

    .step.active .step-content {
        background-color: #4f46e5;
        color: #fff;
    }

        .step.active .step-content::after {
            border-left-color: #4f46e5;
        }

    .step.completed .step-content {
        background-color: #198754;
        color: #fff;
    }

        .step.completed .step-content::after {
            border-left-color: #198754;
        }

    .step:last-child .step-content::after {
        display: none;
    }

small, .small {
    font-size: 100% !important;
    font-weight: 400 !important;
}

.header-title {
    margin-left: 20px !important;
}

/* Mobilde offcanvas için alan bırakma */
@media (max-width: 991.98px) {
    .main-sidebar {
        position: fixed;
        transform: translateX(-100%);
    }

    .content-wrapper {
        margin-left: 0;
    }
}





/* Offcanvas genişliği */
.offcanvas-start {
    width: 280px !important;
}

/* Menü öğeleri */
/*.sidebar-link {
    padding: 12px 15px !important;
    font-size: 15px !important;
}*/

/* Logo boyutu */
.offcanvas-header img {
    max-width: 180px !important;
}


/* Tablo responsive ayarı */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobilde tablo hücreleri */
@media (max-width: 768px) {
    .table td, .table th {
        white-space: nowrap;
        padding: 8px !important;
    }

    /* Badge'ler için */
    .badge {
        margin-bottom: 4px;
        display: inline-block;
    }
}


/* Header başlıkları */
@media (max-width: 768px) {
    .header-title {
        flex-direction: column;
        align-items: flex-start !important;
    }

        .header-title h1,
        .header-title h2 {
            font-size: 16px !important;
            margin-bottom: 4px !important;
        }

        /* Çizgi kaldırma */
        .header-title div {
            display: none !important;
        }
}

/* Footer metni */
@media (max-width: 576px) {
    footer p {
        font-size: 12px !important;
        padding: 0 10px;
    }
}


/* Kart içi düzen */
@media (max-width: 768px) {
    .card-body {
        padding: 15px !important;
    }

    /* Butonlar */
    .btn-sm {
        padding: 5px 10px !important;
        font-size: 13px !important;
        margin-bottom: 5px;
    }
}

.navbar-toggler {
    background-color: #7469d8 !important;
}

#offcanvasSidebar {
    background-color: #1a2b63 !important; /* Desktop sidebar rengin */
}

.customFontSize {
    font-weight: 600;
}



/*spinner baş*/
.loader {
    position: relative;
    width: 100px;
    height: 130px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(222, 53, 0, 0.1) inset;
    border: 1px solid rgba(222, 53, 0, 0.2);
}

    .loader:before {
        content: '';
        position: absolute;
        width: 60px;
        height: 28px;
        left: 50%;
        top: 0;
        background-image: radial-gradient(ellipse at center, #0000 24%, #de3500 25%, #de3500 64%, #0000 65%), linear-gradient(to bottom, #0000 34%, #de3500 35%);
        background-size: 14px 14px, 100% auto;
        background-repeat: no-repeat;
        background-position: center top;
        transform: translate(-50%, -65%);
        box-shadow: 0 -4px 8px rgba(222, 53, 0, 0.3) inset, 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 4px 4px 0 0;
        z-index: 2;
    }

    .loader:after {
        content: '';
        position: absolute;
        left: 50%;
        top: 20%;
        transform: translateX(-50%);
        width: 70%;
        height: 60%;
        background: linear-gradient(to bottom, #de3500 30%, #0000 31%);
        background-size: 100% 16px;
        animation: writeDown 2.2s ease-in-out infinite;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 8px rgba(222, 53, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    /* Kalem ucu efekti */
    .loader .pen-tip {
        position: absolute;
        width: 4px;
        height: 8px;
        background: #de3500;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
        animation: penMove 2.2s ease-in-out infinite;
        z-index: 3;
        box-shadow: 0 0 4px rgba(222, 53, 0, 0.6);
    }

@keyframes writeDown {
    0% {
        height: 0%;
        opacity: 0;
        background: linear-gradient(to bottom, #de3500 30%, #0000 31%);
    }

    20% {
        height: 0%;
        opacity: 1;
    }

    50% {
        background: linear-gradient(to bottom, #de3500 30%, #0000 31%);
    }

    80% {
        height: 65%;
        opacity: 1;
        background: linear-gradient(to bottom, #de3500 30%, #ff6b4a 31%, #ff6b4a 70%, #de3500 71%);
    }

    100% {
        height: 65%;
        opacity: 0;
    }
}

@keyframes penMove {
    0%, 20% {
        bottom: 20%;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    80% {
        bottom: 85%;
        opacity: 1;
    }

    100% {
        bottom: 85%;
        opacity: 0;
    }
}

/* Container için ek stil */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.loader-text {
    color: #de3500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.introjs-helperLayer {
    box-shadow: none !important;
    background: transparent !important;
}

.introjs-bullets > ul[role='tablist'] {
    display: none !important;
}


.font-panel-panel {
    font-size: 14px;
}


.is-locked {
    pointer-events: none !important;
    cursor: not-allowed !important;
}