/* CSS Variables for Theme Colors */
:root {
    /* Light Theme Colors */
    --primary-color: #5865f2;
    --primary-dark: #4752c4;
    --primary-light: #7983f5;
    --secondary-color: #99aab5;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2c2f33;
    --text-secondary: #72767d;
    --text-muted: #99aab5;
    --border-color: #e3e5e8;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --success-color: #43b581;
    --warning-color: #faa61a;
    --danger-color: #f04747;
    --info-color: #00b0f4;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #5865f2;
    --primary-dark: #4752c4;
    --primary-light: #7983f5;
    --secondary-color: #4f545c;
    --background-color: #36393f;
    --surface-color: #2f3136;
    --card-background: #40444b;
    --text-primary: #dcddde;
    --text-secondary: #b9bbbe;
    --text-muted: #72767d;
    --border-color: #4f545c;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --success-color: #43b581;
    --warning-color: #faa61a;
    --danger-color: #f04747;
    --info-color: #00b0f4;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title i {
    font-size: 1.8rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-clear {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--danger-color);
    color: white;
}

/* Add Section */
.add-section {
    text-align: center;
    margin-bottom: 2rem;
}

.add-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-heavy);
}

.add-btn:active {
    transform: translateY(0);
}

/* Destinations Section */
.destinations-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Destination Card */
.destination-card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(250, 166, 26, 0.1);
    color: var(--warning-color);
}

.status-completed {
    background: rgba(67, 181, 129, 0.1);
    color: var(--success-color);
}

.card-info {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item i {
    width: 16px;
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: rgba(0, 176, 244, 0.1);
    color: var(--info-color);
}

.btn-edit:hover {
    background: var(--info-color);
    color: white;
}

.btn-delete {
    background: rgba(240, 71, 71, 0.1);
    color: var(--danger-color);
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
}

.btn-location {
    background: rgba(67, 181, 129, 0.1);
    color: var(--success-color);
}

.btn-location:hover {
    background: var(--success-color);
    color: white;
}

.btn-toggle-status {
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

.btn-toggle-status:hover {
    background: var(--primary-color);
    color: white;
}

/* No Destinations */
.no-destinations {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-destinations i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.no-destinations p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-background);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow-heavy);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

/* Form Styles */
.destination-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Location Group */
.location-group {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    background: var(--surface-color);
}

.location-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-btn {
    background: linear-gradient(135deg, var(--success-color), #3ba55c);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
}

.location-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-cancel,
.btn-save {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-cancel {
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Confirm Modal */
.confirm-modal {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.confirm-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.confirm-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confirm-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .location-input-group {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .search-input {
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .destination-card {
        padding: 1rem;
    }
    
    .card-actions {
        flex-wrap: wrap;
    }
    
    .add-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}


/* Header Actions */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.action-btn.active {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Status Bar */
.status-bar {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.indicator.active {
    color: var(--success-color);
}

.indicator.error {
    color: var(--danger-color);
}

/* Map Container */
.map-container {
    background: var(--card-background);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.map-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.close-map {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-map:hover {
    background: var(--danger-color);
    color: white;
}

.map-wrapper {
    position: relative;
    height: 400px;
}

.map {
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-btn {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.map-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Travel Mode Section */
.travel-mode-section {
    background: var(--card-background);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.travel-mode-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    text-align: center;
}

.travel-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.travel-mode-btn {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.travel-mode-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.travel-mode-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.travel-mode-btn i {
    font-size: 1.5rem;
}

/* ETA Display */
.eta-display {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.eta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.eta-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.eta-time {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.eta-distance {
    font-size: 1rem;
    opacity: 0.8;
}

.eta-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.progress-bar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(white 0deg, rgba(255, 255, 255, 0.2) 0deg);
    transition: all 0.3s ease;
}

.progress-text {
    position: absolute;
    font-weight: 700;
    font-size: 1rem;
}

/* Notification Styles */
.notification-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-heavy);
    z-index: 3000;
    max-width: 350px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-popup.show {
    transform: translateX(0);
}

.notification-popup.arrival {
    border-left: 4px solid var(--success-color);
}

.notification-popup.warning {
    border-left: 4px solid var(--warning-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--danger-color);
    color: white;
}

.notification-body {
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.notification-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-btn.primary {
    background: var(--primary-color);
    color: white;
}

.notification-btn.secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.notification-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .header-actions {
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .travel-modes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eta-card {
        flex-direction: column;
        text-align: center;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .notification-popup {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification-popup.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .travel-modes {
        grid-template-columns: 1fr;
    }
    
    .travel-mode-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .travel-mode-btn i {
        font-size: 1.2rem;
    }
    
    .eta-time {
        font-size: 1.5rem;
    }
    
    .progress-bar {
        width: 60px;
        height: 60px;
    }
}


/* Additional Features Styles */

/* Quick Actions Menu */
.quick-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2000;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-heavy);
}

/* Statistics Modal */
.stats-modal {
    max-width: 600px;
    width: 90%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Help Modal */
.help-modal {
    max-width: 500px;
    width: 90%;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-section li:last-child {
    border-bottom: none;
}

kbd {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Offline Status */
.status-bar.offline {
    background: var(--warning-color);
    color: white;
}

.status-bar.offline .status-text {
    color: white;
}

.status-bar.offline .indicator {
    color: rgba(255, 255, 255, 0.8);
}

/* Voice Recognition Active State */
.action-btn.listening {
    background: var(--danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 127, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 127, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 127, 0);
    }
}

/* Enhanced Card Styles */
.destination-card.priority-high {
    border-left: 4px solid var(--danger-color);
}

.destination-card.priority-medium {
    border-left: 4px solid var(--warning-color);
}

.destination-card.priority-low {
    border-left: 4px solid var(--success-color);
}

.card-priority {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background: var(--danger-color);
    color: white;
}

.priority-medium {
    background: var(--warning-color);
    color: white;
}

.priority-low {
    background: var(--success-color);
    color: white;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Weather and Traffic Info */
.weather-info, .traffic-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.weather-info i, .traffic-info i {
    color: var(--primary-color);
}

/* Fullscreen Map */
.map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    border-radius: 0;
    margin: 0;
}

.map-container.fullscreen .map-wrapper {
    height: calc(100vh - 60px);
}

/* Enhanced Progress Bar Animation */
.progress-fill {
    transition: all 0.5s ease;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success/Error States */
.success-state {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.1);
}

.error-state {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

/* Mobile Optimizations for Additional Features */
@media (max-width: 768px) {
    .quick-actions {
        bottom: 80px;
        right: 15px;
    }
    
    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-actions {
        flex-direction: column;
    }
    
    .help-section li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .map-container.fullscreen .map-wrapper {
        height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: row;
        bottom: 15px;
        right: 15px;
        left: 15px;
        justify-content: space-around;
    }
    
    .quick-action-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Dark Mode Adjustments for New Features */
[data-theme="dark"] .stat-card {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card-category {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] kbd {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.quick-action-btn:focus,
.btn:focus,
.action-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .stat-card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .quick-action-btn {
        border: 2px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .quick-action-btn,
    .stat-card,
    .btn,
    .progress-fill {
        transition: none;
    }
    
    .loading::after {
        animation: none;
    }
    
    .action-btn.listening {
        animation: none;
    }
}

