/* =========================================
   GENEL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f7f9;

    color: #263238;
}


/* =========================================
   ANA YAPI
========================================= */

.app-container {
    display: flex;
    min-height: 100vh;
}


/* =========================================
   SOL MENÜ
========================================= */

.sidebar {
    width: 250px;

    min-height: 100vh;

    background: #123c35;

    color: white;

    display: flex;
    flex-direction: column;

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    z-index: 100;
}


/* LOGO */

.logo-area {
    padding: 28px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.12);
}


.municipality-logo {
    width: 85px;
    height: 105px;

    object-fit: contain;

    margin-bottom: 14px;

    background: white;

    border-radius: 10px;

    padding: 5px;
}


.system-title {
    display: flex;

    flex-direction: column;

    text-align: center;

    gap: 5px;
}


.system-title strong {
    font-size: 15px;

    letter-spacing: 1px;
}


.system-title span {
    font-size: 12px;

    color: rgba(255,255,255,0.7);
}


/* =========================================
   MENÜ
========================================= */

.sidebar-menu {
    padding: 25px 15px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.menu-item {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 13px 15px;

    color: rgba(255,255,255,0.75);

    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;

    transition: 0.2s;
}


.menu-item span:first-child {
    width: 22px;

    text-align: center;

    font-size: 17px;
}


.menu-item:hover {
    background: rgba(255,255,255,0.09);

    color: white;
}


.menu-item.active {
    background: #ffffff;

    color: #123c35;

    font-weight: bold;
}


/* =========================================
   MENÜ ALT
========================================= */

.sidebar-bottom {
    margin-top: auto;

    padding: 20px 15px;

    border-top: 1px solid rgba(255,255,255,0.12);
}


.system-info {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 10px 12px 18px;
}


.system-info small {
    color: rgba(255,255,255,0.5);
}


.system-info strong {
    font-size: 12px;

    color: rgba(255,255,255,0.8);
}


.logout-menu {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    border-radius: 8px;

    text-decoration: none;

    color: #ffb4b4;

    font-size: 14px;
}


.logout-menu:hover {
    background: rgba(220,53,69,0.15);
}


/* =========================================
   ANA İÇERİK
========================================= */

.main-content {
    margin-left: 250px;

    width: calc(100% - 250px);

    padding: 38px 45px;

    min-height: 100vh;
}


/* =========================================
   ÜST BAR
========================================= */

.topbar {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 35px;
}


.page-label,
.section-label {
    display: block;

    font-size: 11px;

    font-weight: bold;

    color: #18856f;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}


.topbar h1 {
    background: none;

    color: #183c38;

    padding: 0;

    margin: 0 0 8px;

    border-radius: 0;

    font-size: 30px;
}


.topbar p {
    margin: 0;

    color: #7b8790;

    font-size: 14px;
}


.status-online {
    display: flex;

    align-items: center;

    gap: 8px;

    background: white;

    padding: 9px 14px;

    border-radius: 20px;

    font-size: 12px;

    color: #53636a;

    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}


.online-dot {
    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #2ca36f;
}


/* =========================================
   İSTATİSTİKLER
========================================= */

.stats-container {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 35px;
}


.stat-card {
    background: white;

    border-radius: 14px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 17px;

    border: 1px solid #e8edef;

    box-shadow:
        0 5px 18px rgba(30,50,60,0.05);
}


.stat-card-icon {
    width: 52px;

    height: 52px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 23px;
}


.stat-card-icon.blue {
    background: #e7f0ff;

    color: #3269d8;
}


.stat-card-icon.green {
    background: #e3f6ed;

    color: #16805b;

    font-size: 28px;
}


.stat-card-icon.orange {
    background: #fff0df;

    color: #d78322;
}


.stat-card-content {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.stat-card-content span {
    font-size: 10px;

    color: #8b969d;

    letter-spacing: 1px;

    font-weight: bold;
}


.stat-card-content strong {
    font-size: 27px;

    color: #1d3330;
}


.stat-card-content small {
    font-size: 11px;

    color: #9aa4a9;
}


/* =========================================
   HIZLI İŞLEMLER
========================================= */

.quick-section {
    margin-bottom: 35px;
}


.section-title h2,
.vehicles-header h2 {
    margin: 0;

    color: #1c3d38;

    font-size: 21px;
}


.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 17px;
}


.quick-card {
    background: white;

    border: 1px solid #e8edef;

    border-radius: 13px;

    padding: 17px;

    display: flex;

    align-items: center;

    gap: 13px;

    text-decoration: none;

    color: #263238;

    transition: 0.2s;
}


.quick-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(20,50,60,0.08);
}


.quick-card > div:nth-child(2) {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.quick-card strong {
    font-size: 14px;
}


.quick-card span {
    font-size: 11px;

    color: #8a969c;
}


.quick-card b {
    color: #9ba5a9;

    font-size: 18px;
}


.quick-icon {
    width: 43px;

    height: 43px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.blue-bg {
    background: #e7f0ff;
}


.orange-bg {
    background: #fff0df;
}


.green-bg {
    background: #e3f6ed;
}


/* =========================================
   ARAÇLAR
========================================= */

.vehicles-section {
    background: white;

    border-radius: 16px;

    padding: 25px;

    border: 1px solid #e6ecee;

    box-shadow:
        0 5px 20px rgba(20,50,60,0.04);
}


.vehicles-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;
}


.vehicles-header p {
    margin: 5px 0 0;

    font-size: 13px;

    color: #8a969c;
}


.add-vehicle-btn {
    background: #167d67;

    color: white;

    padding: 11px 17px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;

    transition: 0.2s;
}


.add-vehicle-btn:hover {
    background: #106553;
}


/* =========================================
   ARAMA
========================================= */

.search-box {
    display: flex;

    align-items: center;

    gap: 10px;

    background: #f7f9fa;

    border: 1px solid #e2e8ea;

    border-radius: 9px;

    padding: 0 15px;

    margin-bottom: 20px;
}


.search-box span {
    color: #89969c;

    font-size: 22px;
}


.search-box input {
    width: 100%;

    padding: 13px 5px;

    border: none;

    outline: none;

    background: transparent;

    font-size: 13px;

    color: #263238;
}


.search-box input::placeholder {
    color: #9aa5aa;
}


/* =========================================
   TABLO
========================================= */

.vehicle-table-wrapper {
    overflow-x: auto;
}


.vehicle-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}


.vehicle-table thead {
    background: #f7f9fa;
}


.vehicle-table th {
    padding: 13px 12px;

    text-align: left;

    font-size: 10px;

    letter-spacing: 0.8px;

    color: #7d898f;

    font-weight: bold;

    border-bottom: 1px solid #e5eaec;
}


.vehicle-table td {
    padding: 15px 12px;

    border-bottom: 1px solid #edf0f1;

    vertical-align: middle;
}


.vehicle-table tbody tr:hover {
    background: #fafcfc;
}


/* =========================================
   ARAÇ ADI
========================================= */

.vehicle-name {
    display: flex;

    align-items: center;

    gap: 11px;
}


.vehicle-icon {
    width: 38px;

    height: 38px;

    background: #edf5f3;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}


.vehicle-name div:last-child {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.vehicle-name strong {
    font-size: 13px;

    color: #263b38;
}


.vehicle-name span {
    font-size: 11px;

    color: #8c979c;
}


.table-text {
    font-size: 12px;

    color: #59676c;
}


/* =========================================
   DURUM
========================================= */

.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: bold;
}


.status.active {
    background: #e4f7ed;

    color: #16805b;
}


.status.service {
    background: #fff0df;

    color: #c77716;
}


.status.passive {
    background: #eef0f1;

    color: #6d777b;
}


/* =========================================
   TABLO BUTONLARI
========================================= */

.table-actions {
    display: flex;

    align-items: center;

    gap: 5px;
}


.table-actions a,
.table-actions button {
    border: none;

    padding: 7px 9px;

    border-radius: 6px;

    font-size: 10px;

    text-decoration: none;

    cursor: pointer;

    font-family: inherit;
}


.detail-btn {
    background: #e8f0ff;

    color: #3569c8;
}


.edit-btn {
    background: #fff1dc;

    color: #bd741a;
}


.delete-btn {
    background: #fde9e9;

    color: #c33c3c;
}


.table-actions a:hover,
.table-actions button:hover {
    opacity: 0.8;
}


/* =========================================
   BOŞ DURUM
========================================= */

.empty-state {
    text-align: center;

    padding: 60px 20px;
}


.empty-icon {
    font-size: 40px;

    margin-bottom: 10px;
}


.empty-state h3 {
    margin: 0 0 8px;

    color: #354b47;
}


.empty-state p {
    color: #89959a;

    font-size: 13px;
}


.empty-state a {
    display: inline-block;

    margin-top: 10px;

    background: #167d67;

    color: white;

    padding: 10px 16px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    display: flex;

    justify-content: space-between;

    padding: 25px 5px;

    color: #9aa4a9;

    font-size: 11px;
}


/* =========================================
   MOBİL
========================================= */

@media (max-width: 1000px) {

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;

        width: calc(100% - 210px);

        padding: 30px;
    }

    .stats-container,
    .quick-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .sidebar {
        width: 70px;
    }

    .logo-area {
        padding: 15px 5px;
    }

    .municipality-logo {
        width: 45px;
        height: 60px;
    }

    .system-title,
    .menu-item span:last-child,
    .system-info {
        display: none;
    }

    .menu-item {
        justify-content: center;

        padding: 14px 5px;
    }

    .main-content {
        margin-left: 70px;

        width: calc(100% - 70px);

        padding: 22px 15px;
    }

    .topbar {
        flex-direction: column;

        gap: 15px;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .vehicles-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .add-vehicle-btn {
        width: 100%;

        text-align: center;
    }

    .footer {
        flex-direction: column;

        gap: 8px;
    }

}

/* =========================================
   ARAÇ YÖNETİMİ PROFESYONEL TASARIM
========================================= */

.brand-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.municipality-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
}

.back-button {
    display: inline-block;
    padding: 12px 20px;
    background: #1e3a5f;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.back-button:hover {
    background: #2563eb;
}


/* FORM */

.form-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.form-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0f8;
    border-radius: 14px;
    font-size: 28px;
}

.form-title h2 {
    margin: 0 0 5px;
}

.form-title p {
    margin: 0;
    color: #64748b;
}


.vehicle-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #334155;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #f8fafc;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.form-submit {
    grid-column: 1 / -1;
    margin-top: 5px;
}

.primary-button {
    width: 100%;
    padding: 14px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.primary-button:hover {
    background: #2563eb;
}


/* KAYITLI ARAÇLAR */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    margin: 0 0 5px;
}

.section-header p {
    margin: 0;
    color: #64748b;
}

.vehicle-count {
    background: #e8f0f8;
    color: #1e3a5f;
    padding: 9px 15px;
    border-radius: 20px;
    font-weight: bold;
}


/* TABLO */

.table-wrapper {
    overflow-x: auto;
}

.plate-number {
    color: #1e3a5f;
    font-size: 15px;
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions form {
    display: inline;
}

.table-button {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.table-button.edit {
    background: #f59e0b;
    color: white;
}

.table-button.service {
    background: #2563eb;
    color: white;
}

.table-button.delete {
    background: #dc3545;
    color: white;
}


/* DURUM */

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.service {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}


/* BOŞ DURUM */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.empty-state h3 {
    color: #1e3a5f;
}

.empty-state p {
    color: #64748b;
}


/* TELEFON */

@media (max-width: 768px) {

    .brand-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .municipality-logo {
        width: 65px;
        height: 65px;
    }

    .vehicle-form {
        grid-template-columns: 1fr;
    }

    .form-submit {
        grid-column: auto;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .table-button {
        text-align: center;
    }

}
/* =========================================
   ARAÇ YÖNETİMİ - PROFESYONEL TASARIM
   ========================================= */

.page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.page-label {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.page-top h1 {
    margin: 0 0 8px;
    padding: 0;
    background: none;
    color: #172b4d;
    font-size: 32px;
}

.page-top p {
    margin: 0;
    color: #64748b;
}

.back-button {
    background: white;
    color: #1e3a5f;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.back-button:hover {
    background: #f1f5f9;
}


/* =========================================
   YENİ ARAÇ FORMU
   ========================================= */

.modern-form-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
    border: 1px solid #e5eaf0;
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.form-heading-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 13px;
    font-size: 25px;
}

.form-heading h2 {
    margin: 0 0 5px;
    color: #172b4d;
}

.form-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* FORM */

.modern-vehicle-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.input-group input::placeholder {
    color: #94a3b8;
}

.form-submit-area {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.save-vehicle-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.save-vehicle-button:hover {
    background: #1d4ed8;
}


/* =========================================
   ARAÇ LİSTESİ
   ========================================= */

.vehicle-management {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
    border: 1px solid #e5eaf0;
}

.vehicle-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-label {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.vehicle-list-header h2 {
    margin: 5px 0;
    color: #172b4d;
}

.vehicle-list-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.vehicle-count-box {
    min-width: 80px;
    text-align: center;
    background: #eff6ff;
    padding: 12px 18px;
    border-radius: 12px;
}

.vehicle-count-box strong {
    display: block;
    color: #2563eb;
    font-size: 23px;
}

.vehicle-count-box span {
    color: #64748b;
    font-size: 12px;
}


/* =========================================
   ARAMA
   ========================================= */

.vehicle-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 15px;
    border-radius: 11px;
    margin-bottom: 25px;
}

.vehicle-search span {
    font-size: 18px;
}

.vehicle-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 5px;
    font-size: 14px;
}


/* =========================================
   ARAÇ KARTLARI
   ========================================= */

.professional-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.professional-vehicle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 22px;
    transition: 0.2s;
}

.professional-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-symbol {
    width: 43px;
    height: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 11px;
    font-size: 21px;
}

.status {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background: #dcfce7;
    color: #15803d;
}

.status.service {
    background: #fef3c7;
    color: #b45309;
}

.status.inactive {
    background: #fee2e2;
    color: #b91c1c;
}


/* PLAKA */

.vehicle-plate {
    font-size: 23px;
    font-weight: 800;
    color: #172b4d;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.vehicle-brand-name {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}


/* ARAÇ DETAYLARI */

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.vehicle-detail {
    background: white;
    padding: 11px;
    border-radius: 9px;
}

.vehicle-detail span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.vehicle-detail strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* =========================================
   ARAÇ BUTONLARI
   ========================================= */

.professional-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.professional-actions form {
    display: block;
}

.vehicle-action {
    border: none;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.service-action {
    background: #2563eb;
    color: white;
}

.service-action:hover {
    background: #1d4ed8;
}

.edit-action {
    background: #fef3c7;
    color: #92400e;
}

.edit-action:hover {
    background: #fde68a;
}

.delete-action {
    background: #fee2e2;
    color: #b91c1c;
}

.delete-action:hover {
    background: #fecaca;
}


/* =========================================
   BOŞ DURUM
   ========================================= */

.professional-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.professional-empty div {
    font-size: 45px;
    margin-bottom: 15px;
}

.professional-empty h3 {
    color: #334155;
    margin-bottom: 8px;
}

.professional-empty p {
    font-size: 14px;
}


/* =========================================
   MOBİL
   ========================================= */

@media (max-width: 900px) {

    .professional-vehicle-grid {
        grid-template-columns: 1fr;
    }

    .modern-vehicle-form {
        grid-template-columns: 1fr;
    }

    .form-submit-area {
        grid-column: auto;
    }

}


@media (max-width: 600px) {

    .page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .page-top h1 {
        font-size: 26px;
    }

    .vehicle-management,
    .modern-form-card {
        padding: 20px;
    }

    .vehicle-list-header {
        align-items: flex-start;
        gap: 15px;
    }

    .vehicle-details {
        grid-template-columns: 1fr;
    }

    .professional-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-action {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        display: block;
    }

    .professional-actions form {
        width: 100%;
    }

}
/* =========================================
   SERVİS KAYITLARI
   ========================================= */

.modern-service-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modern-service-form .full-width {
    grid-column: 1 / -1;
}

.modern-service-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.modern-service-form textarea:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* SERVİS KARTLARI */

.service-record-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-record-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 22px;
    transition: 0.2s;
}

.service-record-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}


/* KART ÜST */

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.service-label {
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-card-top h3 {
    margin: 6px 0 3px;
    color: #172b4d;
    font-size: 20px;
}

.service-card-top p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.service-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eff6ff;
    border-radius: 11px;
    font-size: 21px;
}


/* SERVİS BİLGİLERİ */

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.service-info-grid > div {
    background: white;
    padding: 12px;
    border-radius: 9px;
}

.service-info-grid span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.service-info-grid strong {
    color: #334155;
    font-size: 13px;
}

.service-info-grid .cost {
    color: #15803d;
}


/* AÇIKLAMALAR */

.service-description {
    background: white;
    padding: 13px;
    border-radius: 9px;
    margin-bottom: 10px;
}

.service-description span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-description p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}


/* MOBİL */

@media (max-width: 900px) {

    .modern-service-form {
        grid-template-columns: 1fr;
    }

    .modern-service-form .full-width {
        grid-column: auto;
    }

    .service-record-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .service-info-grid {
        grid-template-columns: 1fr;
    }

    .service-card-top {
        flex-direction: column;
    }

}

/* =========================================================
   EK MOBİL UYUMLULUK DÜZELTMELERİ
   Mevcut tasarımı bozmadan telefon taşmalarını önler.
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}


/* ---------------------------------------------------------
   TABLET / TELEFON
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
        padding: 16px 10px !important;
    }

    .topbar,
    .page-top,
    .vehicles-header,
    .vehicle-list-header,
    .section-header,
    .service-card-top {
        width: 100%;
        max-width: 100%;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 21px !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .topbar p,
    .page-top p {
        font-size: 12px;
        line-height: 1.45;
    }

    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .stat-card {
        width: 100%;
        padding: 15px;
    }

    .quick-actions {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .quick-card {
        width: 100%;
        min-width: 0;
    }

    .vehicles-section,
    .vehicle-management,
    .modern-form-card {
        width: 100%;
        max-width: 100%;
        padding: 16px !important;
        border-radius: 12px;
    }

    .vehicles-header,
    .vehicle-list-header,
    .section-header,
    .page-top {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .add-vehicle-btn,
    .back-button {
        width: 100%;
        text-align: center;
    }

    .vehicle-search,
    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .professional-vehicle-grid,
    .service-record-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .professional-vehicle-card,
    .service-record-card {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .vehicle-details,
    .service-info-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .modern-vehicle-form,
    .modern-service-form,
    .vehicle-form {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .form-submit-area,
    .form-submit {
        grid-column: auto !important;
        width: 100%;
    }

    .save-vehicle-button,
    .primary-button {
        width: 100%;
    }

    .professional-actions,
    .table-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .professional-actions form,
    .vehicle-action,
    .table-button,
    .table-actions a,
    .table-actions button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Geniş tabloları sayfanın dışına taşırmak yerine
       kendi alanında yatay kaydırır. */
    .vehicle-table-wrapper,
    .table-wrapper,
    .report-table,
    .report-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vehicle-table,
    table {
        max-width: none;
    }

    textarea {
        width: 100% !important;
        min-width: 0;
    }
}


/* ---------------------------------------------------------
   KÜÇÜK TELEFON
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .main-content {
        margin-left: 58px;
        width: calc(100% - 58px);
        max-width: calc(100% - 58px);
        padding: 12px 8px !important;
    }

    .sidebar {
        width: 58px !important;
    }

    .municipality-logo {
        width: 40px !important;
        height: 50px !important;
    }

    .menu-item {
        padding: 11px 4px !important;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 19px !important;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-card-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .stat-card-content strong {
        font-size: 22px;
    }

    .vehicle-management,
    .modern-form-card,
    .vehicles-section {
        padding: 12px !important;
    }

    .professional-vehicle-card,
    .service-record-card {
        padding: 13px;
    }

    .vehicle-plate {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .service-card-top h3 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   📱 MOBİL TELEFON UYUMLULUĞU
   ========================================================= */

@media (max-width: 768px) {

    /* ANA SAYFA */
    .main-content {
        margin-left: 58px !important;
        width: calc(100% - 58px) !important;
        max-width: calc(100% - 58px) !important;
        padding: 15px 10px !important;
    }

    /* SOL MENÜ */
    .sidebar {
        width: 58px !important;
        min-width: 58px !important;
    }

    .logo-area {
        padding: 12px 4px !important;
    }

    .municipality-logo {
        width: 40px !important;
        height: 50px !important;
        padding: 3px !important;
    }

    .system-title {
        display: none !important;
    }

    .sidebar-menu {
        padding: 15px 5px !important;
        gap: 5px !important;
    }

    .menu-item {
        justify-content: center !important;
        padding: 12px 4px !important;
        gap: 0 !important;
    }

    .menu-item span:last-child {
        display: none !important;
    }

    .menu-item span:first-child {
        width: auto !important;
        font-size: 18px;
    }

    .sidebar-bottom {
        padding: 10px 5px !important;
    }

    .system-info {
        display: none !important;
    }

    .logout-menu {
        justify-content: center !important;
        padding: 12px 4px !important;
    }

    .logout-menu span:last-child {
        display: none;
    }


    /* =====================================================
       ÜST BAŞLIK
       ===================================================== */

    .topbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .topbar h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .topbar p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .status-online {
        width: 100%;
        justify-content: center;
    }


    /* =====================================================
       İSTATİSTİK KARTLARI
       ===================================================== */

    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .stat-card {
        width: 100% !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    .stat-card-icon {
        width: 45px !important;
        height: 45px !important;
        flex: 0 0 45px !important;
    }

    .stat-card-content strong {
        font-size: 23px !important;
    }


    /* =====================================================
       HIZLI İŞLEMLER
       ===================================================== */

    .quick-actions {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .quick-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
    }


    /* =====================================================
       ARAÇLAR BÖLÜMÜ
       ===================================================== */

    .vehicles-section,
    .vehicle-management,
    .modern-form-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .vehicles-header,
    .vehicle-list-header,
    .section-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .vehicles-header h2,
    .vehicle-list-header h2 {
        font-size: 19px !important;
    }

    .add-vehicle-btn,
    .back-button {
        width: 100% !important;
        text-align: center !important;
    }


    /* =====================================================
       ARAMA
       ===================================================== */

    .vehicle-search,
    .search-box {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .vehicle-search input,
    .search-box input {
        min-width: 0 !important;
        font-size: 13px !important;
    }


    /* =====================================================
       ARAÇ KARTLARI
       ===================================================== */

    .professional-vehicle-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .professional-vehicle-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 15px !important;
    }

    .vehicle-card-header {
        gap: 10px;
    }

    .vehicle-plate {
        font-size: 21px !important;
        overflow-wrap: anywhere;
    }

    .vehicle-brand-name {
        font-size: 13px !important;
    }

    .vehicle-details {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin: 15px 0 !important;
    }

    .vehicle-detail {
        padding: 10px !important;
    }


    /* =====================================================
       ARAÇ BUTONLARI
       ===================================================== */

    .professional-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 7px !important;
    }

    .professional-actions form {
        width: 100% !important;
    }

    .vehicle-action {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }


    /* =====================================================
       YENİ ARAÇ FORMU
       ===================================================== */

    .modern-vehicle-form,
    .vehicle-form,
    .modern-service-form {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .form-submit-area,
    .form-submit,
    .modern-service-form .full-width {
        grid-column: auto !important;
        width: 100% !important;
    }

    .input-group input,
    .input-group select,
    .form-group input,
    .form-group select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
    }

    .save-vehicle-button,
    .primary-button {
        width: 100% !important;
    }


    /* =====================================================
       SERVİS KAYITLARI
       ===================================================== */

    .service-record-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .service-record-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 15px !important;
    }

    .service-card-top {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .service-card-top h3 {
        font-size: 18px !important;
        overflow-wrap: anywhere;
    }

    .service-info-grid {
        grid-template-columns: 1fr !important;
    }


    /* =====================================================
       TABLOLAR
       ===================================================== */

    .vehicle-table-wrapper,
    .table-wrapper,
    .report-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .vehicle-table,
    .report-table {
        min-width: 750px !important;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer {
        flex-direction: column !important;
        gap: 7px !important;
        text-align: center;
        padding: 20px 5px !important;
    }
}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width: 400px) {

    .main-content {
        margin-left: 52px !important;
        width: calc(100% - 52px) !important;
        max-width: calc(100% - 52px) !important;
        padding: 12px 7px !important;
    }

    .sidebar {
        width: 52px !important;
        min-width: 52px !important;
    }

    .municipality-logo {
        width: 36px !important;
        height: 45px !important;
    }

    .menu-item {
        padding: 10px 3px !important;
    }

    .menu-item span:first-child {
        font-size: 16px;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 19px !important;
    }

    .vehicles-section,
    .vehicle-management,
    .modern-form-card {
        padding: 12px !important;
    }

    .professional-vehicle-card,
    .service-record-card {
        padding: 12px !important;
    }
}

/* =========================================================
   SERVİS GEÇMİŞİ - MOBİLDE ALT ALTA
   ========================================================= */

@media (max-width: 768px) {

    /* Servis geçmişi ana alanı */
    .service-history,
    .service-records,
    .service-history-section,
    .service-table-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    /* Eğer servis geçmişi tablo kullanıyorsa */
    .service-history table,
    .service-records table,
    .service-table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    /* Tablo başlığını telefonda gizle */
    .service-history thead,
    .service-records thead,
    .service-table thead {
        display: none;
    }

    /* Satırı kart haline getir */
    .service-history tbody tr,
    .service-records tbody tr,
    .service-table tbody tr {
        display: block;
        width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 10px 0;
    }

    /* Hücreleri alt alta getir */
    .service-history td,
    .service-records td,
    .service-table td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 14px !important;
        border: none !important;
        gap: 15px;
        font-size: 13px;
        text-align: right;
    }

    /* Hücrenin başındaki bilgiyi oluştur */
    .service-history td::before,
    .service-records td::before,
    .service-table td::before {
        font-weight: 700;
        color: #64748b;
        text-align: left;
        flex: 0 0 auto;
    }

    /* Sırasıyla kolon isimleri */
    .service-history td:nth-child(1)::before,
    .service-records td:nth-child(1)::before,
    .service-table td:nth-child(1)::before {
        content: "Plaka";
    }

    .service-history td:nth-child(2)::before,
    .service-records td:nth-child(2)::before,
    .service-table td:nth-child(2)::before {
        content: "Servis";
    }

    .service-history td:nth-child(3)::before,
    .service-records td:nth-child(3)::before,
    .service-table td:nth-child(3)::before {
        content: "Giriş";
    }

    .service-history td:nth-child(4)::before,
    .service-records td:nth-child(4)::before,
    .service-table td:nth-child(4)::before {
        content: "Çıkış";
    }

    .service-history td:nth-child(5)::before,
    .service-records td:nth-child(5)::before,
    .service-table td:nth-child(5)::before {
        content: "Yapılan İşlem";
    }

    .service-history td:nth-child(6)::before,
    .service-records td:nth-child(6)::before,
    .service-table td:nth-child(6)::before {
        content: "Masraf";
    }

    .service-history td:nth-child(7)::before,
    .service-records td:nth-child(7)::before,
    .service-table td:nth-child(7)::before {
        content: "İşlem";
    }

    /* Uzun yazılar taşmasın */
    .service-history td,
    .service-records td,
    .service-table td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Butonlar */
    .service-history td:last-child,
    .service-records td:last-child,
    .service-table td:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .service-history td:last-child a,
    .service-history td:last-child button,
    .service-records td:last-child a,
    .service-records td:last-child button,
    .service-table td:last-child a,
    .service-table td:last-child button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {

    .service-history-table {
        width: 100% !important;
        min-width: 0 !important;
    }

    .service-history-table thead {
        display: none;
    }

    .service-history-table tbody tr {
        display: block;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 8px 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    }

    .service-history-table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        width: 100% !important;
        padding: 10px 14px !important;
        border: none !important;
        gap: 15px;
        text-align: right;
    }

    .service-history-table td:nth-child(1)::before {
        content: "Plaka";
    }

    .service-history-table td:nth-child(2)::before {
        content: "Servis";
    }

    .service-history-table td:nth-child(3)::before {
        content: "Giriş Tarihi";
    }

    .service-history-table td:nth-child(4)::before {
        content: "Çıkış Tarihi";
    }

    .service-history-table td:nth-child(5)::before {
        content: "Yapılan İşlem";
    }

    .service-history-table td:nth-child(6)::before {
        content: "Değişen Parçalar";
    }

    .service-history-table td:nth-child(7)::before {
        content: "Masraf";
    }

    .service-history-table td:nth-child(8)::before {
        content: "İşlem";
    }

    .service-history-table td::before {
        font-weight: bold;
        color: #64748b;
        text-align: left;
        flex-shrink: 0;
    }

    .service-history-table td {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* =========================================================
   TAM MOBİL UYUMLULUK
   ========================================================= */

@media (max-width: 768px) {

    * {
        max-width: 100%;
    }

    html,
    body {
        width: 100%;
        overflow-x: hidden !important;
    }

    .app-container {
        width: 100%;
        max-width: 100%;
    }

    /* SOL MENÜ */
    .sidebar {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
    }

    .main-content {
        margin-left: 58px !important;
        width: calc(100% - 58px) !important;
        max-width: calc(100% - 58px) !important;
        padding: 12px 8px !important;
        overflow-x: hidden;
    }

    /* BAŞLIKLAR */
    .topbar,
    .page-top {
        width: 100%;
        margin-bottom: 20px;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 20px !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .topbar p,
    .page-top p {
        font-size: 12px;
        line-height: 1.5;
        word-break: break-word;
    }

    /* ONLINE DURUM */
    .status-online {
        width: 100%;
        justify-content: center;
    }

    /* İSTATİSTİKLER */
    .stats-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 10px;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }

    /* HIZLI İŞLEMLER */
    .quick-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 10px;
    }

    .quick-card {
        width: 100%;
        min-width: 0;
    }

    /* ANA KARTLAR */
    .vehicles-section,
    .vehicle-management,
    .modern-form-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        padding: 14px !important;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
    }

    /* BUTONLAR */
    .add-vehicle-btn,
    .back-button,
    .save-vehicle-button,
    .primary-button {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    /* FORM */
    .modern-vehicle-form,
    .modern-service-form,
    .vehicle-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 14px;
    }

    .input-group,
    .form-group {
        width: 100%;
        min-width: 0;
    }

    .input-group input,
    .input-group select,
    .form-group input,
    .form-group select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* FORM BUTONU */
    .form-submit-area,
    .form-submit {
        grid-column: auto !important;
        width: 100%;
    }

    /* ARAÇ KARTLARI */
    .professional-vehicle-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
        width: 100%;
    }

    .professional-vehicle-card {
        width: 100%;
        min-width: 0;
        padding: 15px;
        overflow: hidden;
    }

    /* ARAÇ BİLGİLERİ */
    .vehicle-details {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .vehicle-detail {
        width: 100%;
        min-width: 0;
    }

    /* SERVİS KARTLARI */
    .service-record-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 12px;
    }

    .service-record-card {
        width: 100%;
        min-width: 0;
        padding: 15px;
        overflow: hidden;
    }

    /* SERVİS ÜST KISMI */
    .service-card-top {
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 10px;
    }

    .service-card-top h3 {
        font-size: 18px;
        word-break: break-word;
    }

    /* SERVİS BİLGİLERİ
       PLAKA
       GİRİŞ
       ÇIKIŞ
       SERVİS ADI
       MASRAF
       VS. */
    .service-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100%;
        gap: 8px;
    }

    .service-info-grid > div {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .service-info-grid strong,
    .service-info-grid span {
        word-break: break-word;
    }

    /* AÇIKLAMA */
    .service-description {
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .service-description p {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* ARAÇ LİSTESİ BAŞLIĞI */
    .vehicle-list-header,
    .vehicles-header,
    .section-header {
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 12px;
    }

    /* ARAÇ SAYISI */
    .vehicle-count-box,
    .vehicle-count {
        width: 100%;
        box-sizing: border-box;
    }

    /* ARAMA */
    .vehicle-search,
    .search-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .vehicle-search input,
    .search-box input {
        min-width: 0;
        width: 100%;
    }

    /* BUTONLAR */
    .professional-actions,
    .table-actions {
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 7px;
    }

    .professional-actions form,
    .vehicle-action,
    .table-button,
    .table-actions a,
    .table-actions button {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* TABLOLAR */
    .vehicle-table-wrapper,
    .table-wrapper,
    .report-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /*
       Tablo varsa telefon ekranını bozmasın.
       Tablo kendi içinde sağa-sola kayabilir.
    */
    .vehicle-table,
    .report-table {
        min-width: 700px;
    }

    /* FOOTER */
    .footer {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
    }

    /* RESİMLER */
    img,
    svg,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    /* UZUN YAZILAR */
    h1,
    h2,
    h3,
    p,
    span,
    strong,
    small,
    label {
        overflow-wrap: anywhere;
    }

}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width: 400px) {

    .sidebar {
        width: 52px !important;
        min-width: 52px !important;
    }

    .main-content {
        margin-left: 52px !important;
        width: calc(100% - 52px) !important;
        max-width: calc(100% - 52px) !important;
        padding: 10px 6px !important;
    }

    .municipality-logo {
        width: 36px !important;
        height: 45px !important;
    }

    .menu-item {
        padding: 10px 3px !important;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 18px !important;
    }

    .vehicles-section,
    .vehicle-management,
    .modern-form-card {
        padding: 11px !important;
    }

    .professional-vehicle-card,
    .service-record-card {
        padding: 12px;
    }

    .stat-card {
        padding: 11px;
    }

    .stat-card-content strong {
        font-size: 21px;
    }
}

/* =========================================================
   ANASAYFA + ARAÇLAR + RAPORLAR
   TAM MOBİL UYUMLULUK
   ========================================================= */

@media (max-width: 768px) {

    /* GENEL SAYFA */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .app-container {
        width: 100%;
        max-width: 100%;
    }

    .main-content {
        margin-left: 58px !important;
        width: calc(100% - 58px) !important;
        max-width: calc(100% - 58px) !important;
        padding: 14px 9px !important;
        overflow-x: hidden !important;
    }


    /* =====================================================
       ANASAYFA
       ===================================================== */

    .topbar {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        gap: 12px;
        margin-bottom: 20px;
    }

    .topbar h1 {
        font-size: 21px !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .topbar p {
        font-size: 12px;
        line-height: 1.4;
    }

    .status-online {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }


    /* İSTATİSTİKLER */

    .stats-container {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .stat-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        box-sizing: border-box;
    }


    /* HIZLI İŞLEMLER */

    .quick-section {
        width: 100%;
    }

    .quick-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .quick-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* =====================================================
       ARAÇLAR SAYFASI
       ===================================================== */

    .page-top {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .page-top h1 {
        font-size: 21px !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .page-top p {
        font-size: 12px;
        line-height: 1.5;
    }

    .back-button {
        width: 100% !important;
        text-align: center;
        box-sizing: border-box;
    }


    /* ARAÇ FORMU */

    .modern-form-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .modern-vehicle-form {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .input-group {
        width: 100%;
        min-width: 0;
    }

    .input-group input,
    .input-group select {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .form-submit-area {
        grid-column: auto !important;
        width: 100%;
    }

    .save-vehicle-button {
        width: 100% !important;
    }


    /* ARAÇ LİSTESİ */

    .vehicle-management {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    .vehicle-list-header {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }

    .vehicle-count-box {
        width: 100%;
        box-sizing: border-box;
    }


    /* ARAÇ KARTLARI */

    .professional-vehicle-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .professional-vehicle-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 15px !important;
        overflow: hidden;
    }

    .vehicle-plate {
        font-size: 20px !important;
        word-break: break-word;
    }

    .vehicle-brand-name {
        word-break: break-word;
    }

    .vehicle-details {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .vehicle-detail {
        width: 100%;
        box-sizing: border-box;
    }


    /* ARAÇ BUTONLARI */

    .professional-actions {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 7px !important;
    }

    .professional-actions form {
        width: 100%;
    }

    .vehicle-action {
        width: 100% !important;
        box-sizing: border-box;
        text-align: center;
    }


    /* =====================================================
       RAPORLAR SAYFASI
       ===================================================== */

    .report-container,
    .reports-container,
    .report-section,
    .report-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* RAPOR BAŞLIĞI */

    .report-header,
    .reports-header {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px;
    }


    /* RAPOR KARTLARI */

    .report-grid,
    .reports-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .report-card {
        padding: 15px !important;
        overflow: hidden;
    }


    /* RAPOR İSTATİSTİKLERİ */

    .report-stats,
    .report-stat-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .report-stat,
    .report-stat-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* RAPOR FİLTRELERİ */

    .report-filters,
    .filter-container,
    .filter-form {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .report-filters input,
    .report-filters select,
    .filter-container input,
    .filter-container select,
    .filter-form input,
    .filter-form select {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* RAPOR TABLOSU */

    .report-table-wrapper,
    .report-table-container,
    .table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .report-table {
        min-width: 650px;
        width: 100%;
    }


    /* RAPOR BUTONLARI */

    .report-actions {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .report-actions button,
    .report-actions a {
        width: 100% !important;
        box-sizing: border-box;
        text-align: center;
    }


    /* =====================================================
       ARAMA
       ===================================================== */

    .vehicle-search,
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .vehicle-search input,
    .search-box input {
        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       GENEL BUTONLAR
       ===================================================== */

    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    textarea {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* =====================================================
       UZUN YAZILAR
       ===================================================== */

    h1,
    h2,
    h3,
    h4,
    p,
    span,
    strong,
    small,
    label,
    td,
    th {
        overflow-wrap: anywhere;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer {
        width: 100%;
        display: flex;
        flex-direction: column !important;
        gap: 8px;
        box-sizing: border-box;
    }
}


/* =========================================================
   ÇOK KÜÇÜK TELEFON
   ========================================================= */

@media (max-width: 400px) {

    .sidebar {
        width: 52px !important;
        min-width: 52px !important;
    }

    .main-content {
        margin-left: 52px !important;
        width: calc(100% - 52px) !important;
        max-width: calc(100% - 52px) !important;
        padding: 10px 6px !important;
    }

    .municipality-logo {
        width: 36px !important;
        height: 45px !important;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 18px !important;
    }

    .modern-form-card,
    .vehicle-management,
    .vehicles-section,
    .report-card {
        padding: 11px !important;
    }

    .professional-vehicle-card {
        padding: 12px !important;
    }
}

/* =====================================================
   MOBİL - KESİN TAŞMA ENGELLEME
   ===================================================== */

@media screen and (max-width: 768px) {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .app-container {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        overflow: hidden !important;
    }

    .main-content {
        margin-left: 58px !important;
        padding: 12px !important;

        width: calc(100vw - 58px) !important;
        max-width: calc(100vw - 58px) !important;
        min-width: 0 !important;

        overflow-x: hidden !important;
    }


    /* HER ŞEYİN EKRANA UYMASI */

    .main-content > *,
    .main-content section,
    .main-content article,
    .main-content form,
    .main-content div {
        max-width: 100% !important;
        min-width: 0 !important;
    }


    /* BAŞLIKLAR */

    .topbar,
    .page-top,
    .vehicles-header,
    .vehicle-list-header,
    .section-header,
    .section-title {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 20px !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }


    /* =================================================
       ANASAYFA
       ================================================= */

    .stats-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .stat-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .quick-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .quick-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .vehicles-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        overflow: hidden !important;
    }


    /* =================================================
       ARAÇLAR
       ================================================= */

    .modern-form-card,
    .vehicle-management {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .modern-vehicle-form,
    .vehicle-form,
    .modern-service-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    .input-group,
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .input-group input,
    .input-group select,
    .form-group input,
    .form-group select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .professional-vehicle-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .professional-vehicle-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .vehicle-details {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .vehicle-detail {
        width: 100% !important;
        max-width: 100% !important;
    }

    .professional-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .professional-actions form,
    .professional-actions a,
    .vehicle-action {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* =================================================
       SERVİS GEÇMİŞİ
       ================================================= */

    .service-record-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .service-record-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .service-info-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .service-info-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }


    /* =================================================
       RAPORLAR
       ================================================= */

    .report-container,
    .reports-container,
    .report-section,
    .reports-section,
    .report-card,
    .report-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .report-grid,
    .reports-grid,
    .report-stats,
    .report-stat-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    .report-stat,
    .report-stat-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }


    /* RAPOR FİLTRELERİ */

    .report-filters,
    .filter-container,
    .filter-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px !important;
    }

    .report-filters input,
    .report-filters select,
    .filter-container input,
    .filter-container select,
    .filter-form input,
    .filter-form select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }


    /* =================================================
       TABLOLAR
       ================================================= */

    .vehicle-table-wrapper,
    .table-wrapper,
    .report-table-wrapper,
    .report-table-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
    }

    .vehicle-table,
    .report-table {
        width: max-content !important;
        min-width: 650px !important;
    }


    /* =================================================
       BUTONLAR
       ================================================= */

    .add-vehicle-btn,
    .back-button,
    .save-vehicle-button,
    .primary-button,
    .report-actions button,
    .report-actions a {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }


    /* =================================================
       UZUN YAZILAR
       ================================================= */

    * {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    img,
    svg,
    video,
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}


/* =====================================================
   ÇOK KÜÇÜK TELEFON
   ===================================================== */

@media screen and (max-width: 400px) {

    .sidebar {
        width: 52px !important;
        min-width: 52px !important;
    }

    .main-content {
        margin-left: 52px !important;
        width: calc(100vw - 52px) !important;
        max-width: calc(100vw - 52px) !important;
        padding: 8px !important;
    }

    .topbar h1,
    .page-top h1 {
        font-size: 18px !important;
    }

    .vehicles-section,
    .vehicle-management,
    .modern-form-card,
    .report-card {
        padding: 10px !important;
    }
}
/* =========================================================
   TELEFONDA TABLOLARI KART HALİNE GETİR
   ========================================================= */

@media (max-width: 768px) {

    /* TABLO DIŞARI TAŞMASIN */
    .vehicle-table-wrapper,
    .table-wrapper,
    .report-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* TABLO ARTIK GENİŞLİĞE ZORLANMASIN */
    .vehicle-table,
    .report-table,
    table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block;
    }

    /* BAŞLIKLARI GİZLE */
    .vehicle-table thead,
    .report-table thead,
    table thead {
        display: none;
    }

    /* HER ARAÇ AYRI KART */
    .vehicle-table tbody,
    .report-table tbody,
    table tbody {
        display: block;
        width: 100%;
    }

    .vehicle-table tbody tr,
    .report-table tbody tr,
    table tbody tr {
        display: block;
        width: 100%;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 12px;
        box-sizing: border-box;
    }

    /* HÜCRELER ALT ALTA */
    .vehicle-table td,
    .report-table td,
    table td {
        display: grid;
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        min-width: 0;
        padding: 10px 4px !important;
        border-bottom: 1px solid #edf0f1;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    /* SON HÜCREDE ÇİZGİ OLMASIN */
    .vehicle-table td:last-child,
    .report-table td:last-child,
    table td:last-child {
        border-bottom: none;
    }

    /* TABLODAKİ YAZILAR TAŞMASIN */
    .vehicle-table td *,
    .report-table td *,
    table td * {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* SÜTUN İSİMLERİ */
    .vehicle-table td:nth-child(1)::before,
    table td:nth-child(1)::before {
        content: "Araç";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    .vehicle-table td:nth-child(2)::before,
    table td:nth-child(2)::before {
        content: "Araç Türü";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    .vehicle-table td:nth-child(3)::before,
    table td:nth-child(3)::before {
        content: "Müdürlük";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    .vehicle-table td:nth-child(4)::before,
    table td:nth-child(4)::before {
        content: "Model Yılı";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    .vehicle-table td:nth-child(5)::before,
    table td:nth-child(5)::before {
        content: "Durum";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    .vehicle-table td:nth-child(6)::before,
    table td:nth-child(6)::before {
        content: "İşlemler";
        font-weight: bold;
        color: #64748b;
        font-size: 11px;
    }

    /* ARAÇ BİLGİSİ */
    .vehicle-name {
        min-width: 0;
        width: 100%;
    }

    .vehicle-name strong,
    .vehicle-name span {
        overflow-wrap: anywhere;
    }

    /* BUTONLAR */
    .table-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .table-actions a,
    .table-actions button,
    .table-button {
        width: 100% !important;
        box-sizing: border-box;
        text-align: center;
    }

}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width: 480px) {

    .vehicle-table td,
    .report-table td,
    table td {
        grid-template-columns: 85px minmax(0, 1fr);
        font-size: 12px;
        padding: 9px 3px !important;
    }

    .vehicle-table td::before,
    .report-table td::before,
    table td::before {
        font-size: 10px !important;
    }

    .vehicle-name strong {
        font-size: 12px;
    }

    .vehicle-name span {
        font-size: 11px;
    }

}