:root {
    --purple-color: #8b2dc9;
    --purple-light: #a855f7;
    --purple-dark: #6b21a8;
    --purple-gradient: linear-gradient(135deg, #8b2dc9, #a855f7);
    --accent-color: #ec4899;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.text-purple {
    color: var(--purple-color) !important;
}

.bg-purple {
    background-color: var(--purple-color) !important;
}

/* Footer specific styling */
footer.bg-purple {
    background-color: var(--purple-color) !important;
}

.border-purple {
    border-color: var(--purple-color) !important;
}

.btn-purple {
    background-color: var(--purple-color) !important;
    border-color: var(--purple-color) !important;
    color: white !important;
}

.btn-purple:hover {
    background-color: var(--purple-dark) !important;
    border-color: var(--purple-dark) !important;
    color: white !important;
}

/* Ensure hero button gets purple styling */
.hero-buttons .btn-purple {
    background-color: var(--purple-color) !important;
    border-color: var(--purple-color) !important;
    color: white !important;
}

.btn-outline-purple {
    color: var(--purple-color);
    border-color: var(--purple-color);
}

.btn-outline-purple:hover {
    background-color: var(--purple-color);
    border-color: var(--purple-color);
    color: white;
}


.btn-accent {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}
.text-accent {
    color: var(--accent-color) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.bg-gradient-purple {
    background: var(--purple-gradient);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(128, 0, 255, 0.15);
}

.feature-card .card-icon {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature-card:hover .card-icon {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Dashboard Styles */
.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.conversation-item:last-child,
.appointment-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.metric-item .progress {
    border-radius: 10px;
}

.metric-item .progress-bar {
    border-radius: 10px;
}

/* Vehicle Cards */
.vehicle-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.vehicle-image {
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.carfax-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

/* Appointment Styles */
.appointment-type {
    cursor: pointer;
    transition: all 0.3s ease;
}

.appointment-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(128, 0, 255, 0.15);
}

.appointment-type.border-purple {
    border-width: 2px !important;
}

.appointment-icon {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.appointment-type:hover .appointment-icon {
    opacity: 1;
}

/* Chat Styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--purple-color);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

.quick-action {
    transition: all 0.3s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 255, 0.2);
}

/* Social Links */
.social-links a {
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--purple-light) !important;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--purple-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 255, 0.25);
}

.form-select:focus {
    border-color: var(--purple-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 255, 0.25);
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: none;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(128, 0, 255, 0.05);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

/* Loading Spinner */
.spinner-border-purple {
    color: var(--purple-color);
}

/* Utility Classes */
.shadow-purple {
    box-shadow: 0 4px 15px rgba(128, 0, 255, 0.2) !important;
}

.border-radius-lg {
    border-radius: 12px !important;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Chat Styles */
.hero-chat-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-chat-container .card {
        margin: 20px 0;
        height: 400px !important;
    }
}
