/* =========================================================
   GENERAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f5f7fb;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}

a {
    transition: all .2s ease;
}


/* =========================================================
   HEADER
========================================================= */

.panel-header {
    width: 100%;
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.panel-header .container-fluid {
    width: 100%;
}


/* LOGO */

.panel-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #172033;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.panel-logo:hover {
    color: #172033;
}

.panel-logo > i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.panel-header .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 9px;
    min-height: 40px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
}

.panel-header .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}


/* =========================================================
   PAGE
========================================================= */

main.container-fluid {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0 0 5px 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: #172033;
}

.page-heading p {
    margin: 0;
    font-size: 13px;
    color: #818a9b;
}


/* =========================================================
   STAT CARDS
========================================================= */

.stat-card {
    height: 100%;
    min-height: 108px;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
    transition: all .2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(16, 24, 40, .06);
}

.stat-icon {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card span {
    display: block;
    color: #858e9f;
    font-size: 12px;
    margin-bottom: 3px;
}

.stat-card strong {
    display: block;
    color: #172033;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
}


/* WARNING */

.stat-card.warning .stat-icon {
    background: #fff7dc;
    color: #d99600;
}


/* DANGER */

.stat-card.danger .stat-icon {
    background: #fff0f0;
    color: #dc3545;
}


/* =========================================================
   MAIN CARD
========================================================= */

.panel-card {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}


/* =========================================================
   CARD HEADER
========================================================= */

.panel-card-header {
    min-height: 76px;
    padding: 16px 20px;
    border-bottom: 1px solid #eaedf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-card-header h2 {
    margin: 0 0 2px 0;
    color: #172033;
    font-size: 17px;
    font-weight: 700;
}

.panel-card-header > div > span {
    color: #8c95a5;
    font-size: 11px;
}


/* =========================================================
   SEARCH
========================================================= */

.site-search {
    width: 330px;
    position: relative;
}

.site-search > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #929bad;
    font-size: 14px;
    pointer-events: none;
}

.site-search input {
    width: 100%;
    height: 41px;
    padding: 0 14px 0 38px;
    border: 1px solid #dfe3ea;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-size: 12px;
    transition: all .2s ease;
}

.site-search input::placeholder {
    color: #a2a9b5;
}

.site-search input:hover {
    border-color: #cbd1db;
}

.site-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}


/* =========================================================
   TABLE
========================================================= */

.site-table {
    width: 100%;
}

.site-table thead th {
    background: #fafbfc;
    color: #7b8597;
    border-bottom: 1px solid #e8ebf0;
    padding: 12px 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
    white-space: nowrap;
}

.site-table tbody td {
    padding: 14px 20px;
    color: #414b5c;
    border-color: #eef0f3;
    vertical-align: middle;
    font-size: 12px;
}

.site-table tbody tr {
    transition: background .15s ease;
}

.site-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   SITE NAME
========================================================= */

.site-name {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.domain-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 9px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.site-name strong {
    display: block;
    margin: 0;
    color: #252e3d;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.site-name span {
    display: block;
    margin-top: 3px;
    color: #9099a8;
    font-size: 11px;
    line-height: 1.2;
}


/* =========================================================
   TIME BADGE
========================================================= */

.time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}


/* 30 GÜNDEN FAZLA */

.time-badge.success {
    background: #eaf8f0;
    color: #16824c;
}


/* 16 - 30 */

.time-badge.warning {
    background: #fff6d9;
    color: #9e7300;
}


/* 8 - 15 */

.time-badge.orange {
    background: #fff0e4;
    color: #d66300;
}


/* 7 VE ALTI */

.time-badge.danger {
    background: #ffebeb;
    color: #d92d20;
}


/* TARİH YOK */

.time-badge.secondary {
    background: #f0f2f5;
    color: #70798a;
}


/* =========================================================
   DECISION
========================================================= */

.decision {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}


/* KALACAK */

.decision.kalacak {
    background: #eaf8f0;
    color: #16824c;
}


/* SİLİNECEK */

.decision.silinecek {
    background: #ffebeb;
    color: #d92d20;
}


/* BELİRSİZ */

.decision.belirsiz {
    background: #f0f2f5;
    color: #6e7787;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5d6676;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.status > i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
}


/* ACTIVE */

.status.active > i {
    background: #20b26b;
    box-shadow: 0 0 0 3px rgba(32, 178, 107, .10);
}


/* WAITING */

.status.waiting > i {
    background: #f3a81b;
    box-shadow: 0 0 0 3px rgba(243, 168, 27, .10);
}


/* PASSIVE */

.status.passive > i {
    background: #9ba3af;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background: #ffffff;
    color: #687386;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
}

.action-btn:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .18);
}


/* =========================================================
   EMPTY
========================================================= */

.empty-row {
    padding: 65px 20px !important;
    text-align: center;
    color: #929baa !important;
}

.empty-row i {
    color: #b4bbc6;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.table-responsive::-webkit-scrollbar {
    height: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f5f6f8;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #d2d7df;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #bcc3ce;
}


/* =========================================================
   BOOTSTRAP OVERRIDES
========================================================= */

.btn {
    box-shadow: none !important;
}

.text-muted {
    color: #9aa2af !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    main.container-fluid {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .panel-header .container-fluid {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

}


@media (max-width: 767px) {

    .panel-header {
        height: 64px;
    }

    .panel-logo {
        font-size: 16px;
    }

    .panel-logo > i {
        width: 36px;
        height: 36px;
    }

    .panel-header .btn-primary {
        font-size: 0;
        width: 39px;
        height: 39px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .panel-header .btn-primary i {
        font-size: 16px;
        margin: 0 !important;
    }

    .page-heading h1 {
        font-size: 21px;
    }

    .panel-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-search {
        width: 100%;
    }

    .stat-card {
        min-height: 95px;
    }

    .site-table thead th,
    .site-table tbody td {
        padding-left: 14px;
        padding-right: 14px;
    }

}


@media (max-width: 575px) {

    main.container-fluid {
        padding: 16px 12px !important;
    }

    .panel-header .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .stat-card strong {
        font-size: 21px;
    }

}



/* =========================================================
   FORM CARDS
========================================================= */

.form-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 13px;
    overflow: hidden;
}

.form-card-header {
    padding: 17px 20px;
    border-bottom: 1px solid #edf0f3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.form-card-header h2 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
}

.form-card-header p {
    margin: 0;
    color: #9099a8;
    font-size: 11px;
}

.form-card-body {
    padding: 20px;
}


/* INPUT */

.form-label {
    color: #495365;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-label > span {
    color: #dc3545;
}

.form-control,
.form-select {
    min-height: 43px;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    color: #263142;
    font-size: 12px;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .07) !important;
}

textarea.form-control {
    min-height: 125px;
    resize: vertical;
}

.form-text {
    color: #9aa2b0;
    font-size: 10px;
}


/* =========================================================
   DECISION OPTIONS
========================================================= */

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.decision-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.decision-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.decision-option > div {
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    padding: 12px 14px;
    transition: all .15s ease;
}

.decision-option:hover > div {
    border-color: #b9c7df;
}

.decision-option strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    color: #3d4758;
    font-size: 12px;
}

.decision-option span {
    display: block;
    color: #929baa;
    font-size: 10px;
}

.decision-option input:checked + div {
    background: #f5f8ff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .05);
}

.decision-option input:checked + div strong {
    color: #2563eb;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.notification-box {
    background: #f8fafc;
    border: 1px solid #e6eaf0;
    border-radius: 9px;
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notification-box strong {
    display: block;
    color: #3d4758;
    font-size: 11px;
}

.notification-box strong i {
    margin-right: 4px;
    color: #2563eb;
}

.notification-box span {
    display: block;
    margin-top: 3px;
    color: #929baa;
    font-size: 9px;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}


/* =========================================================
   SAVE
========================================================= */

.save-site-btn {
    min-height: 44px;
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.save-site-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}


/* =========================================================
   EXPIRY ALERT
========================================================= */

.site-expiry-alert {
    min-height: 70px;
    margin-bottom: 20px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.site-expiry-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.site-expiry-alert strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.site-expiry-alert span {
    display: block;
    font-size: 10px;
    opacity: .75;
}


/* SUCCESS */

.site-expiry-alert.success {
    background: #f0faf4;
    border-color: #ccebd8;
    color: #16824c;
}

.site-expiry-alert.success .site-expiry-icon {
    background: #daf3e4;
}


/* WARNING */

.site-expiry-alert.warning {
    background: #fff9e9;
    border-color: #f3e1aa;
    color: #9a7000;
}

.site-expiry-alert.warning .site-expiry-icon {
    background: #fff0bd;
}


/* DANGER */

.site-expiry-alert.danger {
    background: #fff1f1;
    border-color: #f5cccc;
    color: #c92a2a;
}

.site-expiry-alert.danger .site-expiry-icon {
    background: #ffdddd;
}


/* =========================================================
   PAGINATION
========================================================= */

.site-pagination-wrapper {
    min-height: 70px;
    padding: 14px 20px;
    border-top: 1px solid #edf0f3;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-pagination-info {
    color: #8a93a3;
    font-size: 11px;
}

.site-pagination-info strong {
    color: #3e4858;
    font-weight: 600;
}


/* PAGINATION */

.site-pagination {
    display: flex;
    gap: 5px;
}

.site-pagination .page-item {
    margin: 0;
}

.site-pagination .page-link {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #e1e5eb;
    border-radius: 8px !important;

    background: #fff;
    color: #657084;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;

    box-shadow: none !important;

    transition: all .15s ease;
}

.site-pagination .page-link:hover {
    background: #f4f7fc;
    border-color: #cbd4e2;
    color: #2563eb;
}


/* ACTIVE */

.site-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}


/* DISABLED */

.site-pagination .page-item.disabled .page-link {
    background: #f7f8fa;
    color: #b5bbc5;
    border-color: #eceef1;
    cursor: default;
}


/* MOBILE */

@media (max-width: 767px) {

    .site-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }

}


/* =========================================================
   GLOBAL SEARCH
========================================================= */

.site-search {
    position: relative;
    margin: 0;
}

.site-search input {
    padding-right: 42px;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    color: #9aa3b2;
    text-decoration: none;

    transition: all .15s ease;
}

.search-clear:hover {
    background: #f0f2f5;
    color: #dc3545;
}

.site-search .search-clear i {
    position: static;
    left: auto;
    top: auto;
    transform: none;

    color: inherit;
    font-size: 11px;
}


/* =========================================================
   SEARCH RESULT BAR
========================================================= */

.search-result-bar {
    min-height: 48px;

    padding: 10px 20px;

    background: #f8faff;
    border-bottom: 1px solid #e7ebf2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #667085;
    font-size: 11px;
}

.search-result-bar > div > i {
    margin-right: 5px;
    color: #2563eb;
}

.search-result-bar strong {
    color: #344054;
    font-weight: 600;
}

.search-result-bar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #667085;
    text-decoration: none;

    font-size: 10px;
    font-weight: 600;
}

.search-result-bar a:hover {
    color: #dc3545;
}


/* =========================================================
   PAGINATION
========================================================= */

.site-pagination-wrapper {
    min-height: 70px;

    padding: 14px 20px;

    border-top: 1px solid #edf0f3;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-pagination-info {
    color: #8a93a3;
    font-size: 11px;
}

.site-pagination-info strong {
    color: #3e4858;
    font-weight: 600;
}

.site-pagination {
    display: flex;
    gap: 5px;
}

.site-pagination .page-item {
    margin: 0;
}

.site-pagination .page-link {
    width: 34px;
    height: 34px;

    padding: 0;

    border: 1px solid #e1e5eb;
    border-radius: 8px !important;

    background: #fff;
    color: #657084;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;

    box-shadow: none !important;

    transition: all .15s ease;
}

.site-pagination .page-link:hover {
    background: #f4f7fc;
    border-color: #cbd4e2;
    color: #2563eb;
}

.site-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.site-pagination .page-item.disabled .page-link {
    background: #f7f8fa;
    color: #b5bbc5;
    border-color: #eceef1;
    cursor: default;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .search-result-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .site-pagination-wrapper {
        flex-direction: column;
        justify-content: center;
    }

}