:root {
    /* Color Palette - Dark & Premium */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.6);
    /* Slate 800 with opacity */
    --card-border: rgba(255, 255, 255, 0.1);

    --primary: #6366f1;
    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    /* Pink 500 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --input-bg: rgba(15, 23, 42, 0.6);

    /* Spacing */
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    padding-bottom: calc(70px + var(--safe-area-bottom));
    /* Space for bottom nav */
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Background Gradients for Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: 100px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: -1;
}

.app-container {
    padding: 20px;
    max-width: 600px;
    /* Limit width on desktop */
    margin: 0 auto;
}

/* Skeleton / Shimmer */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    color: transparent !important;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0));
    animation: skeletonShimmer 1.15s infinite;
}

.skeleton-inline {
    display: inline-block;
    width: 110px;
    height: 1.1em;
    vertical-align: middle;
    border-radius: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 8px;
}

.skeleton-circle {
    border-radius: 999px;
}

@keyframes skeletonShimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* Typography */
h2 {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 15px;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.user-welcome span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-avatar {
    text-decoration: none;
}

.header-avatar-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-avatar-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

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

/* Garage Section */
.garage-section {
    margin-bottom: 30px;
}

.garage-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.garage-list::-webkit-scrollbar {
    display: none;
}

.empty-state-small {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    min-width: 140px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.vehicle-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    min-width: 220px;
    height: 90px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.vehicle-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    overflow: hidden;
}

.vehicle-icon.vehicle-icon-img {
    background: transparent;
    padding: 0;
}

.vehicle-icon.vehicle-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Vehicle Image Picker */
.vehicle-image-picker {
    width: 100%;
    height: 140px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image-picker:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.vehicle-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.vehicle-image-placeholder i {
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.6;
}

.vehicle-image-picker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.vehicle-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 2;
    transition: transform 0.2s;
    backdrop-filter: blur(4px);
}

.vehicle-image-remove:hover {
    transform: scale(1.1);
}

.vehicle-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.vehicle-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.add-vehicle-btn {
    min-width: 60px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Summary Card */
.summary-section {
    margin-bottom: 25px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-info .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.card-info .amount {
    font-size: clamp(1.35rem, 6vw, 2rem);
    font-weight: 700;
    letter-spacing: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Period Navigation Arrows */
.period-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.period-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.period-arrow:active {
    transform: scale(0.9);
}

.summary-card .card-info {
    flex: 1;
    text-align: center;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.action-grid::-webkit-scrollbar {
    display: none;
}

.action-btn {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    color: var(--text-muted);
}

.action-btn .icon-box {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.action-btn .icon-box.add {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.action-btn:active .icon-box {
    transform: scale(0.9);
}

.action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.action-btn {
    text-decoration: none;
}

/* Quick action icon box category colors */
.action-btn .icon-box.fuel {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.action-btn .icon-box.otopark {
    color: #14b8a6;
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(20, 184, 166, 0.1);
}

.action-btn .icon-box.hgs {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.action-btn .icon-box.bakim {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

/* Recent Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.text-btn {
    background: transparent;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.trans-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Category colors */
.trans-icon.mtv {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trans-icon.fuel {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.trans-icon.ceza {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.trans-icon.kaza {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
}

.trans-icon.bakim {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.trans-icon.tamir {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.1);
}

.trans-icon.otopark {
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.1);
}

.trans-icon.kasko {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.trans-icon.sigorta {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trans-icon.other {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.trans-info h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.trans-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vehicle-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.trans-amount {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.transaction-item.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.transaction-item.clickable:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.transaction-item.clickable:active {
    transform: scale(0.98);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed var(--card-border);
}

.bottom-spacer {
    height: 30px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 30, 50, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    display: flex;
    padding: 15px 0 calc(15px + var(--safe-area-bottom));
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    transition: all 0.2s;
    flex: 1;
}

.nav-fab-placeholder {
    flex: 1;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item.active {
    color: var(--primary);
}

.fab-main {
    position: fixed;
    bottom: calc(85px + var(--safe-area-bottom));
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    font-size: 1.5rem;
    z-index: 90;
    display: grid;
    place-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.fab-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.fab-main:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    /* Slide from bottom */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: #1e293b;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 25px;
    padding-bottom: calc(25px + var(--safe-area-bottom));
    border-top: 1px solid var(--card-border);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.close-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 5px;
}

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

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-lg {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 700;
    padding: 10px 0;
    font-family: 'Outfit', sans-serif;
}

.input-lg:focus {
    outline: none;
    border-color: var(--primary);
}

.input-std {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}

.input-std:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Select styling */
select.input-std {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
}

/* Category Selector */
.category-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.radio-card input {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 15px 5px;
    cursor: pointer;
    transition: all 0.2s;
    height: 80px;
}

.radio-content i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.radio-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.radio-card input:checked+.radio-content {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.radio-card input:checked+.radio-content i,
.radio-card input:checked+.radio-content span {
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.submit-btn:active {
    transform: scale(0.98);
}

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

/* Centered Form Modal (Override) */
.modal.center-form {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.center-form .modal-content {
    border-radius: 25px;
    width: 95%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

.modal.center-form .modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal.center-form .modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal.center-form .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.modal.center-form.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Center Modal (Warning) */
.center-modal {
    align-items: center;
    /* Center vertically */
    justify-content: center;
}

.center-modal .modal-content-center {
    background: #1e293b;
    width: 90%;
    max-width: 400px;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid var(--card-border);
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.center-modal.active .modal-content-center {
    transform: scale(1);
    opacity: 1;
}

.modal-icon.warning {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.modal-content-center h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal-content-center p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

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

.modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-confirm {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary);
    display: block;
    margin-bottom: 15px;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 15px;
    min-height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-footer a:hover {
    opacity: 0.8;
}

.btn-loader {
    display: inline;
}

/* Logout Button */
.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

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

/* Profile Page */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    color: var(--text-main);
    font-size: 1.2rem;
    text-decoration: none;
}

.profile-avatar {
    text-align: center;
    padding: 30px 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.9rem;
    color: white;
    pointer-events: none;
}

.avatar-circle:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar h3 {
    color: var(--text-main);
    margin-bottom: 5px;
}

.profile-avatar p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.profile-section h4 {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h4 i {
    color: var(--primary);
}

.profile-form .form-group {
    margin-bottom: 12px;
}

.profile-form label {
    font-size: 0.8rem;
}

.submit-btn-sm {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    margin-top: 5px;
    transition: all 0.2s;
}

.submit-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.submit-btn-sm:active {
    transform: scale(0.98);
}

.form-message {
    margin-top: 10px;
    font-size: 0.85rem;
    min-height: 20px;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

/* Vehicles Page */
.full-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 80px;
}

.full-vehicle-list .vehicle-card {
    min-width: 0;
    /* Override caruosel styling */
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.full-vehicle-list .vehicle-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
}

.full-vehicle-list .vehicle-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.full-vehicle-list .vehicle-info p {
    font-size: 0.9rem;
}

.vehicle-expense {
    margin-left: auto;
    text-align: right;
}

.vehicle-expense .expense-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Reports Page */
.period-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 4px;
}

.period-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.period-tab:hover {
    color: var(--text-main);
}

.period-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.report-filter {
    margin-bottom: 20px;
}

.report-summary {
    margin-bottom: 25px;
}

.summary-card-small {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-card-small .card-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.summary-card-small .card-info .amount {
    font-size: 1.5rem;
}

.chart-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.chart-container {
    max-width: 280px;
    margin: 0 auto;
}

.breakdown-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.breakdown-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cat-name {
    color: var(--text-main);
    font-weight: 500;
}

.cat-right {
    text-align: right;
}

.cat-amount {
    display: block;
    font-weight: 600;
    color: var(--text-main);
}

.cat-percent {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* HGS category icon color */
.trans-icon.hgs {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* HGS Tabs */
.hgs-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hgs-tab {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hgs-tab.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--text-main);
}

.hint-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

/* Clickable Vehicle Cards */
.vehicle-card.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-card.clickable:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

/* Vehicle Expense Modal */
.vehicle-detail-header {
    text-align: center;
    padding: 15px 0 25px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 20px;
}

.vehicle-detail-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.vehicle-detail-header h2 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-expense-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-expense-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s;
}

.category-expense-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-info i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.category-info span {
    font-weight: 500;
}

.category-amount {
    text-align: right;
}

.category-amount .amount {
    display: block;
    font-weight: 600;
    color: var(--text-main);
}

.category-amount .percentage {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Fuel Type Checkboxes */
.fuel-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fuel-type-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fuel-type-checkbox input[type="checkbox"] {
    display: none;
}

.fuel-type-checkbox span {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.fuel-type-checkbox input:checked+span {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--text-main);
}

.fuel-type-checkbox span i {
    font-size: 1rem;
    color: var(--text-muted);
}

.fuel-type-checkbox input:checked+span i {
    color: var(--primary);
}

/* Collapsible / Accordion Sections in Forms */
.collapsible-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0;
}

.collapsible-toggle:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.collapsible-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapsible-toggle .toggle-left i:first-child {
    font-size: 1rem;
}

.collapsible-toggle .toggle-arrow {
    transition: transform 0.2s;
    font-size: 0.8rem;
}

.collapsible-toggle.open {
    border-color: var(--primary);
    color: var(--text-main);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.collapsible-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.collapsible-body {
    display: none;
    border: 1px solid var(--card-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    animation: collapseFadeIn 0.2s ease;
}

.collapsible-body.open {
    display: block;
}

@keyframes collapseFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.collapsible-body .form-group:last-child {
    margin-bottom: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

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

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

@keyframes toastSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast.warning .toast-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.toast.info .toast-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-main);
}

/* Period Comparison Badge */
.period-comparison {
    text-align: center;
    margin-bottom: 20px;
    margin-top: -10px;
}

.period-comparison span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.period-comparison span.increase {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.period-comparison span.decrease {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.period-comparison span.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Dashboard Reminders Alert */
.reminders-alert {
    margin-bottom: 25px;
}

.reminders-alert h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-main);
}

.reminder-alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.reminder-alert-item:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.reminder-alert-item.expired {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.reminder-alert-item.warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.reminder-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.reminder-alert-item.expired .reminder-alert-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.reminder-alert-item.warning .reminder-alert-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.reminder-alert-item:not(.expired):not(.warning) .reminder-alert-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.reminder-alert-info {
    flex: 1;
}

.reminder-alert-info .ra-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.reminder-alert-info .ra-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.reminder-alert-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.reminder-alert-item.expired .reminder-alert-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.reminder-alert-item.warning .reminder-alert-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.reminder-alert-item:not(.expired):not(.warning) .reminder-alert-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Export Button */
.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.export-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.export-btn i {
    color: var(--primary);
}
