﻿
/* ================= Body and Container ================= */
body, .container {
    background-color: #fff;
    color: #000;
}

/* ================= Main Layout ================= */


.main_container .right_col {
    margin-left: 250px; /* space for sidebar */
    padding: 20px;
}

/* ================= Form Controls ================= */
.form-control {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 3px; /* small curve */
    padding: 6px 10px; /* optional: makes it look nicer */
}

label, .col-form-label {
    font-weight: bold;
    color: #000;
}

/* ================= Panels ================= */
.x_panel {
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: none;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fafafa;
}

.x_title h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

.x_content {
    padding: 10px 0;
}

/* ================= Buttons ================= */
.btn-success {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    border-color: #000;
    color: #000;
}

/* ================= Scrollable Form ================= */
.form-scroll {
    max-height: 70vh; /* limits form height */
    overflow-y: auto; /* vertical scroll */
    padding-right: 10px;
}

/* ================= Optional: small spacing adjustments ================= */
.row.mb-3 {
    margin-bottom: 15px;
}

.btn-light-green {
    background-color: #90ee90; /* light green */
    border: 1px solid #90ee90;
}

    .btn-light-green:hover {
        background-color: #7ccd7c; /* slightly darker on hover */
    }

.btn-red {
    background-color: #dc3545; /* red */
    color: #fff; /* white text */
    border: 1px solid #dc3545;
}

    .btn-red:hover {
        background-color: #c82333; /* slightly darker on hover */
    }


.button-wrapper {
    display: flex;
    flex-wrap: wrap; /* wrap buttons on small screens */
    gap: 5px; /* spacing between buttons */
}

.button-col {
    flex: 1 1 auto; /* buttons take equal width and shrink if needed */
    min-width: 100px; /* optional: prevent too small buttons */
}

.report-btn {
    width: 100%; /* stretch button to fill column */
    margin-top: 30px; /* top spacing */
    display: flex;
    align-items: center;
    justify-content: center; /* center icon + text */
}
    
.control-label
{
    font-weight:bold !important;
}

.form-control {
    display: block !important;
    width: 100% !important;
    height: 30px !important; /* reduced from 32px */
    padding: 3px 7px !important; /* reduced by 1px top/bottom, 1px sides */
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

/* ========== Base alignment for Select2 single and multiple ========== */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    height: 30px !important; /* reduced from 32px */
    min-height: 30px !important;
    padding: 3px 7px !important; /* reduced */
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* ========== Placeholder and selected text alignment ========== */
.select2-selection__rendered {
    line-height: 1.4 !important;
    padding-left: 0 !important;
}

/* ========== Dropdown arrow alignment ========== */
.select2-selection__arrow {
    top: 50% !important;
    right: 7px !important; /* slightly reduced */
    transform: translateY(-50%) !important;
}

/* ========== Multiple select wrapping fix ========== */
.select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: 30px !important; /* reduced */
    flex-wrap: wrap !important;
    overflow: hidden !important;
}

    .select2-container--default .select2-selection--multiple .select2-selection__rendered {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 2px !important;
    }

    .select2-container--default .select2-selection--multiple .select2-search--inline {
        flex: 1 !important;
        min-width: 100px !important;
    }



/*Table*/
table.dataTable {
    clear: both;
    margin-top: -1px !important;
    margin-bottom: 0px !important;
    max-width: none !important;
    border-collapse: separate !important;
}

/* Center spinner without overlay background */
.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perfectly center */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
}

/* Bouncing dots */
.dot {
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes bounce {
    to {
        transform: translateY(-15px);
    }
}

table.dataTable tbody tr {
    background-color: #ffffff !important;
}

    table.dataTable tbody tr:hover {
        background-color: #f1f1f1 !important;
    }

#KabuliyetnamaTable tbody tr.cleared {
    background-color: #28a745 !important;
    color: #fff !important;
}

#KabuliyetnamaTable tbody tr.uncleared {
    background-color: #dc3545 !important;
    color: #fff !important;
}


.form-control.input-line {
    border: none !important;
    border-bottom: 1px solid #aaa !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

    .form-control.input-line:focus {
        border-bottom: 2px solid #007bff !important;
    }
