/* Bootstrap CSS Variable Overrides */
:root {
    --bs-modal-color: #1B132D !important;
    --bs-heading-color: #1B132D !important;
}

/* Layout Styles */
.main-content {
    min-height: 100vh;
}

.expiring-soon {
    color: #dc3545;
}

.expired {
    color: #6c757d;
}

/* Vehicle Storage Progress Bar Styles */
.vehicle-storage-progress {
    height: 8px;
}

.vehicle-storage-progress .progress-bar {
    transition: width 0.3s ease;
}

/* Form and Display Utilities */
.delete-form-inline {
    display: inline;
}

.form-inline {
    display: inline;
}

.hidden {
    display: none;
}

.bulk-actions-hidden {
    display: none;
}

/* OCR Text Display */
.ocr-text-container {
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.ocr-text-pre {
    white-space: pre-wrap;
    margin: 0;
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

/* Shared Document Styling */
.document-icon-large {
    font-size: 3rem;
    color: #6c757d;
}

/* Text Transforms */
.text-uppercase-input {
    text-transform: uppercase;
}

/* Document Management Component Styles */
.document-management .table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.document-checkbox {
    transform: scale(1.2);
}

#bulk-actions {
    position: sticky;
    top: 0;
    z-index: 10;
}

.badge {
    font-size: 0.75em;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.4rem;
}

/* Email Template Styles */
.email-body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.email-header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.email-content {
    background-color: #f8f9fa;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-top: none;
}

.document-info {
    background-color: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.document-list {
    background-color: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.document-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.email-footer {
    background-color: #6c757d;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0 0 5px 5px;
    border: 1px solid #dee2e6;
    border-top: none;
}

.email-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0;
}

.email-button:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.share-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: bold;
}

.share-button:hover {
    background-color: #1e7e34;
    color: white;
    text-decoration: none;
}

.expiry-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.email-footer-small {
    background-color: #6c757d;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-radius: 0 0 5px 5px;
}

.document-name {
    font-weight: bold;
    color: #007bff;
}

.document-details {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.stats {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

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

/* Dashboard Styles - Based on dashboard.png design */
.dashboard-container {
    background: linear-gradient(135deg, #1B132D 0%, #403952 100%);
    min-height: 100vh;
    color: white;
    padding: 40px;
}

/* Dashboard Layout Styles */
.dashboard-sidebar-container {
    width: 320px;
    flex-shrink: 0;
}

.dashboard-logo {
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
    background: transparent;
}

.logo-img {
    max-width: 240px;
    height: auto;
}

.dashboard-content-container {
    flex: 1;
    min-width: 0;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(78, 205, 196, 0.9);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.burger-menu:hover {
    background: rgba(78, 205, 196, 1);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1001;
}

.mobile-sidebar .dashboard-sidebar {
    height: 100vh;
    border-radius: 0;
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #4ECDC4 0%, #44A08D 100%);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    margin-bottom: 24px;
}

.sidebar-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
    padding: 1rem;
}

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

.dashboard-nav-item {
    margin-bottom: 10px;
}

.dashboard-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.dashboard-nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-section-title {
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 15px;
    margin-bottom: 8px;
}

.storage-usage {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.storage-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.storage-text {
    color: rgba(255, 255, 255, 0.8);
}

.storage-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.storage-fill {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.dashboard-main {
    padding: 0;
    background: transparent;
    max-width: 1600px;
    margin: 0 auto;
}

/* Dashboard Specific Styles - Updated to match exact design */

/* Top Header Bar */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    margin: 0px 30px 30px;
}

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

.app-logo {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px;
}

.app-logo i {
    font-size: 24px;
    color: #4ECDC4;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 20px;
}

.user-plan {
    color: #8c8799;
    font-size: 20px;
    font-weight: 400;
}

.stats-item {
    color: #B8C5D1;
    font-size: 14px;
}

/* Header Stats Styles */
.header-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 0;
    border-right: 1px solid #D2D1D5;
    line-height: 1;
    padding-right: 16px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    font-size: 16px;
    color: #69B69D;
    margin-right: 5px;

}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 1;
    line-height: 1;
    color: #69B69D;
}

.header-right {
    display: flex;
    align-items: center;
}

.logout-button {
    background: white;
    color: #2C3E50;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #F8F9FA;
    color: #2C3E50;
    text-decoration: none;
}

/* Action Buttons Row */
.action-buttons-row {
    display: flex;
    gap: 15px;
    padding: 0 30px;
    margin-bottom: 30px;

    &.wide {
        display: flex;
        gap: 15px;
        margin: 0 30px;
        margin-bottom: 30px;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.1);
        align-items: center;
        border-radius: 8px;
        padding: 0;

        .action-pill-btn {
            background: none;
        }
    }
}

.action-pill-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex: 0 0 33.33%;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.action-pill-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.action-pill-btn i {
    font-size: 14px;
    color: #44A08D;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0; /* Prevent overflow */

    &.no-bg {
        background: none;
        border: none;
        border-radius: 0;
    }
}

.content-section-full {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.section-helper-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 6px 0 0;
    font-size: 14px;
}

.action-pill-secondary {
    background: rgba(255, 255, 255, 0.04);
}

.action-pill-form {
    display: flex;
    margin: 0;
}

.action-pill-form .action-pill-btn {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.action-pill-form .action-pill-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.metric-value {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.metric-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.metric-card-success {
    background: rgba(68, 160, 141, 0.2);
    border-color: rgba(68, 160, 141, 0.35);
}

.metric-card-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.35);
}

.metric-card-neutral {
    background: rgba(142, 121, 255, 0.2);
    border-color: rgba(142, 121, 255, 0.35);
}

.metric-card-muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pill-draft {
    background: rgba(142, 121, 255, 0.25);
    color: #ece9ff;
}

.status-pill-active {
    background: rgba(68, 160, 141, 0.3);
    color: #d7f4ec;
}

.status-pill-suspended {
    background: rgba(255, 193, 7, 0.25);
    color: #fff3cd;
}

.status-pill-ended {
    background: rgba(220, 53, 69, 0.25);
    color: #f8d7da;
}

.glass-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.glass-table .table {
    margin-bottom: 0;
    color: white;
    background: transparent;
}

.glass-table thead th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.glass-table tbody {
    background: transparent;
}

.glass-table tbody tr {
    color: rgba(255, 255, 255, 0.9);
}

.glass-table tbody td {
    border-color: rgba(255, 255, 255, 0.08);
}

.glass-table tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.glass-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.glass-list-title {
    color: white;
    font-weight: 600;
}

.glass-list-value {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.glass-tag {
    background: rgba(78, 205, 196, 0.25);
    color: #c8fff3;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table>:not(caption)>*>* {
    background-color: transparent !important;
    color: #fff;
}

.link-cta {
    color: #4ECDC4;
    font-weight: 600;
    text-decoration: none;
}

.link-cta:hover {
    color: #a29bfe;
}

.table-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.table-link:hover {
    color: #4ecdc4;
}

.table-subtext {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.empty-state {
    color: rgba(255, 255, 255, 0.6);
}

.table-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    color: white;
    font-size: 16px;
}

.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.status-callout {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 15px;
}

.status-callout-success {
    background: rgba(68, 160, 141, 0.25);
    border-color: rgba(68, 160, 141, 0.4);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label,
.form-field label {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.filter-control,
.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    color: white;
}

.filter-control::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.filter-control:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(68, 160, 141, 0.6);
    box-shadow: 0 0 0 3px rgba(68, 160, 141, 0.3);
}

.field-hint,
.form-field .form-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
}

.filter-submit {
    background: rgba(68, 160, 141, 0.25);
    border: 1px solid rgba(68, 160, 141, 0.45);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-submit:hover {
    background: rgba(68, 160, 141, 0.35);
}

.glass-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.glass-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.glass-button-primary {
    background: rgba(68, 160, 141, 0.3);
    border-color: rgba(68, 160, 141, 0.45);
}

.glass-button-primary:hover {
    background: rgba(68, 160, 141, 0.4);
}

.glass-button-neutral {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-button-neutral:hover {
    background: rgba(255, 255, 255, 0.15);
}

.revision-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.revision-entry {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
}

.revision-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.revision-author {
    font-weight: 600;
    color: white;
}

.revision-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.revision-diff {
    background: rgba(4, 10, 22, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.table-link:focus,
.glass-button:focus,
.filter-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 121, 255, 0.35);
}

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

    .metric-grid,
    .metric-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .action-buttons-row {
        flex-direction: column;
        padding: 0;
    }

    .action-pill-btn {
        width: 100%;
    }

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

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Vehicle Cards */
.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.vehicle-card-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.vehicle-card-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.vehicle-card-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.vehicle-card-icon i {
    font-size: 32px;
    color: #4ECDC4;
}

.car-svg-icon {
    width: 42px;
    height: 42px;
    padding: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    border: 2px solid #C33C7D;
}

.vehicle-registration {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 0px;
    letter-spacing: 1px;
}

.vehicle-info {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Large Vehicle Cards for /vehicles page */
.vehicles-grid-large {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card-large {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-card-large:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.vehicle-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.vehicle-icon {
    flex-shrink: 0;
}

.vehicle-info {
    flex: 1;
}

.vehicle-counter {
    color: #B8C5D1;
    font-size: 14px;
    padding-right: 30px;
}

.upgrade-link {
    color: #4ECDC4;
    text-decoration: none;
}

.upgrade-link:hover {
    color: #45B7AA;
}

.vehicle-storage-section {
    margin-bottom: 20px;
}

.storage-info-large {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.vehicle-storage-bar-large {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.vehicle-storage-fill-large {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    min-width: 2px;
}

.vehicle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-manage-btn-large {
    background: #4ECDC4;
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 12px 8px -6px rgba(0, 0, 0, .015), 0 8px 6px -5px rgba(0, 0, 0, .03);
    font-size: 15px;
}

.vehicle-manage-btn-large:hover {
    background: #45B7AA;
    color: white;
    text-decoration: none;
}

.vehicle-action-icons {
    display: flex;
    gap: 8px;
}

.vehicle-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vehicle-action-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Vehicle Storage Progress */
.vehicle-storage {
    padding: 10px 0;
}

.storage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    display:none;
}

.storage-text {
    color: #B8C5D1;
    font-weight: 500;
}

.storage-percentage {
    color: #4ECDC4;
    font-weight: 600;
}

.vehicle-storage-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.vehicle-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #45B7AA);
    border-radius: 3px;
    transition: width 0.8s ease;
    min-width: 2px;
}

.vehicle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.vehicle-manage-btn {
    background: #4ECDC4;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 10px auto 0;
    box-shadow: 0 12px 8px -6px rgba(0, 0, 0, .015), 0 8px 6px -5px rgba(0, 0, 0, .03);
    
}

.vehicle-manage-btn:hover {
    background: #45B7AA;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Document Rows */
.documents-grid {
    margin-bottom: 20px;
}

.document-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 15px;
}

.document-row:last-child {
    border-bottom: none;
}

.doc-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-insurance {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.doc-service {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.doc-mot {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.doc-tax {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.doc-details {
    flex: 1;
}

.doc-type {
    color: white;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 3px;
}

.doc-vehicle {
    color: #B8C5D1;
    font-size: 12px;
}

.doc-date, .doc-size {
    color: #B8C5D1;
    font-size: 12px;
    min-width: 70px;
}

.doc-actions {
    display: flex;
    gap: 5px;
}

.doc-action-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #B8C5D1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.doc-action-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Manage All Links */
.manage-all-vehicles,
.manage-all-documents {
    text-align: center;
    margin-top: 15px;
}

.manage-all-link {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.manage-all-link:hover {
    color: #45B7AA;
    text-decoration: none;
}

.manage-all-link i {
    font-size: 12px;
}

/* Empty States */
.empty-vehicles,
.empty-documents {
    text-align: center;
    padding: 40px 20px;
}

.empty-vehicles p,
.empty-documents p {
    color: #B8C5D1;
    margin-bottom: 15px;
}

/* Global Page Content Styles */
.page-content {
    padding: 0 30px;
}

.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.content-section .form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
}

.content-section .form-control,
.content-section .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
}

.content-section .form-control:focus,
.content-section .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4ECDC4;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25);
}

.content-section .form-control:disabled,
.content-section .form-select:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #B8C5D1;
}

.content-section .form-control::placeholder {
    color: #B8C5D1;
}

.content-section .form-select option {
    color: #1B132D;
}

.content-section .input-group-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 12px 15px;
}

.content-section .input-group > .form-control:not(:first-child),
.content-section .input-group > .form-select:not(:first-child) {
    border-left: none;
}


.content-section .form-text {
    color: #B8C5D1;
    font-size: 12px;
}

.content-section .invalid-feedback {
    color: #e74c3c;
}

.content-section .alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1750px) {
    .content-grid {
        grid-template-columns: 100%;
        gap: 20px;
    }
}

@media (max-width: 1300px) {
    .dashboard-sidebar-container {
        display: none;
    }
    
    .dashboard-logo {
        display: none;
    }
    
    .app-logo {
        display: flex; /* Show header logo when main logo is hidden */
    }
    
    .burger-menu {
        display: block;
    }
    
    .mobile-sidebar-overlay.show {
        display: block;
    }
    
    .dashboard-content-container {
        width: 100%;
    }
    
    .vehicles-grid-large {
        grid-template-columns: 100%;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 0 15px;
    }
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.section-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-link {
    color: #4ECDC4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-link:hover {
    color: #44A08D;
}

.vehicle-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.vehicle-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.vehicle-icon i {
    color: #4ECDC4;
    font-size: 1.5rem;
}

.vehicle-reg {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vehicle-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Vehicle Show Page Styles */
.vehicle-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vehicle-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    color: #B8C5D1;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.dvla-info-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dvla-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.dvla-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvla-label {
    color: #B8C5D1;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dvla-value {
    color: #4ECDC4;
    font-size: 13px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.status-danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
}

.no-dvla-data {
    text-align: center;
    padding: 20px;
}

.no-dvla-data .text-muted {
    color: #B8C5D1 !important;
    margin-bottom: 16px;
}

.manage-vehicle-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.manage-vehicle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    color: white;
}

.documents-list {
    max-height: 400px;
    overflow-y: auto;
}

.document-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.document-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.document-type-insurance { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.document-type-service { background: linear-gradient(135deg, #f39c12, #d68910); }
.document-type-mot { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.document-type-tax { background: linear-gradient(135deg, #3498db, #2980b9); }
.document-type-registration { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.document-type-license { background: linear-gradient(135deg, #34495e, #2c3e50); }

.document-info {
    flex: 1;
}

.document-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.document-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
}

.document-vehicle {
    color: #4ECDC4;
    font-weight: 500;
}

.document-date, .document-size {
    color: rgba(255, 255, 255, 0.5);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.doc-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.doc-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.manage-all-link {
    text-align: center;
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-state-text {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vehicle-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.form-label {
    color:  #1B132D;
    font-weight: 500;
    font-size: 14px;
}

/* Document Management Styles */
.document-management {
    width: 100%;
}

.bulk-actions-bar {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(68, 160, 141, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
}

.selected-info {
    color: #4ECDC4;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.bulk-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.documents-section {
    /* background: linear-gradient(135deg, rgba(27, 19, 45, 0.95) 0%, rgba(44, 83, 100, 0.95) 100%); */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
    /* background: linear-gradient(135deg, rgba(27, 19, 45, 0.95) 0%, rgba(44, 83, 100, 0.95) 100%); */
}

.documents-title h5 {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.documents-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.select-all-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-control label {
    color: #B8C5D1;
    font-size: 14px;
    margin: 0;
}

.documents-content {
    padding: 0;
    /* background: linear-gradient(135deg, rgba(27, 19, 45, 0.95) 0%, rgba(44, 83, 100, 0.95) 100%); */
}

.documents-table-wrapper {
    overflow-x: auto;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.documents-table thead th {
    background: rgba(255, 255, 255, 0.05);
    color: #B8C5D1;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.documents-table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    vertical-align: middle;
}

.documents-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.custom-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #4ECDC4;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background: #4ECDC4;
    border-color: #4ECDC4;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Action buttons within the document management */
.document-management .action-pill-btn {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.document-management .action-pill-btn i {
    color: white !important;
    font-size: 12px;
}

.document-management .action-pill-btn.primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.document-management .action-pill-btn.primary:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-1px);
}

.document-management .action-pill-btn.danger {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
}

.document-management .action-pill-btn.danger:hover {
    background: linear-gradient(135deg, #EE5A24 0%, #FF6B6B 100%);
    transform: translateY(-1px);
}

.document-management .action-pill-btn.secondary {
    background: linear-gradient(135deg, #6C757D 0%, #495057 100%);
}

.document-management .action-pill-btn.secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #6C757D 100%);
    transform: translateY(-1px);
}

/* Responsive design for document management */
@media (max-width: 768px) {
    .documents-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .documents-controls {
        justify-content: space-between;
    }
    
    .bulk-actions-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .bulk-action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .selected-info {
        text-align: center;
    }
    
    .documents-table thead {
        display: none;
    }
    
    .documents-table tbody td {
        display: block;
        padding: 8px 16px;
        border: none;
    }
    
    .documents-table tbody td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #B8C5D1;
        display: inline-block;
        width: 100px;
    }
    
    .documents-table tbody tr {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.02);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bulk-action-buttons {
        flex-wrap: nowrap;
    }
    
    .document-management .action-pill-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Subscription Page Styles */
.subscription-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.subscription-plan-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-badge-container {
    margin-bottom: 8px;
}

.plan-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.plan-free {
    background: linear-gradient(135deg, #6C757D 0%, #495057 100%);
    color: white;
}

.plan-premium {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.plan-family {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
}

.subscription-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-active {
    color: #4ECDC4 !important;
}

.subscription-features-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
}

.feature-item i {
    color: #4ECDC4;
    width: 16px;
    text-align: center;
}

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

.plan-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%);
}

.plan-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

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

.plan-name {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.plan-popular-badge {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    color: #1B132D;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-pricing {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price {
    color: #4ECDC4;
    font-size: 32px;
    font-weight: 700;
}

.plan-period {
    color: #B8C5D1;
    font-size: 16px;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 24px;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: white;
    font-size: 14px;
}

.plan-feature-item i {
    color: #4ECDC4;
    width: 16px;
    text-align: center;
}

.plan-upgrade-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-btn-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.plan-btn-primary:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-2px);
}

.subscription-info {
    margin-bottom: 32px;
}

.current-plan-text {
    color: white;
    font-size: 16px;
    margin: 0;
}

.change-plan-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subsection-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.danger-title {
    color: #FF6B6B;
}

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

.plan-change-form {
    margin: 0;
}

.plan-change-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.plan-change-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ECDC4;
    transform: translateY(-1px);
}

.plan-change-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.plan-change-name {
    font-weight: 600;
    font-size: 14px;
}

.plan-change-price {
    color: #4ECDC4;
    font-size: 12px;
    font-weight: 500;
}

.cancel-subscription-section {
    text-align: center;
}

.cancel-warning {
    color: #B8C5D1;
    font-size: 14px;
    margin-bottom: 16px;
}

.cancel-form {
    margin: 0;
}

.cancel-subscription-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-subscription-btn:hover {
    background: linear-gradient(135deg, #EE5A24 0%, #FF6B6B 100%);
    transform: translateY(-2px);
}

/* Responsive design for subscription page */
@media (max-width: 768px) {
    .subscription-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-change-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Page Styles */
.profile-actions {
    display: flex;
    align-items: center;
}

.profile-icon {
    color: #4ECDC4;
    font-size: 18px;
}

.profile-form {
    margin-top: 24px;
}

.profile-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.password-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    max-width: 500px;
}

.profile-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field-group.full-width {
    grid-column: 1 / -1;
}

.profile-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-label i {
    color: #4ECDC4;
    width: 16px;
    text-align: center;
}

.profile-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.profile-input.disabled {
    background: rgba(255, 255, 255, 0.03);
    color: #B8C5D1;
    cursor: not-allowed;
}

.profile-input::placeholder {
    color: #B8C5D1;
    opacity: 0.7;
}

.profile-input.is-invalid {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.profile-textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.profile-textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.profile-textarea::placeholder {
    color: #B8C5D1;
    opacity: 0.7;
}

.profile-textarea.is-invalid {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.profile-help-text {
    color: #B8C5D1;
    font-size: 12px;
    margin-top: 4px;
}

.profile-error {
    color: #FF6B6B;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-error::before {
    content: '⚠';
    font-size: 10px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 32px;
}

.profile-save-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-save-btn:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.3);
}

.password-change-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-change-btn:hover {
    background: linear-gradient(135deg, #EE5A24 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

/* Profile Page Responsive Design */
@media (max-width: 768px) {
    .profile-fields-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-form-actions {
        justify-content: center;
    }
    
    .profile-save-btn,
    .password-change-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Vehicle Edit Page Styles */
.vehicle-edit-actions {
    display: flex;
    align-items: center;
}

.vehicle-edit-form {
    margin-top: 24px;
}

.vehicle-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.vehicle-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vehicle-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.vehicle-label i {
    color: #4ECDC4;
    width: 16px;
    text-align: center;
}

.vehicle-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vehicle-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.vehicle-input::placeholder {
    color: #B8C5D1;
    opacity: 0.7;
}

.vehicle-input.is-invalid {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.vehicle-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vehicle-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.vehicle-select option {
    background: #1B132D;
    color: white;
}

.vehicle-select.is-invalid {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.vehicle-help-text {
    color: #B8C5D1;
    font-size: 12px;
    margin-top: 4px;
}

.vehicle-error {
    color: #FF6B6B;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vehicle-error::before {
    content: '⚠';
    font-size: 10px;
}

/* DVLA Information Section in Edit */
.dvla-info-section {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.dvla-section-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dvla-section-title::before {
    content: '🚗';
    font-size: 18px;
}

.dvla-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dvla-display-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvla-display-label {
    color: #B8C5D1;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dvla-display-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.dvla-display-value.status-valid,
.dvla-display-value.status-taxed {
    color: #4ECDC4;
}

.dvla-display-value.status-expired,
.dvla-display-value.status-untaxed {
    color: #FF6B6B;
}

.dvla-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dvla-refresh-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dvla-refresh-btn:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-1px);
}

.dvla-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dvla-status {
    font-size: 12px;
}

.status-info {
    color: #4ECDC4;
}

.status-success {
    color: #4ECDC4;
}

.status-error {
    color: #FF6B6B;
}

/* Vehicle Form Actions */
.vehicle-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-actions {
    display: flex;
    gap: 12px;
}

.danger-actions {
    display: flex;
}

.vehicle-save-btn {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-save-btn:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.3);
}

.vehicle-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.vehicle-delete-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-delete-btn:hover {
    background: linear-gradient(135deg, #EE5A24 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

/* Delete Modal Styles */
.deletion-warning {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.warning-icon {
    color: #FFC107;
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.danger-text {
    color: #FF6B6B;
    margin-top: 8px;
    margin-bottom: 0;
}

.modal-delete-form {
    margin: 0;
}

.modal-cancel-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.modal-delete-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-delete-btn:hover {
    background: linear-gradient(135deg, #EE5A24 0%, #FF6B6B 100%);
}

.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

.modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.modal-body {
    max-height: 70vh !important;
    overflow-y: auto !important;
}

/* Ensure modals appear above everything */
#uploadDocumentModal {
    z-index: 10000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#uploadDocumentModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#uploadDocumentModal .modal-dialog {
    position: relative !important;
    margin: 0 auto !important;
    max-width: 800px !important;
    width: 90% !important;
    z-index: 10001 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

#uploadDocumentModal .modal-content {
    position: relative !important;
    z-index: 10002 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: white !important;
    pointer-events: auto !important; /* Ensure modal content is clickable */
}

#uploadDocumentModal .modal-backdrop,
.modal-backdrop {
    z-index: 9998 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none !important; /* Allow clicks to pass through to modal content */
}

.modal-backdrop.show {
    opacity: 0.5 !important;
    pointer-events: none !important; /* Ensure backdrop doesn't block clicks */
}

/* Fix container overflow issues */
.document-management {
    position: relative !important;
    overflow: visible !important;
}

.documents-section {
    overflow: visible !important;
}

/* Body styling when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Prevent scrollbar jump */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Metadata fields styling */
.metadata-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: #f8f9fa;
}

.metadata-group h6 {
    margin-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

/* Responsive modal for smaller screens */
@media (max-width: 768px) {
    #uploadDocumentModal .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    #uploadDocumentModal .modal-content {
        max-height: 90vh !important;
        border-radius: 8px !important;
        margin: 10px 0 !important;
    }
}

/* Ensure modal body has proper scrolling */
#uploadDocumentModal .modal-body {
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

/* Ensure modal header and footer are visible */
#uploadDocumentModal .modal-header,
#uploadDocumentModal .modal-footer {
    flex-shrink: 0 !important;
    border: none !important;
}

/* Vehicle Edit Responsive Design */
@media (max-width: 768px) {
    .vehicle-fields-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vehicle-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .primary-actions {
        order: 2;
        justify-content: center;
    }
    
    .danger-actions {
        order: 1;
        justify-content: center;
    }
    
    .vehicle-save-btn,
    .vehicle-cancel-btn,
    .vehicle-delete-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dvla-display-grid {
        grid-template-columns: 1fr;
    }
    
    .deletion-warning {
        flex-direction: column;
        text-align: center;
    }
}