/* Simple Profile Design */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.profile-container {
    display: flex;
    position: relative;
    min-height: calc(100vh - 120px); /* Account for header and footer */
    background-color: #f8f9fa;
}

.profile-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    margin-top: -22px; /* Added negative margin to move the icon up */
}

.profile-sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.profile-menu {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.profile-menu-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu-header i {
    font-size: 24px;
    color: #0d6efd;
}

.user-email {
    font-size: 14px;
    color: #495057;
    word-break: break-all;
}

.menu-items {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    width: 100%;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.menu-item.active {
    background-color: #e9ecef;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.profile-content {
    flex: 1;
    padding: 20px 30px 0 30px;
    overflow-y: auto;
    min-height: calc(100vh - 120px);
}

/* Reset margin-left since we're not using fixed positioning anymore */
.profile-content {
    margin-left: 0;
}

.content-section {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

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

.content-section h2 {
    margin: 0 0 20px 0;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.content-section h2 i {
    color: #0d6efd;
}

.routes-grid, .favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.settings-group {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-group h3 {
    margin-bottom: 15px;
    color: #495057;
}

.settings-group button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 200px;
}

.change-password-btn {
    background-color: #0d6efd;
    border: none;
}

.delete-account-btn {
    background-color: #dc3545;
    border: none;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        min-height: auto;
    }

    .profile-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .profile-content {
        padding: 20px;
        min-height: auto;
    }

    .content-section {
        margin-top: 0;
    }

    .menu-items {
        flex-direction: column;
    }

    .menu-item {
        width: 100%;
    }
}

/* Utility Classes */
.text-muted {
    color: #6c757d;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Card Styles */
.route-card,
.station-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover,
.station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.route-card h3,
.station-card h3 {
    margin: 0 0 10px 0;
    color: #212529;
    font-size: 1.1rem;
}

.route-card p,
.station-card p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #343a40;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin: 0;
}

/* Settings Section */
.settings-options {
    max-width: 600px;
}

.settings-group {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings-group h3 {
    margin: 0 0 20px 0;
    color: #212529;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: #0d6efd;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
}

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

.btn-danger:hover {
    background: #bb2d3b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .routes-grid,
    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .settings-options {
        max-width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.station-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.station-card h3 {
    margin: 0 0 10px 0;
    color: #212529;
    font-size: 1.1rem;
}

.station-address {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-address i {
    color: #dc3545;
}

.station-prices {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fuel-type {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #198754;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Route card styles */
.route-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.route-card h3 {
    margin: 0 0 10px 0;
    color: #212529;
    font-size: 18px;
}

.route-endpoints {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.route-endpoints i {
    margin-right: 5px;
    color: #0d6efd;
}

/* Route stations list styles */
.route-stations {
    margin: 15px 0;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.route-stations h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #495057;
}

.stations-list {
    max-height: 200px;
    overflow-y: auto;
}

.route-station-item {
    background-color: white;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #0d6efd;
}

.route-station-item:last-child {
    margin-bottom: 0;
}

.station-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.station-brand {
    font-weight: 600;
    color: #343a40;
}

.station-price {
    font-weight: 600;
    color: #28a745;
}

.station-address {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Station actions within route card */
.station-actions {
    margin-top: 6px;
    text-align: right;
}

.btn-link {
    background: none;
    border: none;
    color: #0d6efd;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.btn-link i {
    font-size: 10px;
}