/* EV Car Selector Styles */
.ev-car-selector,
.ev-car-current,
.ev-car-login-prompt {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Sidebar-specific styles for EV car selector */
#ev-car-selector-container .ev-car-selector,
#ev-car-selector-container .ev-car-current,
#ev-car-selector-container .ev-car-login-prompt {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    border: none;
}

#ev-car-selector-container .ev-car-selector h3,
#ev-car-selector-container .ev-car-current h3,
#ev-car-selector-container .ev-car-login-prompt h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #35424a;
}

#ev-car-selector-container .selector-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

#ev-car-selector-container .car-selection-form {
    gap: 0.75rem;
}

#ev-car-selector-container .form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#ev-car-selector-container .form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
}

#ev-car-selector-container .car-info {
    flex-direction: column;
    gap: 0.75rem;
}

#ev-car-selector-container .car-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

#ev-car-selector-container .car-specs {
    gap: 0.25rem;
}

#ev-car-selector-container .spec-item {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

#ev-car-selector-container .car-actions {
    flex-direction: row;
    gap: 0.5rem;
}

#ev-car-selector-container .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-info {
    background-color: #3b82f6;
}

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

.ev-car-selector h3,
.ev-car-current h3,
.ev-car-login-prompt h3 {
    margin: 0 0 1rem 0;
    color: #1d3be8;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selector-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.car-selection-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #1d3be8;
    box-shadow: 0 0 0 3px rgba(29, 59, 232, 0.1);
}

.form-control:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 1rem;
}

/* Current Car Display */
.car-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.car-details h4 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.125rem;
}

.car-year {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.spec-label {
    font-weight: 500;
    color: #374151;
}

.spec-value {
    color: #1d3be8;
    font-weight: 500;
}

.car-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: #1d3be8;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1e40af;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    color: #1d3be8;
    border: 1px solid #1d3be8;
}

.btn-outline:hover {
    background-color: #1d3be8;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Login Prompt */
.ev-car-login-prompt {
    text-align: center;
}

.ev-car-login-prompt p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    margin: 0;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

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

.modal-body small {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Toast Messages */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-info {
    background-color: #3b82f6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .car-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .car-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
} 