
:root {
    --bizim-red: #e30613;
    --bizim-red-hover: #bd050f;
    --dark-blue: #0b1a30;
    --light-bg: #f4f7fa;
    --text-color: #333333;
}

body.login-body {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #152e52 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 15px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.login-header {
    background: var(--light-bg);
    padding: 35px 30px 20px 30px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

.login-header h2 {
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.login-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.login-body-content {
    padding: 30px;
}

.form-group-custom {
    position: relative;
    margin-bottom: 22px;
}

.form-group-custom label {
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    background-color: #f8fafc;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--bizim-red);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.btn-bizim-login {
    width: 100%;
    background-color: var(--bizim-red);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.btn-bizim-login:hover {
    background-color: var(--bizim-red-hover);
}

.alert-custom-danger {
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}


* {
    box-sizing: border-box;
}

body.admin-body {
    background-color: #f4f7fa;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}


.admin-sidebar {
    width: 260px;
    background-color: var(--dark-blue);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.sidebar-brand {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-brand span {
    color: var(--bizim-red);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #a0aec0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--bizim-red);
    padding-left: 20px;
}

.sidebar-menu li a .icon {
    margin-right: 12px;
    font-size: 18px;
}


.admin-main {
    flex-grow: 1;
    padding: 40px;
    background-color: #f4f7fa;
    overflow-y: auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}

.user-badge {
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
    border: 1px solid #e2e8f0;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.card-blue::before { background-color: #3182ce; }
.card-green::before { background-color: #38a169; }
.card-orange::before { background-color: #dd6b20; }

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
}

.stat-info .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
}

.stat-icon {
    font-size: 36px;
    background: #f7fafc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}


.info-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.info-box-header {
    background: var(--dark-blue);
    color: #ffffff;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
}

.info-box-body {
    padding: 24px;
    color: #4a5568;
    line-height: 1.6;
}


.content-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    padding: 30px;
    margin-bottom: 30px;
}
.box-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f4f7fa;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.box-title-area h2 {
    font-size: 20px;
    margin: 0;
    color: var(--dark-blue);
}
.btn-action {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
}
.btn-add { background-color: #38a169; color: white; }
.btn-add:hover { background-color: #2f855a; }
.btn-cancel { background-color: #718096; color: white; }
.btn-cancel:hover { background-color: #4a5568; }
.btn-edit { background-color: #3182ce; color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-edit:hover { background-color: #2b6cb0; }
.btn-delete { background-color: var(--bizim-red); color: white; padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-delete:hover { background-color: var(--bizim-red-hover); }


.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    width: 100%;
}

.form-grid .form-group {
    min-width: 0;
}

.form-grid .form-group label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.form-grid .form-group input:not([type="checkbox"]),
.form-grid .form-group select,
.form-grid .form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 9px !important;
    background: #f8fafc;
    color: #0b1a30;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-grid .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid .form-group input:not([type="checkbox"]):focus,
.form-grid .form-group select:focus,
.form-grid .form-group textarea:focus {
    outline: none;
    border-color: var(--bizim-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, .09);
}

.form-grid input[type="checkbox"] {
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    accent-color: var(--bizim-red);
    vertical-align: -3px;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    margin-top: 24px;
    padding: 13px 24px;
    border: 0;
    border-radius: 9px;
    background: var(--bizim-red);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(227, 6, 19, .2);
    transition: transform .2s ease, background .2s ease;
}

.btn-save:hover {
    background: var(--bizim-red-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .form-group[style*="grid-column"] {
        grid-column: auto !important;
    }

    .btn-save {
        width: 100%;
    }
}


.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.custom-table th {
    background-color: #f7fafc;
    color: #4a5568;
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 2px solid #edf2f7;
}
.custom-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    font-size: 15px;
}
.custom-table tr:hover td {
    background-color: #f8fafc;
}
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-active { background-color: #c6f6d5; color: #22543d; }
.badge-passive { background-color: #fed7d7; color: #742a2a; }


.textarea-custom {
    min-height: 150px;
    resize: vertical;
}
.select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='10' height='6' fill='%234A5568'><path d='M0 0h10L5 6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}




input, select, textarea {
    -webkit-appearance: none;  
    -moz-appearance: none;     
    appearance: none;          
    border-radius: 8px !important; 
}


input:invalid, textarea:invalid {
    box-shadow: none !important;
}


input[type="text"], input[type="tel"], input[type="email"], textarea {
    background-image: linear-gradient(transparent, transparent) !important;
}


select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2rem !important;
}


.form-control:focus, .form-select:focus {
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
}
.quote-document-area { margin: 24px 0; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.quote-document-area > strong,.quote-document-area > small { display: block; }
.quote-document-area > strong { margin-bottom: 12px; color: #0b1a30; }
.quote-document-area > small { margin-top: 8px; color: #718096; }
.quote-document-thumb { display: block; width: 210px; height: 130px; padding: 0; overflow: hidden; border: 2px solid #d8e1ec; border-radius: 10px; background: #fff; cursor: zoom-in; }
.quote-document-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-document-modal[hidden] { display: none; }
.quote-document-modal { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 65px 30px 30px; background: rgba(3,12,25,.9); }
.quote-document-modal img { max-width: min(1100px,94vw); max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.quote-document-modal button { position: absolute; top: 18px; right: 25px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #0b1a30; font-size: 31px; line-height: 1; cursor: pointer; }
.admin-rich-editor { overflow: hidden; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; }
.admin-rich-editor:focus-within { border-color: var(--bizim-red); box-shadow: 0 0 0 3px rgba(227,6,19,.09); }
.admin-rich-editor__toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid #e2e8f0; background: #f7fafc; }
.admin-rich-editor__toolbar button { padding: 7px 10px; border: 1px solid #d7e0ea; border-radius: 6px; background: #fff; color: #334155; font-size: 12px; font-weight: 650; cursor: pointer; }
.admin-rich-editor__toolbar button:hover { border-color: #e30613; color: #e30613; }
.admin-rich-editor__source-button { margin-left: auto; background: #0b1a30!important; border-color: #0b1a30!important; color: #fff!important; }
.admin-rich-editor__visual { min-height: 330px; padding: 22px; outline: 0; color: #263449; line-height: 1.75; }
.admin-rich-editor__visual h2 { font-size: 26px; }
.admin-rich-editor__visual h3 { font-size: 21px; }
.admin-rich-editor textarea { display: none; width: 100%; min-height: 360px!important; margin: 0; padding: 20px; border: 0!important; border-radius: 0!important; background: #101827!important; color: #dbeafe!important; font: 14px/1.65 Consolas,monospace; resize: vertical; }
.admin-quote-badge { min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #f41022; color: #fff; font-size: 11px; font-weight: 800; }
.admin-quote-badge[hidden] { display: none; }
.admin-notification-toggle { width: calc(100% - 40px); margin: 5px 20px 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(255,255,255,.06); color: #b9c7d9; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-notification-toggle:hover,.admin-notification-toggle.is-enabled { border-color: rgba(56,161,105,.7); background: rgba(56,161,105,.18); color: #bdf5d2; }
