/* Drivers Log Mobile CSS - TreElv Branding.
   Alle Regeln sind auf .drivers-log-mobile begrenzt: das Stylesheet liegt in web.assets_frontend und
   färbte sonst Knöpfe (.btn-primary grüner Verlauf), Formulare und Links der ganzen Website ein
   (Wackerhagen-Website, 2026-10-23). */


.drivers-log-mobile * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.drivers-log-mobile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #5c4033 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.drivers-log-mobile .mobile-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px 96px;
    min-height: 100vh;
}/* Login Screen */


.drivers-log-mobile .login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

.drivers-log-mobile .logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.drivers-log-mobile .app-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.drivers-log-mobile .login-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.drivers-log-mobile .login-form .form-group {
    margin-bottom: 20px;
}

.drivers-log-mobile .login-form label {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 8px;
    display: block;
}

.drivers-log-mobile .login-form .form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 14px 16px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.drivers-log-mobile .login-form .form-control:focus {
    border-color: #2d5016;
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
    outline: none;
}

.drivers-log-mobile .login-form select.form-control {
    background-image: linear-gradient(45deg, transparent 50%, #2d5016 50%), linear-gradient(135deg, #2d5016 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}/* Password/PIN input styling */


.drivers-log-mobile #password_input {
    font-size: 16px;
    letter-spacing: 1px;
}/* "Angemeldet bleiben" Checkbox */


.drivers-log-mobile .form-check {
    padding-left: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.drivers-log-mobile .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 0;
    cursor: pointer;
    accent-color: #2d5016;
    flex-shrink: 0;
}

.drivers-log-mobile .form-check-label {
    font-size: 15px;
    color: #555;
    cursor: pointer;
    user-select: none;
    line-height: 24px;
}

.drivers-log-mobile .btn-block {
    width: 100%;
    display: block;
}

.drivers-log-mobile .btn-lg {
    padding: 16px 30px;
    font-size: 18px;
    border-radius: 10px;
    font-weight: 600;
    min-height: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.drivers-log-mobile .btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #3d6820 100%);
    color: white;
}

.drivers-log-mobile .btn-primary:hover, .drivers-log-mobile .btn-primary:active {
    background: linear-gradient(135deg, #1f3810 0%, #2d5016 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.drivers-log-mobile .btn-success {
    background: linear-gradient(135deg, #2d5016 0%, #3d6820 100%);
    color: white;
}

.drivers-log-mobile .btn-success:hover, .drivers-log-mobile .btn-success:active {
    background: linear-gradient(135deg, #1f3810 0%, #2d5016 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.drivers-log-mobile .btn-danger {
    background: linear-gradient(135deg, #8b1a1a 0%, #c0392b 100%);
    color: white;
}

.drivers-log-mobile .btn-danger:hover, .drivers-log-mobile .btn-danger:active {
    background: linear-gradient(135deg, #6a1212 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

.drivers-log-mobile .help-section {
    margin-top: 20px;
}

.drivers-log-mobile .help-section p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}/* Vehicle Screen */


.drivers-log-mobile .vehicle-screen {
    padding-top: 20px;
}/* Begrüßung */


.drivers-log-mobile .user-greeting {
    background: rgba(255, 255, 255, 0.95);
    color: #2d5016;
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drivers-log-mobile .user-greeting .greeting-text {
    font-size: 18px;
    font-weight: 700;
    color: #2d5016;
}

.drivers-log-mobile .btn-logout-inline {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
    line-height: 1;
}

.drivers-log-mobile .btn-logout-inline:hover {
    transform: scale(1.2);
}/* Fahrzeug Header */


.drivers-log-mobile .vehicle-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.drivers-log-mobile .vehicle-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.drivers-log-mobile .vehicle-make-model {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}/* EU-Kennzeichen Style */


.drivers-log-mobile .license-plate-eu {
    display: inline-flex;
    align-items: stretch;
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
    height: 50px;
}

.drivers-log-mobile .license-plate-eu .eu-flag {
    background: #003399;
    color: white;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    min-width: 40px;
}

.drivers-log-mobile .license-plate-eu .plate-number {
    background: white;
    color: #000;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 2px;
    min-width: 180px;
}

.drivers-log-mobile .vehicle-header h2 {
    margin: 0;
    color: #333;
    font-weight: bold;
}

.drivers-log-mobile .vehicle-header .text-muted {
    margin: 5px 0 0 0;
    font-size: 1.1rem;
}

.drivers-log-mobile .card {
    background: white;
    border-radius: 18px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    border-left: 5px solid #d8dfd4;
    transition: all 0.3s ease;
}

.drivers-log-mobile .card-body {
    padding: 20px;
}

.drivers-log-mobile .card h5 {
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 20px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}/* Error & Success Screens */


.drivers-log-mobile .error-screen, .drivers-log-mobile .success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    color: white;
}

.drivers-log-mobile .error-icon, .drivers-log-mobile .success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.drivers-log-mobile .error-screen h2, .drivers-log-mobile .success-screen h2 {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.drivers-log-mobile .error-screen p, .drivers-log-mobile .success-screen p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.drivers-log-mobile .error-screen .btn, .drivers-log-mobile .success-screen .btn {
    background: white;
    color: #2d5016;
    font-weight: bold;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
}/* Alerts */


.drivers-log-mobile .alert {
    border-radius: 10px;
    border: none;
}/* Tabs */


.drivers-log-mobile .nav-tabs {
    border-bottom: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.drivers-log-mobile .nav-tabs .nav-item {
    margin: 0;
}

.drivers-log-mobile .nav-tabs .nav-link {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.82);
    border: none;
    border-radius: 14px;
    margin-right: 0;
    padding: 10px 8px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.drivers-log-mobile .nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.95);
}

.drivers-log-mobile .nav-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #2d5016 0%, #3d6820 100%);
    box-shadow: 0 4px 12px rgba(45,80,22,0.3);
}

.drivers-log-mobile .tab-content {
    margin-top: 0;
}

.drivers-log-mobile .tab-pane {
    display: none;
}

.drivers-log-mobile .tab-pane.show {
    display: block;
}/* Fahrthistorie */


.drivers-log-mobile #trip_history_list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drivers-log-mobile .trip-history-item {
    background: #fff;
    border: 1px solid #e7ece4;
    border-radius: 18px;
    padding: 14px;
    transition: all 0.3s ease;
    cursor: default;
}

.drivers-log-mobile .trip-history-item:hover {
    background: #f8fbf6;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.drivers-log-mobile .trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.drivers-log-mobile .trip-vehicle {
    font-weight: 700;
    color: #2d5016;
    font-size: 16px;
    margin-bottom: 4px;
}

.drivers-log-mobile .trip-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #eef4ea;
    color: #2d5016;
}

.drivers-log-mobile .badge-success {
    background: #e8f7ef;
    color: #1d8348;
}

.drivers-log-mobile .badge-secondary {
    background: #f0f0f0;
    color: #555;
}

.drivers-log-mobile .trip-driver {
    margin-bottom: 5px;
    font-weight: 500;
}

.drivers-log-mobile .trip-route {
    margin-bottom: 5px;
}

.drivers-log-mobile .trip-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.drivers-log-mobile .trip-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6f7f8a;
    padding-top: 8px;
    border-top: 1px solid #e7ece4;
}

.drivers-log-mobile .trip-stats span {
    flex: 1;
    text-align: center;
}

.drivers-log-mobile .trip-stats span:first-child {
    text-align: left;
    font-weight: 600;
    color: #2d5016;
}

.drivers-log-mobile .trip-stats span:last-child {
    text-align: right;
}

.drivers-log-mobile .stations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drivers-log-mobile .station-card {
    border: 1px solid #e7ece4;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.drivers-log-mobile .station-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.drivers-log-mobile .station-price {
    font-weight: 700;
    color: #2d5016;
}

.drivers-log-mobile .station-meta {
    display: flex;
    justify-content: space-between;
    color: #5d6a60;
    font-size: 13px;
    margin-top: 6px;
}

.drivers-log-mobile .station-address {
    color: #6c757d;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.drivers-log-mobile .station-use-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    border-radius: 6px !important;
    background: white !important;
    color: #2d5016 !important;
    border: 1.5px solid #2d5016 !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-height: unset !important;
}

.drivers-log-mobile .station-use-btn:hover, .drivers-log-mobile .station-use-btn:active {
    background: #2d5016 !important;
    color: white !important;
}

.drivers-log-mobile .station-preferred {
    background: #2d5016;
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    margin-left: 6px;
}

.drivers-log-mobile .stations-map-panel {
    border: 1px solid #e7ece4;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.drivers-log-mobile .stations-map-toolbar {
    display: flex;
    justify-content: flex-start;
}

.drivers-log-mobile .stations-map-canvas {
    width: 100%;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d6e2d8;
}

.drivers-log-mobile .station-map-popup-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.drivers-log-mobile .station-map-popup-meta {
    color: #495057;
    font-size: 12px;
    margin-bottom: 8px;
}

.drivers-log-mobile .fuel-receipt-row {
    padding: 6px 0;
    border-bottom: 1px dashed #d8d8d8;
}

.drivers-log-mobile .fuel-receipt-row:last-child {
    border-bottom: 0;
}/* Loading Spinner */


.drivers-log-mobile .spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.drivers-log-mobile .spinner-border {
    width: 3rem;
    height: 3rem;
}/* Responsive */


@media (max-width: 576px) {
    .drivers-log-mobile .mobile-container {
        padding: 15px;
    }
    
    .drivers-log-mobile .login-form {
        padding: 20px;
    }
    
    .drivers-log-mobile .app-title {
        font-size: 2rem;
    }
}/* Touch-friendly inputs */


.drivers-log-mobile input, .drivers-log-mobile select, .drivers-log-mobile textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}/* Prevent zoom on focus for iOS */


@media screen and (max-width: 767px) {
    .drivers-log-mobile input, .drivers-log-mobile select, .drivers-log-mobile textarea {
        font-size: 16px !important;
    }
}/* Buttons - Mobile-optimierte Größen */


.drivers-log-mobile #start_trip_btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 36px;
    width: 100%;
}

.drivers-log-mobile #go_vehicle_selection_btn {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 36px;
    white-space: nowrap;
}

.drivers-log-mobile .btn-leave-private-mode {
    width: auto !important;
    min-width: 240px;
    max-width: 90%;
}/* TreElv Footer Logo *//* ==========================================
   Vehicle Selection Screen
   ========================================== */





.drivers-log-mobile .vehicle-select-screen {
    padding: 8px 0 0;
    min-height: 100vh;
    background: transparent;
}

.drivers-log-mobile .select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.drivers-log-mobile .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d5016;
    margin: 0;
}

.drivers-log-mobile .header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #f3f6f1;
    border: 1px solid #d8dfd4;
    color: #2d5016;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.drivers-log-mobile .header-logout:hover {
    background: #e6efe0;
}

.drivers-log-mobile .btn-logout {
    display: none;
}

.drivers-log-mobile .app-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
}

.drivers-log-mobile .app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.drivers-log-mobile .treelv-footer {
    display: flex;
    align-items: center;
    opacity: 1;
}

.drivers-log-mobile .treelv-footer img {
    width: 96px;
    height: auto;
    display: block;
}

.drivers-log-mobile .user-greeting-select {
    background: rgba(255, 255, 255, 0.95);
    color: #2d5016;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.drivers-log-mobile .vehicle-select-screen .form-check-label {
    color: rgba(255,255,255,0.9);
}

.drivers-log-mobile .search-section {
    margin-bottom: 20px;
}

.drivers-log-mobile #vehicle_search {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8dfd4;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.97);
    color: #2c3e50;
}

.drivers-log-mobile .vehicle-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.drivers-log-mobile .vehicle-card {
    background: #fff;
    border: 1px solid #e7ece4;
    border-left: 5px solid #d8dfd4;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    cursor: pointer;
    transition: all 0.3s;
}

.drivers-log-mobile .vehicle-card:hover {
    border-left-color: #2d5016;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(45,80,22,0.18);
}

.drivers-log-mobile .vehicle-card:active {
    transform: translateY(-1px);
}

.drivers-log-mobile .vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.drivers-log-mobile .vehicle-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d5016;
}

.drivers-log-mobile .vehicle-license-plate-mini {
    background: #f8f9fa;
    border: 2px solid #2d5016;
    border-radius: 5px;
    padding: 4px 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

.drivers-log-mobile .vehicle-card-body {
    color: #666;
}

.drivers-log-mobile .vehicle-model {
    font-size: 16px;
    margin-bottom: 5px;
}

.drivers-log-mobile .vehicle-km {
    font-size: 14px;
    color: #999;
}

.drivers-log-mobile .loading-spinner {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.drivers-log-mobile .loading-spinner .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drivers-log-mobile .no-vehicles {
    text-align: center;
    padding: 40px 20px;
    color: white;
    font-size: 18px;
}

.drivers-log-mobile .error-message {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.drivers-log-mobile .homescreen-hint {
    background: rgba(38, 84, 60, 0.72);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.drivers-log-mobile .private-vehicle-entry {
    background: rgba(38, 84, 60, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 14px;
    margin-bottom: 15px;
}

.drivers-log-mobile .private-vehicle-entry small {
    display: block;
    margin-top: 8px;
    color: #e3f0e6 !important;
}

.drivers-log-mobile .private-trip-notice {
    border-left: 4px solid #2d5016;
}

.drivers-log-mobile .private-reimbursement-details {
    margin-bottom: 14px;
    border: 1px solid #d6e2d8;
    border-radius: 10px;
    background: #f8fbf8;
    padding: 8px 10px;
}

.drivers-log-mobile .private-reimbursement-details > summary {
    cursor: pointer;
    font-weight: 600;
    color: #2d5016;
    outline: none;
}

.drivers-log-mobile .private-reimbursement-content {
    margin-top: 10px;
}

.drivers-log-mobile .hint-content {
    text-align: center;
    color: white;
}

.drivers-log-mobile .hint-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.drivers-log-mobile .hint-content p {
    margin: 10px 0;
    font-size: 16px;
}

.drivers-log-mobile .hint-content small {
    font-size: 14px;
    opacity: 0.9;
}
