/* --- MODERN RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

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

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        border-radius: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .accordion-content {
        padding: 1rem;
    }

    /* Mobile Table Styles - General */
    .mobile-table,
    .modern-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .mobile-table thead,
    .modern-table thead {
        display: none;
    }

    .mobile-table tbody,
    .modern-table tbody {
        display: block;
    }

    .mobile-table tr,
    .modern-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .mobile-table td,
    .modern-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f3f4f6;
        position: relative;
        padding-left: 120px;
    }

    .mobile-table td:last-child,
    .modern-table tbody td:last-child {
        border-bottom: none;
    }

    .mobile-table td::before,
    .modern-table tbody td::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 110px;
        font-weight: 600;
        color: #6b7280;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-action-btn,
    .action-buttons {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .toggle-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .user-row {
        flex-direction: column;
        gap: 1rem;
    }

    .user-row>div {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .modal-content {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }

    .mobile-table td,
    .modern-table tbody td {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .mobile-table td::before,
    .modern-table tbody td::before {
        min-width: auto;
    }
}

/* --- MODERN CARD & HEADER --- */
.modern-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.modern-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- MODERN BUTTONS --- */
.modern-button {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.4);
}

.modern-button.secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.modern-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.modern-button.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.modern-button.danger:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.modern-button.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.modern-button.success:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.modern-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.modern-button.primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* --- MODERN BUTTON ICON (Small rounded icon buttons) --- */
.modern-button-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: white;
}

.modern-button-icon:hover {
    transform: translateY(-2px);
}

.modern-button-icon.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.modern-button-icon.primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.modern-button-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.modern-button-icon.danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.modern-button-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modern-button-icon.success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.modern-button-icon.secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.modern-button-icon.secondary:hover {
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* --- FORM STYLES --- */
.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-section {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.form-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- ACCORDION --- */
.accordion-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.accordion-header h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.accordion-content {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.collapse-content {
    transition: all 0.3s ease;
}

/* --- MODAL --- */
.modern-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(-20px);
    transition: all 0.3s ease;
}

.modern-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* --- MAP CONTAINER --- */
.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* --- ROUTE INFO --- */
.route-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

/* --- PASSENGER MANAGEMENT --- */
.passenger-row {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.passenger-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- BADGES & NOTIFICATIONS --- */
.alarm-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.waiting-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #f59e42 0%, #b45309 100%);
    color: white;
}

.notification.info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

/* --- EXTRA OPTIONS --- */
.extra-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.extra-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.extra-option.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

/* --- UTILITY CLASSES --- */
.hidden {
    display: none !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* --- SELECT2 MODERN STYLING --- */
.select2-container--default .select2-selection--single {
    border: 1px solid #3b82f6 !important;
    border-radius: 0.5rem !important;
    height: 42px !important;
    padding: 0.5rem !important;
    background: white !important;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: #374151 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #3b82f6 !important;
}

/* --- MODERN TABLE STYLES --- */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.modern-table thead {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
}

/* Silme Talepleri tablosu için özel stil - açık arka plan, koyu metin */
#delete-requests-table thead {
    background: #f9fafb !important;
    color: #1f2937 !important;
}

#delete-requests-table th {
    color: #1f2937 !important;
    font-weight: 600;
}

.modern-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- CHECKBOX STYLES --- */
.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* --- TOGGLE BUTTON --- */
.toggle-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* --- USER ROW --- */
.user-row {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-row:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- REMOVE BUTTON --- */
.remove-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* --- ACTION BUTTONS --- */
.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.action-btn.edit {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.action-btn.edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-btn.delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.action-btn.delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* --- FIRM LINK --- */
.firm-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.firm-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- STATUS BADGE --- */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.yes {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.status-badge.no {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* --- ROLE SELECT --- */
.role-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.3s ease;
}

.role-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* --- PASSWORD STRENGTH --- */
.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.password-strength.weak {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.password-strength.medium {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.password-strength.strong {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #86efac;
}

/* --- INPUT GROUP --- */
.input-group {
    position: relative;
}

.input-group .form-input {
    padding-right: 2.5rem;
}

.input-group .toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.input-group .toggle-password:hover {
    color: #374151;
    background: #f3f4f6;
}

/* --- DATATABLES STYLING --- */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin: 1rem 0;
}

/* --- TRIPS.PHP RESPONSIVE FIXES --- */
@media (max-width: 768px) {

    /* DataTable responsive fixes */
    #tripsTable {
        font-size: 0.75rem;
    }

    #tripsTable td,
    #tripsTable th {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    /* DataTable buttons responsive */
    .dataTables_wrapper .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .dataTables_wrapper .dt-button {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        margin: 0.125rem !important;
    }

    /* Filter modal responsive */
    #filterModal .bg-white {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    #filterModal .grid {
        grid-template-columns: 1fr !important;
    }

    /* Trip date display responsive */
    #trip-date-display {
        font-size: 1.5rem !important;
        padding: 0.5rem !important;
    }

    /* Action buttons responsive */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .action-buttons button {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    #tripsTable td,
    #tripsTable th {
        max-width: 80px;
        font-size: 0.7rem;
    }

    .dataTables_wrapper .dt-button {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    #trip-date-display {
        font-size: 1.25rem !important;
    }
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white !important;
    border: none !important;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.4);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0 0.5rem;
}

/* --- DRIVERS.PHP RESPONSIVE FIXES --- */
@media (max-width: 768px) {

    /* Drivers table responsive fixes */
    #driverTable.mobile-table {
        display: block;
        width: 100%;
        font-size: 0.875rem;
    }

    #driverTable.mobile-table thead {
        display: none;
    }

    #driverTable.mobile-table tbody {
        display: block;
    }

    #driverTable.mobile-table tr {
        display: block;
        margin-bottom: 1rem;
        border: none;
        border-radius: 1rem;
        padding: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
        position: relative;
    }

    #driverTable.mobile-table tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    #driverTable.mobile-table tr::before {
        content: '';
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    }

    #driverTable.mobile-table td {
        display: none;
        padding: 0.75rem 1rem;
    }

    /* Firms Table Responsive */
    #firmsTable.modern-table {
        display: block !important;
        width: 100% !important;
        font-size: 0.875rem !important;
    }

    #firmsTable.modern-table thead {
        display: none !important;
    }

    #firmsTable.modern-table tbody {
        display: block !important;
    }

    #firmsTable.modern-table tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: none !important;
        border-radius: 1rem !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        overflow: hidden !important;
        position: relative !important;
    }

    #firmsTable.modern-table tr:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }

    #firmsTable.modern-table tr::before {
        content: '' !important;
        display: block !important;
        height: 4px !important;
        background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%) !important;
    }

    #firmsTable.modern-table td {
        display: none !important;
        padding: 0.75rem 1rem !important;
    }

    /* Firms Table Ana bilgiler */
    #firmsTable.modern-table td[data-label="Firma Adı"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 1.25rem !important;
        padding-top: 2rem !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="Firma Adı"]::before {
        content: 'Firma Adı' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.5rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #firmsTable.modern-table td[data-label="E-posta"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="E-posta"]::before {
        content: '📧 E-posta' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #firmsTable.modern-table td[data-label="Telefon"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="Telefon"]::before {
        content: '📞 Telefon' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #firmsTable.modern-table td[data-label="Durum"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="Durum"]::before {
        content: '📊 Durum' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #firmsTable.modern-table td[data-label="Müşteri"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="Müşteri"]::before {
        content: '👥 Müşteri' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #firmsTable.modern-table td[data-label="Tedarikçi"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="Tedarikçi"]::before {
        content: '🚚 Tedarikçi' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    /* Firms Table İşlem butonları */
    #firmsTable.modern-table td[data-label="İşlemler"] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 1.25rem !important;
        padding-top: 1.5rem !important;
        gap: 0.75rem !important;
        background: #f8fafc !important;
        position: relative !important;
    }

    #firmsTable.modern-table td[data-label="İşlemler"]::before {
        content: '⚙️ İşlemler' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    /* Vehicles Maintenance Table Responsive */
    #maintenanceTable.modern-table {
        display: block !important;
        width: 100% !important;
        font-size: 0.875rem !important;
    }

    #maintenanceTable.modern-table thead {
        display: none !important;
    }

    #maintenanceTable.modern-table tbody {
        display: block !important;
    }

    #maintenanceTable.modern-table tr {
        display: block !important;
        margin-bottom: 1rem !important;
        border: none !important;
        border-radius: 1rem !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        overflow: hidden !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table tr:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }

    #maintenanceTable.modern-table tr::before {
        content: '' !important;
        display: block !important;
        height: 4px !important;
        background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%) !important;
    }

    #maintenanceTable.modern-table td {
        display: none !important;
        padding: 0.75rem 1rem !important;
    }

    /* Ana bilgiler */
    #driverTable.mobile-table td[data-label="Ad"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 1px solid #e2e8f0;
        position: relative;
    }

    #driverTable.mobile-table td[data-label="Ad"]::before {
        content: '👤 Sürücü';
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    /* Durum bilgisi */
    #driverTable.mobile-table td[data-label="Durum"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #f1f5f9;
        background: white;
    }

    #driverTable.mobile-table td[data-label="Durum"]::before {
        content: '📊 Durum';
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #64748b;
    }

    /* İşlem butonları */
    #driverTable.mobile-table td[data-label="İşlemler"] {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        background: #f8fafc;
    }

    /* Maintenance Table Ana bilgiler */
    #maintenanceTable.modern-table td[data-label="Servis"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 1.25rem !important;
        padding-top: 2rem !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="Servis"]::before {
        content: '🏢 Servis';
        position: absolute;
        left: 1.25rem;
        top: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #64748b;
    }

    /* Maintenance Table İşlem butonları */
    #maintenanceTable.modern-table td[data-label="İşlem"] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 1.25rem !important;
        padding-top: 1.5rem !important;
        gap: 0.75rem !important;
        background: #f8fafc !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="İşlem"]::before {
        content: '⚙️ İşlem' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    /* Mobile action buttons */
    #driverTable .mobile-action-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Maintenance Table Diğer Sütunlar */
    #maintenanceTable.modern-table td[data-label="Tarih"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #f1f5f9;
        background: white;
    }

    #maintenanceTable.modern-table td[data-label="Tarih"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="Tarih"]::before {
        content: '📅 Tarih' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #maintenanceTable.modern-table td[data-label="KM"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="KM"]::before {
        content: '🛣️ KM' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #maintenanceTable.modern-table td[data-label="Sonraki"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="Sonraki"]::before {
        content: '⏰ Sonraki' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #maintenanceTable.modern-table td[data-label="Tutar"] {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0.75rem 1.25rem !important;
        padding-top: 1.5rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: white !important;
        position: relative !important;
    }

    #maintenanceTable.modern-table td[data-label="Tutar"]::before {
        content: '💰 Tutar' !important;
        position: absolute !important;
        left: 1.25rem !important;
        top: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    #driverTable .mobile-action-btn.edit {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
    }

    #driverTable .mobile-action-btn.delete {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        color: white;
    }

    #driverTable .mobile-action-btn.copy {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        color: white;
    }

    #driverTable .mobile-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* Mobile detail button */
    #driverTable .mobile-detail-btn {
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.5rem;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 50%;
        color: #3b82f6;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }

    #driverTable .mobile-detail-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        transform: translateY(-50%) scale(1.1);
    }

    /* Mobile status badges */
    #driverTable .mobile-status-badge {
        padding: 0.5rem 1rem;
        border-radius: 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: center;
        min-width: 80px;
    }

    /* Mobile date cards */
    #driverTable .mobile-date-card {
        padding: 0.75rem;
        border-radius: 0.75rem;
        text-align: center;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: 100px;
    }

    /* Drivers modal responsive */
    #editModal .bg-white {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    #editModal .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    #editModal .form-input {
        font-size: 16px;
        /* iOS zoom önleme */
    }

    /* Drivers form responsive */
    .driver-form {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Action buttons responsive */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Modern button responsive */
    .modern-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens for drivers */
    #driverTable.mobile-table td[data-label="Ad"] {
        padding: 1rem;
    }

    #driverTable.mobile-table td[data-label="Durum"],
    #driverTable.mobile-table td[data-label="İşlemler"] {
        padding: 0.5rem 1rem;
    }

    #driverTable .mobile-action-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }

    #driverTable .mobile-action-btn svg {
        width: 1rem;
        height: 1rem;
    }

    #driverTable .mobile-status-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        min-width: 70px;
    }

    #driverTable .mobile-date-card {
        font-size: 0.7rem;
        padding: 0.6rem;
        min-width: 90px;
    }

    /* Maintenance Table 480px optimizasyonları */
    #maintenanceTable.modern-table td[data-label="Servis"] {
        padding: 1rem;
    }

    #maintenanceTable.modern-table td[data-label="Tarih"],
    #maintenanceTable.modern-table td[data-label="KM"],
    #maintenanceTable.modern-table td[data-label="Sonraki"],
    #maintenanceTable.modern-table td[data-label="Tutar"],
    #maintenanceTable.modern-table td[data-label="İşlem"] {
        padding: 0.5rem 1rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.75rem;
    }
}

/* iPhone ve küçük mobil cihazlar için özel düzenlemeler */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem !important;
        max-width: 85vw !important;
        max-height: 75vh !important;
        width: 85vw !important;
        height: auto !important;
        border-radius: 0.5rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-header {
        padding: 0.75rem !important;
    }

    .modal-header h2 {
        font-size: 1rem !important;
    }

    .modal-body {
        padding: 0.5rem !important;
        max-height: 50vh !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-footer {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    .modal-footer button {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Form elemanları için iPhone optimizasyonu */
    .form-input {
        font-size: 16px !important;
        /* iOS zoom önleme */
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Label'lar için daha küçük font */
    label {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Space-y azaltma */
    .space-y-3>*+* {
        margin-top: 0.5rem !important;
    }

    .space-y-4>*+* {
        margin-top: 0.75rem !important;
    }
}

/* Çok küçük ekranlar için ek optimizasyon */
@media (max-width: 375px) {
    .modal-content {
        margin: 0.5rem !important;
        max-width: 80vw !important;
        max-height: 70vh !important;
        width: 80vw !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-body {
        padding: 0.25rem !important;
        max-height: 40vh !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-header {
        padding: 0.5rem !important;
    }

    .modal-footer {
        padding: 0.25rem !important;
    }
}

/* =================================== */
/* DASHBOARD SPECIFIC STYLES */
/* =================================== */

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.stats-card.green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.stats-card.blue {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.stats-card.purple {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .chart-container {
        display: none;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Toggle */
.toggle-category {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-category:hover {
    background: rgba(255, 255, 255, 0.2);
}

.category-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    color: white;
}

.category-item span:first-child {
    font-weight: 500;
}

.category-item span:last-child {
    font-weight: 600;
    font-size: 1.1em;
}

/* Chart Buttons */
.chart-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chart-button {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.4);
}

.chart-button.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Counter Animation */
.counter {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.counter.animate {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alarm Badge Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.alarm-badge {
    animation: pulse 2s infinite;
}

/* Vehicle Plate Label (Map) */
.vehicle-plate-label {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Header Title Mobile */
@media (max-width: 480px) {
    .header-title {
        font-size: 1.25rem;
    }
}