/* Qore Regular font-face */
@font-face {
    font-family: 'Qore';
    src: url('font/qore.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc05;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Auth Screen - Sliding Design */
#auth-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Add animated background elements */
#auth-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
    z-index: 2;
    position: relative;
}

.app-logo {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 10px 30px rgba(238, 90, 82, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.app-logo i {
    font-size: 2rem;
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.app-title {
    color: white;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: context-menu;
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    margin-top: -0.2rem;
    opacity: 0.9;
    cursor: context-menu;
}

.app-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    cursor: context-menu;
}

.auth-header h2 {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 2rem;
    margin: 0;
}

.auth-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 
                0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    animation: slideUp 0.8s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    0% { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.auth-form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.auth-form h1 {
    font-weight: bold;
    margin: 0 0 20px 0;
    color: var(--dark-color);
    cursor: context-menu;
}

.auth-form span {
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.auth-form input {
    background-color: #eee;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.auth-form input:focus {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

.auth-btn {
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    margin-top: 20px;
    cursor: pointer;
    outline: none;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.auth-btn:active {
    transform: scale(0.95);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    text-decoration: none;
    color: var(--gray-color);
    transition: var(--transition);
}

.social-container a:hover {
    background-color: var(--light-gray);
    transform: scale(1.1);
}

.forgot-password {
    color: var(--gray-color);
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-color);
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
    font-weight: bold;
    margin: 0;
    color: white;
    cursor: context-menu;
}

.overlay-panel p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    color: white;
    cursor: context-menu;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.ghost {
    border-radius: 20px;
    border: 1px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    outline: none;
}

.ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ghost:active {
    transform: scale(0.95);
}

/* Hide mobile tabs on desktop */
.mobile-auth-tabs {
    display: none;
}

/* Mobile Responsiveness for Auth */
@media (max-width: 768px) {
    #auth-screen {
        padding: 15px;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .auth-container {
        width: 100%;
        max-width: 400px;
        min-height: auto;
        margin: 0 auto;
        border-radius: 15px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
    }
    
    /* Mobile tab-like switching */
    .mobile-auth-tabs {
        display: flex;
        background: var(--primary-color);
        border-radius: 15px 15px 0 0;
    }
    
    .mobile-auth-tab {
        flex: 1;
        padding: 15px;
        background: transparent;
        color: white;
        border: none;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-auth-tab.active {
        background: white;
        color: var(--primary-color);
        border-radius: 10px 10px 0 0;
    }
    
    .mobile-auth-tab:first-child.active {
        border-radius: 15px 10px 0 0;
    }
    
    .mobile-auth-tab:last-child.active {
        border-radius: 10px 15px 0 0;
    }
    
    .form-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
        background: white;
        border-radius: 0 0 15px 15px;
    }
    
    .sign-in-container {
        display: block;
    }
    
    .sign-up-container {
        display: none;
    }
    
    .auth-container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .auth-container.right-panel-active .sign-up-container {
        display: block;
    }
    
    /* Hide desktop overlay on mobile */
    .overlay-container {
        display: none;
    }
    
    .auth-form {
        padding: 30px 25px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .auth-form h1 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        text-align: center;
        color: var(--dark-color);
        cursor: context-menu;
    }
    
    .auth-form input {
        padding: 12px 15px;
        margin: 8px 0;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 1px solid #ddd;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .auth-form input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
        background-color: white;
        transform: translateY(-2px);
    }
    
    .auth-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        margin-top: 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    
    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    }
    
    .auth-btn:active {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #app-title {
        font-family: 'Qore', Arial, sans-serif;
        font-size: 1.1rem !important;
    }
}

/* Extra small devices (phones, 600px and down) */
@media (max-width: 600px) {
    #auth-screen {
        padding: 10px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-container {
        max-width: 95%;
        border-radius: 12px;
    }
    
    .mobile-auth-tab {
        padding: 12px;
        font-size: 13px;
    }
    
    .mobile-auth-tab:first-child.active {
        border-radius: 12px 8px 0 0;
    }
    
    .mobile-auth-tab:last-child.active {
        border-radius: 8px 12px 0 0;
    }
    
    .form-container {
        border-radius: 0 0 12px 12px;
    }
    
    .auth-form {
        padding: 25px 20px;
    }
    
    .auth-form h1 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        cursor: context-menu;
    }
    
    .auth-form input {
        padding: 10px 12px;
        margin: 6px 0;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 14px;
        margin-top: 15px;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

/* Add modern styling for select elements in forms */
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    font-style: italic;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Main App Screen */
.app-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

#app-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: context-menu;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#username-display {
    font-weight: 500;
    cursor: context-menu;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary-color);
}

.app-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.nav-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-btn:hover:not(.active) {
    color: var(--dark-color);
    background-color: var(--light-gray);
}

.app-content {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
}

.content-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.tab-header h2 {
    color: var(--dark-color);
    font-weight: 500;
    text-align: center;
}

/* Position vehicle selector to the right when present */
.tab-header .vehicle-selector {
    position: absolute;
    right: 0;
}

.tab-header .dashboard-controls {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tab-header .dashboard-controls .vehicle-selector {
    position: static;
}

.tab-header .vehicle-selector select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-header .vehicle-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-header .vehicle-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Mobile vehicle selector - hidden by default */
.mobile-vehicle-selector {
    display: none;
    margin-bottom: 1.5rem;
}

.mobile-vehicle-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.mobile-vehicle-selector select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-vehicle-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-vehicle-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-trend {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.stat-trend.up {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--secondary-color);
}

.stat-trend.down {
    background-color: rgba(234, 67, 53, 0.1);
    color: var(--danger-color);
}

.stat-trend.neutral {
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

/* Custom Chart.js tooltip styles */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 6px !important;
    color: white !important;
    font-size: 12px !important;
    font-family: Arial, sans-serif !important;
    padding: 8px 12px !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    max-width: 200px !important;
    word-wrap: break-word !important;
}

.chartjs-tooltip div {
    margin: 2px 0;
}

/* Chart container positioning */
.chart-container {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    height: 300px;
}

/* Recent entries */
.recent-entries {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.recent-entries h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 500;
    color: var(--gray-color);
    text-transform: uppercase;
    font-size: 0.8rem;
}

tr:hover {
    background-color: var(--light-gray);
}

/* Add Entry Form */
.entry-form {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: #d1d7dc;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--light-color);
    font-weight: 500;
    color: var(--dark-color);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Recent entries table specific */
.recent-entries table {
    margin-top: 1rem;
}

.recent-entries h3 {
    margin-bottom: 0;
    color: var(--dark-color);
    font-weight: 500;
}

/* Report table container */
.report-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.report-table-container table {
    min-width: 800px;
}

/* Reports */
/* Reports tab header - center title with proper spacing */
#reports-tab .tab-header h2 {
    text-align: center;
    margin-right: 2rem;
}

/* Service History tab header - center title with proper spacing */
#service-history-tab .tab-header h2 {
    text-align: center;
    margin-right: 2rem;
}

.report-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Custom date range controls styling */
#custom-range-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#custom-range-controls span {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.report-controls select, 
.report-controls input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.report-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-table-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

/* Settings */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.settings-tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.settings-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.password-change {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.password-change h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Center and constrain settings forms */
#profile-settings {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

#profile-form {
    max-width: 500px;
    margin: 0 auto;
}

#profile-form .btn-primary {
    width: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.password-change {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#password-form .btn-primary {
    width: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Keep vehicles settings full width */
#vehicles-settings {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 1200px;
    margin: 0 auto;
}

#add-vehicle-btn {
    display: block;
    width: auto;
    max-width: 200px;
    margin: 0 auto 2rem auto;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.vehicle-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-make-model {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.vehicle-year {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.vehicle-odometer {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.no-vehicles {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.no-vehicles p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.small {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

/* Auth specific loading styles */
.auth-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    /* Prevent button transforms from affecting spinner */
    transform: none !important;
}

.auth-btn.loading:hover {
    transform: none !important;
    background-color: var(--primary-color) !important;
}

.auth-btn.loading:active {
    transform: none !important;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinButton 0.8s linear infinite;
    z-index: 1;
}

/* Button loading state */
.btn-primary.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    transform: none !important;
}

.btn-primary.loading:hover {
    transform: none !important;
    background-color: var(--primary-color) !important;
}

.btn-primary.loading:active {
    transform: none !important;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinButton 0.8s linear infinite;
    z-index: 1;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none; /* Allow clicks to pass through container */
}

.toast {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    animation: slideIn 0.3s ease;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto; /* Allow clicks on toast itself */
    border: 2px solid rgba(255, 255, 255, 0.1); /* Debug border */
}

.toast.success {
    background-color: var(--secondary-color);
}

.toast.error {
    background-color: var(--danger-color);
}

.toast.warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinButton {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .app-nav {
        overflow-x: auto;
    }
    
    .nav-btn {
        min-width: max-content;
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .app-content {
        padding: 1rem;
    }
    
    /* Mobile dashboard header layout */
    .tab-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Mobile header centering for Reports and Service History */
    #reports-tab .tab-header h2,
    #service-history-tab .tab-header h2 {
        text-align: center;
        margin-right: 0;
        width: 100%;
    }
    
    .tab-header .vehicle-selector {
        position: static;
        width: 100%;
        max-width: 300px;
    }
    
    .tab-header .dashboard-controls {
        position: static;
        width: 100%;
        justify-content: center;
    }
    
    .tab-header .dashboard-controls .vehicle-selector {
        display: none; /* Hide vehicle selector on mobile */
    }
    
    .tab-header .vehicle-selector select {
        width: 100%;
        min-width: unset;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Show mobile vehicle selector on mobile */
    .mobile-vehicle-selector {
        display: block;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .report-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-history-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-history-controls select, 
    .service-history-controls input {
        width: 100%;
    }
    
    .service-history-controls .custom-range-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .service-history-controls .custom-range-controls input {
        flex: 1;
        max-width: calc(50% - 15px);
    }
    
    .service-history-controls .custom-range-controls span {
        flex: 0 0 auto;
        margin: 0 0.5rem;
    }
    
    .service-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #service-history-table {
        font-size: 0.8rem;
    }
    
    #service-history-table th,
    #service-history-table td {
        padding: 0.5rem;
    }
    
    .service-details-content {
        padding: 1rem;
        width: 95%;
    }
    
    /* Mobile custom date range controls */
    #custom-range-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    #custom-range-controls input {
        flex: 1;
        max-width: calc(50% - 15px);
    }
    
    #custom-range-controls span {
        flex: 0 0 auto;
        margin: 0 0.5rem;
    }
    
    .report-controls select, 
    .report-controls input {
        width: 100%;
    }
    
    .modal-content {
        margin: 0 1rem;
    }
    
    /* Mobile settings adjustments */
    .settings-tabs {
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }
    
    .settings-content.active {
        max-width: 100%;
        margin: 0;
    }
    
    #profile-settings {
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
    }
    
    #profile-form {
        max-width: 100%;
    }
    
    .password-change {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    #profile-form .btn-primary,
    #password-form .btn-primary {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    #vehicles-settings {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0;
    }
    
    #add-vehicle-btn {
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }
    
    /* Mobile table styles */
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 0.5rem 0.3rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Make date column narrower on mobile */
    table th:first-child,
    table td:first-child {
        width: 85px;
        min-width: 85px;
        padding: 0.5rem 0.2rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* Responsive table container */
    .recent-entries,
    .report-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .recent-entries table,
    .report-table-container table {
        min-width: 600px;
    }
    
    /* Better mobile table text */
    table small {
        font-size: 0.7rem;
        color: var(--gray-color);
    }
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .stat-value {
        font-size: 1.2rem;
        text-align: center;
        display: block;
        word-break: break-word;
    }
    .stat-label {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Table action buttons */
.btn-delete-entry {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-delete-entry:hover {
    background-color: #d93025;
    transform: translateY(-1px);
}

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

.btn-delete-entry i {
    font-size: 0.875rem;
}

/* Table actions column */
table td:last-child {
    text-align: center;
    width: 80px;
}

table th:last-child {
    text-align: center;
    width: 80px;
}

/* Make buttons smaller on mobile */
@media (max-width: 768px) {
    .btn-delete-entry {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-delete-entry i {
        font-size: 0.75rem;
    }
}

/* Checkbox styling for full tank */
input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
    width: auto;
}

/* Ensure checkbox labels are inline */
label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fallback for browsers that don't support :has() */
.form-group label {
    display: block;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#profile-username[readonly] {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    color: #5f6368;
    cursor: not-allowed;
    opacity: 0.7;
    padding-right: 35px; /* Add padding to make room for the icon */
}

#profile-username[readonly]:focus {
    outline: none;
    box-shadow: none;
}

/* Lock icon to indicate readonly status */
.form-group:has(#profile-username[readonly]) {
    position: relative;
}

.form-group:has(#profile-username[readonly])::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 1;
    font-size: 14px;
}

.glow-on-hover {
      transition: all 0.3s ease;
    }
    .glow-on-hover:hover {
      text-shadow: 0 0 5px #a28cf8, 0 0 10px #a28cf8, 0 0 20px #f8a7ff;
      color: #fff;
    }
    @keyframes boxGlowPulse {
      0%, 100% {
        box-shadow: 0 0 20px rgba(123, 93, 244, 0.2), 0 0 30px rgba(211, 114, 255, 0.15);
      }
      50% {
        box-shadow: 0 0 30px rgba(168, 120, 255, 0.4), 0 0 50px rgba(248, 167, 255, 0.25);
      }
    }

    .app-powered {
      margin-top: 20px;
      font-size: 0.9em;
      color: #000000;
      text-align: center;
      cursor: context-menu;
      z-index: 1;
      text-decoration: none;
    }

/* Service Section Styles */
.consumables-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background-color: #fafafa;
}

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

.section-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
}

.consumables-list {
    margin-bottom: 1rem;
}

.consumable-item {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
}

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

.consumable-item .form-group:first-child {
    flex: 2; /* Item name gets more space */
}

/* Error state for consumable inputs */
.consumable-item input.error {
    border: 2px solid var(--danger-color);
    background-color: #ffeaea;
    animation: shake 0.3s ease-in-out;
}

.consumable-item input.error:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.2);
    outline: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.remove-consumable-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-consumable-btn:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

.total-parts-cost {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.total-parts-cost input {
    background-color: #f0f8ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.no-consumables {
    text-align: center;
    color: var(--gray-color);
    font-style: italic;
    padding: 2rem 1rem;
    border: 2px dashed var(--light-gray);
    border-radius: 6px;
    background-color: white;
}

/* Responsive design for consumable items */
@media (max-width: 768px) {
    .consumable-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .consumable-item .form-group {
        flex: none;
        width: 100%;
    }
    
    .remove-consumable-btn {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* Service history table buttons on mobile */
    .btn-view-service,
    .btn-delete-service {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .btn-view-service {
        margin-right: 0.125rem;
    }
}

/* Enhanced button styles for service section */
#add-consumable-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#add-consumable-btn:hover {
    background: #2e8b42;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 168, 83, 0.3);
}

#add-consumable-btn i {
    font-size: 0.8rem;
}

/* Service History Styles */
.service-history-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.service-history-controls select, 
.service-history-controls input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.service-history-controls .custom-range-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-history-controls .custom-range-controls span {
    font-weight: 500;
    color: var(--gray-color);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.service-history-controls .custom-range-controls.hidden {
    display: none;
}

.service-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-history-container {
    max-width: 100%;
}

.service-history-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

#service-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#service-history-table th,
#service-history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#service-history-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

#service-history-table tr:hover {
    background-color: #f8f9fa;
}

#service-history-table td:last-child {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

/* Service history table responsive styling for bill number column */
#service-history-table th:nth-child(4), 
#service-history-table td:nth-child(4) {
    min-width: 100px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    /* Hide bill number column on very small screens if needed */
    #service-history-table th:nth-child(4), 
    #service-history-table td:nth-child(4) {
        min-width: 80px;
        max-width: 100px;
        font-size: 0.8rem;
    }
}

.btn-view-service,
.btn-delete-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    vertical-align: middle;
}

.btn-view-service {
    background: var(--primary-color);
    color: white;
    margin-right: 0.25rem;
}

.btn-view-service:hover {
    background: var(--primary-dark);
}

.btn-delete-service {
    background: var(--danger-color);
    color: white;
}

.btn-delete-service:hover {
    background: #d32f2f;
}

/* Service Details Modal */
.service-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.service-details-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.service-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.service-details-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.service-details-close:hover {
    color: var(--dark-color);
}

.service-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.service-detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.service-detail-value {
    color: var(--gray-color);
}

.service-consumables-list {
    margin-top: 1rem;
}

.service-consumables-list h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.service-consumable-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
}

.btn-small i {
    font-size: 0.9rem;
}

.filter-status {
    background-color: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
}