/* StripeSelect Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Styles */
.company-logo {
    max-height: 80px;
    max-width: 200px;
    height: auto;
    margin-right: 20px;
}

.company-logo-small {
    max-height: 50px;
    max-width: 150px;
    height: auto;
    margin-right: 15px;
}

.header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.header-text {
    text-align: center;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-title-section h1 {
    margin: 0 0 5px 0;
}

.current-time-display {
    font-size: 13px;
    color: #1e7e34;
    font-weight: 500;
    background: #e7f5e7;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #1e7e34;
}

.current-time-display strong {
    color: #155724;
}

.current-time-display small {
    color: #6c757d;
    font-size: 11px;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.test-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.test-header-text {
    text-align: center;
}

/* Headers */
h1, h2, h3, h4 {
    color: #2c3e50;
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.header-with-logo h1,
.qr-header h1,
.test-header h1 {
    text-align: center;
    margin-bottom: 0.3em;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #1e7e34; /* Reiseshop Hauptgrün */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Buttons - Corporate Green Theme */
.btn, button, input[type="submit"] {
    background-color: #1e7e34; /* Reiseshop Hauptgrün */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 126, 52, 0.2);
}

.btn:hover, button:hover, input[type="submit"]:hover {
    background-color: #155724; /* Reiseshop Dunkelgrün */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 126, 52, 0.3);
}

.btn-small {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.logout-btn {
    background-color: #6c757d;
    color: white;
    font-size: 12px;
    padding: 8px 15px;
}

.logout-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Forms */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    max-height: 60px;
    margin-bottom: 20px;
}

.login-form {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"], 
input[type="password"], 
input[type="url"], 
input[type="email"], 
input[type="time"], 
input[type="date"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 5px rgba(30, 126, 52, 0.3);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.select-all-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #e7f5e7;
    border-radius: 6px;
    border-left: 4px solid #1e7e34; /* Reiseshop Hauptgrün */
}

.select-all-label {
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}

.select-all-label strong {
    color: #1e7e34; /* Reiseshop Hauptgrün */
}

.select-all-label:hover {
    color: #1e7e34; /* Reiseshop Hauptgrün */
}

/* Admin Interface */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.admin-header h1 {
    margin: 0;
    text-align: left;
}

.admin-section {
    margin-bottom: 40px;
}

/* Link Cards */
.link-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #1e7e34;
}

.link-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.link-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-title-section h3 {
    margin: 0;
    color: #2c3e50;
}

.link-actions {
    display: flex;
    gap: 10px;
}

.link-edit-section {
    margin-top: 15px;
}

.link-edit-form {
    background: #f8f9fa;
    border: 2px solid #17a2b8;
    border-radius: 6px;
    padding: 20px;
}

.edit-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.edit-form-group {
    flex: 1;
    margin-bottom: 15px;
}

.edit-form-row .edit-form-group {
    margin-bottom: 0;
}

.edit-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.edit-form-group input,
.edit-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.edit-form-group input:focus,
.edit-form-group textarea:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
}

.edit-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.edit-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.link-info {
    margin-bottom: 20px;
}

.link-info p {
    margin: 8px 0;
}

.link-info code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

.field-help {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.current-redirect {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.redirect-preview {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 8px;
    border-left: 4px solid #1e7e34; /* Reiseshop Hauptgrün */
}

.redirect-preview.vehicle-redirect {
    background: #f0f8ff;
    border-left: 4px solid #17a2b8;
    margin-top: 10px;
}

.url-type-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 13px;
    display: block;
}

.redirect-preview code {
    background: transparent;
    color: #1e7e34; /* Reiseshop Hauptgrün */
    font-weight: 600;
    font-size: 13px;
}

.vehicle-redirect code {
    color: #17a2b8;
}

.redirect-reason {
    color: #6c757d;
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

.fallback-explanation {
    color: #6c757d;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

.link-timestamps {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.link-timestamps p {
    margin: 0;
}

.link-timestamps small {
    color: #6c757d;
    font-size: 11px;
}

/* Rules */
.rules-section {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.rules-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.rules-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.rules-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.rules-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rule-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 15px;
}

/* Messages */
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Landing page */
.admin-link {
    text-align: center;
    margin: 30px 0;
}

.admin-link a {
    background: #1e7e34; /* Reiseshop Hauptgrün */
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(30, 126, 52, 0.2);
}

.admin-link a:hover {
    background: #155724; /* Reiseshop Dunkelgrün */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 126, 52, 0.3);
}

.info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info ol {
    padding-left: 20px;
}

.info li {
    margin-bottom: 8px;
}

.branding-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #1e7e34; /* Reiseshop Hauptgrün */
}

.branding-footer p {
    margin: 8px 0;
}

.branding-footer small {
    color: #6c757d;
    font-style: italic;
}

/* QR Code Styles */
.format-controls, .size-controls {
    margin: 20px 0;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.format-controls a, .size-controls a {
    display: inline-block;
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.format-controls a:hover, .size-controls a:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.format-controls a.active, .size-controls a.active {
    background: #1e7e34; /* Reiseshop Hauptgrün */
    color: white;
    box-shadow: 0 2px 5px rgba(30, 126, 52, 0.3);
}

.format-controls a.active:hover, .size-controls a.active:hover {
    background: #155724; /* Reiseshop Dunkelgrün */
}

.download-controls {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #28a745;
}

.download-controls h4 {
    color: #28a745;
    margin-bottom: 15px;
    text-align: center;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #1e7e34; /* Reiseshop Hauptgrün */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 126, 52, 0.2);
}

.download-btn:hover {
    background: #155724; /* Reiseshop Dunkelgrün */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 126, 52, 0.3);
}

.download-section {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 6px;
}

.download-section:nth-child(1) {
    background: #e8f5e8;
    border: 1px solid #d4edda;
}

.download-section:nth-child(2) {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.download-section h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.pure-download {
    background: #20c997 !important; /* Reiseshop Hellgrün für Pur-Downloads */
    color: white !important;
    border: 2px solid #20c997;
}

.pure-download:hover {
    background: #1abc9c !important; /* Reiseshop Hellgrün Hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(32, 201, 151, 0.3);
}

.standard-download {
    background: #6c757d !important;
    border: 2px solid #6c757d;
}

.standard-download:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

#qr-svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-svg-container svg {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.qr-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.qr-footer-info {
    font-size: 12px;
    color: #6c757d;
}

.qr-footer-info p {
    margin: 5px 0;
}

.time-input-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.current-time-info {
    background: #e7f5e7;
    color: #1e7e34;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #1e7e34;
    text-align: center;
}

.time-check-info {
    margin-top: 8px;
    text-align: center;
}

.time-check-info small {
    color: #6c757d;
    font-size: 11px;
}

.current-time-banner {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(30, 126, 52, 0.2);
}

.time-display {
    font-size: 16px;
    font-weight: 600;
}

.current-time-hint {
    margin-top: 5px;
    font-size: 12px;
    color: #1e7e34;
    font-weight: 500;
}

/* Collapsible sections */
.collapsible-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    user-select: none;
}

.collapsible-header:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding: 10px 15px;
    border-radius: 4px;
}

.collapse-indicator {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.override-count {
    background: #6f42c1;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.collapsible-content {
    padding-top: 15px;
}

/* Editable time rules */
.editable-rule {
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
    margin: -10px;
    border-radius: 4px;
}

.editable-rule:hover {
    background: #f8f9fa;
}

.edit-hint {
    display: block;
    color: #6c757d;
    font-size: 10px;
    margin-top: 5px;
}

.inline-edit-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #1e7e34;
}

.edit-section {
    margin-bottom: 10px;
}

.edit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.edit-row input[type="time"] {
    width: auto;
    min-width: 100px;
}

.days-selection-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.checkbox-label-compact {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label-compact input {
    margin-right: 4px;
}

.select-all-inline {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    color: #1e7e34;
    font-weight: 600;
}

.select-all-inline input {
    margin-right: 4px;
}

.separator {
    color: #6c757d;
    font-weight: bold;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .days-selection-compact {
        gap: 8px;
    }
    
    .checkbox-label-compact,
    .select-all-inline {
        font-size: 12px;
    }
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.edit-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Overlap Warning Panel */
.overlap-warning-panel {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.overlap-warning-panel h3 {
    color: #856404;
    margin-top: 0;
}

.attempted-rule,
.conflicts,
.solutions {
    margin: 15px 0;
}

.rule-preview {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #1e7e34;
    margin-top: 5px;
}

.conflict-item {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 8px 0;
    color: #721c24;
}

.solution-item {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    color: #0c5460;
    position: relative;
}

.apply-solution-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 10px;
}

.apply-solution-btn:hover {
    background: #138496;
}

.override-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
    border: 1px solid #ffc107 !important;
}

.btn-warning:hover {
    background: #e0a800 !important;
    border-color: #d39e00 !important;
}

/* Solution applied success message */
.solution-applied {
    border-left: 4px solid #1e7e34;
    background: #d4edda;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.2);
}

/* Vehicle Selection System Styles */
.vehicle-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-status-badge.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vehicle-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ensure rules status badges look consistent */
.rules-status-badge.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rules-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vehicle-settings-panel {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.vehicle-settings-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #1e7e34;
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.vehicle-enable-label {
    background: #e7f5e7;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #1e7e34;
    display: block !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-enable-label:hover {
    background: #d4edda;
}

.vehicle-enable-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.vehicle-enable-label small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.vehicle-types-selection {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Vehicle types selection in disabled mode */
.vehicle-form-wrapper.vehicle-disabled-mode .vehicle-types-selection {
    opacity: 0.7;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.vehicle-types-selection h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.vehicle-type-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vehicle-type-label {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vehicle-type-label:hover {
    background: #e9ecef;
    border-color: #1e7e34;
}

.vehicle-type-label input[type="checkbox"]:checked + .vehicle-type-icon {
    animation: bounce 0.3s ease;
}

.vehicle-type-label input[type="checkbox"]:checked {
    accent-color: #1e7e34;
}

.vehicle-type-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.vehicle-management-section {
    background: white;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.quick-actions {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.copy-rules-btn {
    background: #17a2b8 !important;
    color: white !important;
    margin-bottom: 10px;
}

.copy-rules-btn:hover {
    background: #138496 !important;
}

.help-text {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.vehicle-urls-section h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 16px;
}

.vehicle-url-config {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.vehicle-url-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.vehicle-url-header .vehicle-type-icon {
    font-size: 1.1em;
}

.url-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-input-group input[type="url"] {
    flex: 1;
    margin-bottom: 0;
}

.url-input-group .btn {
    flex-shrink: 0;
    padding: 10px 15px;
}

.vehicle-url-form input[type="url"]:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 5px rgba(30, 126, 52, 0.3);
}

/* Responsive Vehicle Selection */
@media (max-width: 768px) {
    .vehicle-type-checkboxes {
        flex-direction: column;
        gap: 10px;
    }
    
    .vehicle-type-label {
        justify-content: flex-start;
        width: 100%;
    }
    
    .url-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .url-input-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vehicle-settings-panel,
    .vehicle-settings-form,
    .vehicle-management-section {
        padding: 15px;
    }
    
    .vehicle-enable-label {
        padding: 12px;
    }
    
    .vehicle-type-label {
        padding: 10px 12px;
    }
}

/* Vehicle Form Wrapper */
.vehicle-form-wrapper {
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* Vehicle form in disabled mode (when Zeitregel active, not Vehicle Selection) */
.vehicle-form-wrapper.vehicle-disabled-mode {
    opacity: 0.7;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.vehicle-form-wrapper.vehicle-disabled-mode::before {
    content: "⏰ ZEITREGEL-MODUS: Fahrzeug-Einstellungen sind ausgegraut aber editierbar";
    display: block;
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ffeaa7;
}

.vehicle-form-wrapper.vehicle-disabled-mode:hover {
    opacity: 0.9;
}

.vehicle-form-wrapper.vehicle-disabled-mode:focus-within {
    opacity: 1;
    border-color: #80bdff;
    background-color: #ffffff;
}

/* Compact Vehicle Settings Styles */
.compact-vehicle-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 0;
}

.compact-vehicle-form h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 16px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.copy-rules-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
}

.section-header-simple {
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.section-header-simple h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.section-header-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.section-header-with-button h5 {
    margin: 0;
    border: none;
    padding: 0;
    color: #2c3e50;
    font-size: 16px;
}

/* Copy Rules Button Inline Styles */
.copy-rules-inline {
    margin: 0;
}

.copy-rules-btn-inline {
    background: #6c757d !important;
    color: white !important;
    border: 1px solid #6c757d !important;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

.copy-rules-btn-inline:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
}

.copy-rules-btn {
    background: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
    transition: all 0.3s ease;
}

.copy-rules-btn:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-1px);
}

/* Time Rules Status Styles */
.rules-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-status-badge.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rules-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Disabled Time Rules Styles */
.rules-section.rules-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.rules-section.rules-disabled .collapsible-header {
    pointer-events: auto;
    cursor: pointer;
}

.collapsible-content.vehicle-disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    padding: 15px;
}

.collapsible-content.vehicle-disabled::before {
    content: "⚠️ Diese Zeitregeln sind inaktiv, da das Vehicle Selection System aktiviert ist.";
    display: block;
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ffeaa7;
}

.rules-disabled .editable-rule {
    cursor: not-allowed;
}

.rules-disabled .btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Auto-Description Field Styles */
.auto-description-field {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    cursor: default !important;
    font-style: italic;
    font-weight: 500;
}

.auto-description-field:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

.form-group label[for*="rule_description"] {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
}

.edit-section label {
    display: block;
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
}

/* Simple Time Rules Styles */
.simple-time-rules-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.simple-time-rules-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simple-time-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.time-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.time-icon {
    font-size: 18px;
    margin-right: 5px;
}

.time-inputs-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.time-inputs-inline input[type="time"] {
    width: 80px;
    min-width: 75px;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.time-inputs-inline span {
    color: #6c757d;
    font-weight: 500;
}

.url-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-input-row label {
    min-width: 40px;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.url-input-row input[type="url"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.url-input-row input[type="url"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-actions-simple {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.simple-time-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #0056b3;
}

/* Responsive Design for Simple Time Rules */
@media (max-width: 768px) {
    .simple-time-rules-container {
        gap: 15px;
    }
    
    .time-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .time-inputs-inline {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .time-inputs-inline input[type="time"] {
        width: 70px;
        min-width: 65px;
    }
    
    .url-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .url-input-row label {
        min-width: auto;
    }
    
    .url-input-row input[type="url"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .simple-time-section {
        padding: 12px;
    }
    
    .time-inputs-inline input[type="time"] {
        width: 65px;
        min-width: 60px;
        font-size: 12px;
    }
}

/* Toast Notification System */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #28a745;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 300px;
    max-width: 400px;
}

.toast.toast-success {
    border-left-color: #28a745;
}

.toast.toast-error {
    border-left-color: #dc3545;
}

.toast.toast-warning {
    border-left-color: #ffc107;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #666;
    background: #f5f5f5;
}

.toast-progress {
    height: 3px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: currentColor;
    width: 100%;
    transform: translateX(-100%);
    animation: toast-progress 10s linear forwards;
}

.toast-success .toast-progress-bar {
    background: #28a745;
}

.toast-error .toast-progress-bar {
    background: #dc3545;
}

.toast-warning .toast-progress-bar {
    background: #ffc107;
}

@keyframes toast-progress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0%);
    }
}

/* Mobile responsive toasts */
@media (max-width: 768px) {
    #toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 5px;
        right: 5px;
        left: 5px;
    }
    
    .toast-content {
        padding: 10px 12px;
    }
    
    .toast-message {
        font-size: 12px;
    }
    
    .toast-close {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }
}

/* Modal Overlay System for Time Rule Issues */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #666;
    background: #e9ecef;
}

.modal-body {
    padding: 24px;
}

.issues-section {
    margin-bottom: 24px;
}

.issues-section h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issue-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
}

.issue-item.issue-overlap {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.issue-item.issue-gap {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.issue-icon {
    margin-right: 12px;
    font-size: 16px;
}

.issue-message {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.solutions-section h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

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

.solution-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 14px;
}

.solution-btn:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.solution-icon {
    margin-right: 10px;
    font-size: 16px;
}

.solution-text {
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Analysis button removed - analysis now happens automatically */

/* QR Code Dropdown Styling */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #6f42c1 !important;
    color: white !important;
    border: 1px solid #6f42c1 !important;
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle:hover {
    background: #5a32a3 !important;
    border-color: #5a32a3 !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* Ensure dropdown is above other elements */
.link-actions {
    position: relative;
    z-index: 10;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 160px;
        right: 0;
        left: auto;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dropdown-wrapper {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
        min-width: auto;
    }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-btn {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .issue-item {
        padding: 10px 12px;
    }
    
    .solution-btn {
        padding: 12px;
    }
    
    .solution-text {
        font-size: 13px;
    }
}

/* Auto-Save Status Styling */
.save-status {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.save-status.saving {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.save-status.saved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pricing Tiers Styling */
.pricing-tiers-container {
    width: 100%;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin: 20px 0;
    box-sizing: border-box;
}

.vehicle-pricing-section {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}

.vehicle-pricing-section h6 {
    margin: 0 0 15px 0;
    color: #1e7e34;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

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

.pricing-option {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pricing-option:hover {
    border-color: #1e7e34;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.1);
}

.pricing-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.pricing-option input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 5px;
    font-family: monospace;
}

.pricing-option input[type="url"]:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 0 2px rgba(30, 126, 52, 0.1);
}

.pricing-option small {
    color: #6c757d;
    font-size: 11px;
    font-style: italic;
}

.form-actions-pricing {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

/* Simplified Time Settings Styling */
.simplified-time-settings {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 20px 0;
}

.time-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-setting-row label {
    min-width: 220px;
    font-weight: 600;
    color: #2c3e50;
}

.time-setting-row input[type="time"] {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.time-setting-row span {
    color: #6c757d;
    font-weight: 500;
}

.time-setting-row small {
    color: #6c757d;
    font-style: italic;
    flex-basis: 100%;
    margin-left: 230px;
}

@media (max-width: 768px) {
    .time-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .time-setting-row small {
        margin-left: 0;
    }
}

/* Auto-save visual feedback */
.auto-saving {
    opacity: 0.7;
    pointer-events: none;
}

.auto-saving::after {
    content: "💾";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Enhanced form styling for auto-save */
.auto-save-form input:focus,
.auto-save-form select:focus,
.auto-save-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Auto-save info styling - removed since static messages are no longer shown */

/* Mobile responsive auto-save status */
@media (max-width: 768px) {
    .save-status {
        font-size: 11px;
        padding: 3px 6px;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .save-status {
        display: block;
        margin: 4px 0 0 0;
        text-align: center;
    }
    
    .auto-saving::after {
        right: 8px;
        font-size: 12px;
    }
}

/* Inline QR URLs in Active URL Section */
.qr-url-inline {
    margin-top: 8px;
    padding: 6px 0;
    border-top: 1px dashed #e9ecef;
    background: rgba(111, 66, 193, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
}

.qr-url-inline .qr-url-label {
    font-weight: 500;
    color: #6f42c1;
    margin-right: 8px;
    font-size: 12px;
}

.qr-url-inline .qr-url-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.3;
    display: inline-block;
}

.qr-url-inline .qr-url-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Integration with existing redirect-preview */
.redirect-preview .qr-url-inline {
    background: rgba(111, 66, 193, 0.08);
    margin: 8px -4px 0 -4px;
    padding: 8px 8px;
}

.redirect-preview.vehicle-redirect .qr-url-inline {
    background: rgba(111, 66, 193, 0.12);
}

/* Mobile responsive inline QR URLs */
@media (max-width: 768px) {
    .qr-url-inline {
        padding: 6px 8px;
        margin: 6px -2px 0 -2px;
    }
    
    .qr-url-inline .qr-url-label {
        display: block;
        margin-bottom: 4px;
        margin-right: 0;
    }
    
    .qr-url-inline .qr-url-link {
        font-size: 11px;
        display: block;
    }
}

@media (max-width: 480px) {
    .qr-url-inline {
        padding: 4px 6px;
        margin: 4px 0 0 0;
    }
    
    .qr-url-inline .qr-url-link {
        font-size: 10px;
    }
}

.vehicle-compact-section {
    margin-bottom: 25px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

.vehicle-header-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vehicle-icon-large {
    font-size: 24px;
    min-width: 30px;
}

.vehicle-header-compact strong {
    color: #2c3e50;
    font-size: 16px;
    min-width: 120px;
}

.time-inputs-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-inputs-inline label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.time-inputs-inline input[type="time"] {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    width: 85px;
    min-width: 85px;
}

.time-inputs-inline span {
    color: #6c757d;
    font-size: 12px;
}

.vehicle-url-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.url-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-input-row label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    min-width: 90px;
    margin: 0;
}

.url-input-row input[type="url"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.url-input-row input[type="url"]:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 4px rgba(30, 126, 52, 0.25);
}

.form-actions-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.btn-primary {
    background: #1e7e34;
    color: white;
    border: 1px solid #1e7e34;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #155724;
    border-color: #155724;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
}

/* Responsive Compact Vehicle Settings */
@media (max-width: 768px) {
    .copy-rules-section {
        padding: 12px;
    }
    
    .section-header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vehicle-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .time-inputs-inline {
        width: 100%;
        justify-content: flex-start;
    }
    
    .time-inputs-inline input[type="time"] {
        width: 80px;
        min-width: 80px;
    }
    
    .url-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .url-input-row label {
        min-width: auto;
    }
    
    .url-input-row input[type="url"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .compact-vehicle-form {
        padding: 15px;
    }
    
    .vehicle-compact-section {
        padding: 12px;
    }
    
    .time-inputs-inline {
        gap: 5px;
    }
    
    .time-inputs-inline input[type="time"] {
        width: 75px;
        min-width: 75px;
        font-size: 11px;
    }
    
    .time-inputs-inline label {
        font-size: 11px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .link-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .link-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .admin-title-section {
        text-align: center;
    }
    
    .current-time-display {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .header-with-logo,
    .qr-header,
    .test-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-logo,
    .company-logo-small {
        margin-right: 0;
        margin-bottom: 15px;
        max-height: 60px;
    }
    
    .header-text,
    .test-header-text {
        margin-top: 10px;
    }
    
    .edit-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .edit-form-row .edit-form-group {
        margin-bottom: 15px;
    }
    
    .link-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .link-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .admin-form, .link-card {
        padding: 20px;
    }
    
    .login-form {
        padding: 25px;
        margin: 30px auto;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    /* Mobile responsive for inline copy button */
    .section-header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .copy-rules-btn-inline {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ============================================
   DISABLED VEHICLE TYPES STYLING
   ============================================ */

/* NOTE: .vehicle-redirect.disabled styles removed since disabled vehicle types 
   are no longer rendered in the "Aktuell aktive URL" section - they are completely hidden.
   Only the vehicle settings form (.vehicle-compact-section.disabled) styles are still needed. */

/* Ensure enabled vehicle sections have normal styling */
.vehicle-compact-section {
    opacity: 1;
    background-color: transparent;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

/* Disabled vehicle types in form sections */
.vehicle-compact-section.disabled {
    opacity: 1;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    position: relative;
}

.vehicle-compact-section.disabled::before {
    content: "❌ DEAKTIVIERT";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

.vehicle-compact-section.disabled .vehicle-header-compact {
    color: #6c757d;
}

.vehicle-compact-section.disabled .vehicle-icon-large {
    filter: grayscale(100%);
    opacity: 0.5;
}

.vehicle-compact-section.disabled input {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.vehicle-compact-section.disabled input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: white;
    color: #495057;
}

.vehicle-compact-section.disabled label {
    color: #6c757d;
    font-weight: normal;
}

/* Ensure inputs remain functional when disabled section is hovered/focused */
.vehicle-compact-section.disabled:hover {
    opacity: 1;
    border-color: #adb5bd;
}

.vehicle-compact-section.disabled:focus-within {
    opacity: 1;
    border-color: #80bdff;
    background-color: #ffffff;
}

/* Add subtle animation for disabled state */
.vehicle-compact-section.disabled {
    transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* .vehicle-redirect.disabled styles removed - disabled vehicle types are now completely hidden */

/* Mobile responsive for disabled states */
@media (max-width: 768px) {
    .vehicle-compact-section.disabled::before {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 1px 6px;
    }
    
    /* .vehicle-redirect.disabled styles removed - disabled vehicle types are now completely hidden */
}

/* ============================================
   TOGGLE SWITCH STYLING
   ============================================ */

/* Mode Toggle Switch Container */
.mode-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mode-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-right: 15px;
}

/* Mode Toggle Switch (großer Switch für Fahrzeug vs. Zeit) */
.mode-toggle-switch {
    position: relative;
    display: inline-block;
    width: 340px;
    height: 50px;
    background: #ffffff;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-toggle-switch:hover {
    border-color: #adb5bd;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Toggle Options */
.toggle-option {
    position: absolute;
    top: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 23px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.toggle-option.left {
    left: 2px;
    color: #6c757d;
}

.toggle-option.right {
    right: 2px;
    color: #6c757d;
}

/* Active state for options */
.mode-toggle-switch.vehicle-mode .toggle-option.left {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mode-toggle-switch.time-mode .toggle-option.right {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Toggle Slider */
.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 23px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Vehicle Selection Mode (left) */
.mode-toggle-switch.vehicle-mode .toggle-slider {
    left: 2px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Time Rules Mode (right) */
.mode-toggle-switch.time-mode .toggle-slider {
    left: calc(50% + 2px);
    background: linear-gradient(135deg, #fd7e14 0%, #dc6102 100%);
    box-shadow: 0 2px 10px rgba(253, 126, 20, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Toggle Icons */
.toggle-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Mode Labels */
.mode-info {
    margin-left: 15px;
    text-align: center;
}

.mode-active {
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    margin: 0;
}

.mode-description {
    font-size: 11px;
    color: #6c757d;
    margin: 2px 0 0 0;
}

/* Hidden checkbox for form submission */
.mode-toggle-switch input[type="checkbox"] {
    display: none;
}

/* Auto-collapsed sections styling */
.rules-section.auto-collapsed {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.rules-section.auto-collapsed .collapsible-header {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.rules-section.auto-collapsed:hover {
    opacity: 1;
}

/* Mobile responsive for toggle switch */
@media (max-width: 768px) {
    .mode-toggle-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .mode-toggle-switch {
        width: 300px;
        height: 45px;
    }
    
    .toggle-option {
        font-size: 12px;
    }
    
    .toggle-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .mode-info {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .mode-toggle-switch {
        width: 260px;
        height: 40px;
    }
    
    .toggle-option {
        font-size: 11px;
    }
    
    .toggle-icon {
        font-size: 13px;
    }
}

/* Password Change Modal & Button Styles */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.password-btn:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.password-btn:active {
    transform: translateY(0);
}

/* Modal Form Styles */
.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.modal-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-form .form-group input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-form .form-group input:invalid {
    border-color: #dc3545;
}

.modal-form .form-group input:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength.weak {
    background: linear-gradient(to right, #dc3545 30%, #e9ecef 30%);
}

.password-strength.medium {
    background: linear-gradient(to right, #ffc107 60%, #e9ecef 60%);
}

.password-strength.strong {
    background: linear-gradient(to right, #28a745 100%, #e9ecef 100%);
}

/* Responsive adjustments for header actions */
@media (max-width: 768px) {
    .admin-header-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .password-btn,
    .logout-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Event Time Slots Styling */
.event-time-slots {
    margin: 20px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.time-slot {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f1f3f4;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
}

.slot-content {
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

/* Slot Toggle Switch (kleiner Switch für Event-Zeitfenster) */
.slot-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.slot-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Event Edit/Delete Buttons */
.event-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.event-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.event-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

/* File Preview Styles */
.file-preview {
    margin-top: 10px;
}

.file-preview .preview-content {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-in;
}

.file-preview img {
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-preview .preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview .preview-filename {
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    display: block;
    margin-bottom: 4px;
}

.file-preview .preview-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.file-preview .preview-remove:hover {
    background: #c82333;
}

/* File upload loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive file preview */
@media (max-width: 768px) {
    .file-preview .preview-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .file-preview img {
        max-width: 80px !important;
        max-height: 80px !important;
    }
}