/* =========================================================
   GLOBAL
   ========================================================= */
.as-fadeOut {
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
    transition: opacity 1s ease, max-height 1s ease;
}
.as-hide {
    opacity: 0;
    max-height: 0;
}

.table-scroll-wrapper {
    max-height: 500px; /* istediğin yüksekliği ver */
    overflow-y: auto;
}

.table-scroll-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

th.sortable::after {
    content: "\F127";
    font-family: "bootstrap-icons";
    font-size: 0.75rem;
    margin-left: 6px;
    opacity: 0.5;
}

th.sortable.active.asc::after {
    content: "\F148";
    opacity: 1;
}

th.sortable.active.desc::after {
    content: "\f128";
    opacity: 1;
}

th.sortable.active {
    color: #0d6efd;
}



/* SELECTPICKER */
.bootstrap-select {
    height: 38px !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
}
.bootstrap-select .dropdown-toggle {
    height: 36px !important;
    padding: 0.375rem 0.75rem !important;
    background-color: #ffffff !important;
    border: none !important;
}
.bootstrap-select .filter-option {
    line-height: 1.5 !important;
}
.bootstrap-select .dropdown-menu {
    background-color: #ffffff !important;
}




/* =========================================================
   HEADER
   ========================================================= */
.as-header {
    background-color: #d9d9d9;
    color: #222;
}

.as-header a {
    color: #222;
    text-decoration: none;
}

.as-header a:hover {
    text-decoration: underline;
}

.as-headerContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.as-headerLogo {
    flex-shrink: 0;
    text-align: center;
}

.as-header .as-logo {
    max-height: 80px;
}

.as-headerBox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
    text-align: right;
}

.as-headerTitle {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.as-headerInfo {
    line-height: 1.4;
}

/* =========================================================
   HEADER MENU
   ========================================================= */
.as-headerMenu {
    background-color: #eee;
    padding: 0.5rem 0;
}


/* Mobile menu */
.as-menuMobile, .as-menuAccordion {
    display: none;
}

@media (max-width: 991.98px) {
    .as-headerContent {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .as-headerBox {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .as-headerTitle, .as-headerInfo {
        text-align: center;
    }
	
	.as-header .as-logo {
		max-height: 50px;
	}

    .as-menuMobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: #f5f5f5;
        font-size: 1.1rem;
        width: 100%;
    }

    .as-menuAccordion {
        display: none;
        flex-direction: column;
        background: #fff;
        padding: 0.5rem;
        width: 100%;
    }

    .as-menuAccordion.active {
        display: flex;
        flex-direction: column;
    }

    .as-menuAccordion .as-menuHeading {
        font-weight: 600;
        margin-top: 0.5rem;
    }

    .as-menuAccordion ul {
        list-style: none;
        padding-left: 1rem;
        margin: 0.25rem 0;
    }

    .as-menuAccordion ul li {
        padding: 0.25rem 0;
    }

    .as-menuAccordion a {
        text-decoration: none;
        color: #222;
    }

    .as-hamburger {
        font-size: 1.5rem;
        cursor: pointer;
    }
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.as-mainWrapper {
    max-width: 1290px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.as-courseSidebar {
    border-right: 1px solid rgba(0,0,0,0.05);
    box-shadow:
        2px 0 6px rgba(0,0,0,0.04),
        4px 0 12px rgba(0,0,0,0.03),
        6px 0 18px rgba(0,0,0,0.02);
    position: relative;
    z-index: 10;
}

.as-courseSidebar:hover {
    box-shadow: 6px 0 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease;
}



/* =========================================================
   COURSE TABLE
   ========================================================= */
   
.as-courseTable {
    border-collapse: collapse;
    table-layout: fixed;
}

.as-courseTable th,
.as-courseTable td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 6px 8px;
    line-height: 1.3;
    vertical-align: top;
}

.as-courseTable th {
    width: 20%;
    font-weight: 600; 
    color: #444;
}

.as-courseTable td {
    width: auto;
}

.as-courseTable tr:last-child th,
.as-courseTable tr:last-child td {
    border-bottom: none;
}

@media (max-width: 767.98px) {
    .as-courseTable th {
        width: 40%;
    }
}


/* =========================================================
   ANMELDUNG (FORM BUTTON)
   ========================================================= */
.as-splitBtn {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
}

.as-splitBtn .as-split-icon {
    background-color: #198754;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 1.5rem;
}



.as-splitBtn .as-split-text {
    background-color: #198754; /* #0d6efd blue*/
    color: #fff;
    padding: 0.25rem 1rem 0.255rem 0;
    font-size: 1.5rem;
}


.as-splitBtn:hover .as-split-icon {
    background-color: #157347;
}

.as-splitBtn:hover .as-split-text {
    background-color: #157347; /* #0b5ed7 blue*/
}


/* =========================================================
   PAYMENT / ÜBERWEISUNG
   ========================================================= */
   
.as-paymentWrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 30px auto;
}

@media (min-width: 768px) {
    .as-paymentWrapper {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .as-paymentQr {
        margin-left: 2rem;
    }
}
   
.as-paymentList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-paymentList li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.as-paymentList li strong {
    min-width: 160px;
    font-weight: 600;
    flex-shrink: 0;
}

.as-paymentList li span {
    flex: 1;
}

@media (max-width: 767.98px) {
	.as-paymentWrapper .as-paymentInfo {
        text-align: center;
        align-items: center;
    }
	
    .as-paymentList li {
        flex-direction: column;
		align-items: center;
        text-align: center;
    }

    .as-paymentList li strong,
    .as-paymentList li span {
        min-width: auto;
        margin-bottom: 0.2rem;
        text-align: center;
        flex: unset;
    }
}

/* =========================================================
   EPC QR
   ========================================================= */
   
.as-epcQr {
    min-height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}


/* =========================================================
   ADMIN SIDEBAR
   ========================================================= */
.admin-sidebar {
    height: 100%;
}

.admin-sidebar .nav-link {
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}



/* =========================================================
   CROPPER MODAL
   ========================================================= */
#modalCropper .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#cropperImage {
    max-width: 500px;   /* cropper maksimum genişliği */
    max-height: 500px;  /* cropper maksimum yüksekliği */
    width: 100%;
    height: auto;
    display: block;
}
