/* Custom styles for PriceTracker Dashboard */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
}

/* Navigation Styles */
.nav-header {
    background-color: white;
    padding: 1.5rem 0;
}

.nav-header.with-border {
    border-bottom: 1px solid var(--gray-200);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-900);
}

.nav-logo:hover {
    color: var(--gray-900);
}

.nav-logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(to bottom right, #dbeafe, white, #e0e7ff);
    min-height: 100vh;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--gray-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Pricing Cards */
.pricing-section {
    background-color: var(--gray-50);
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Dashboard Styles */
.dashboard-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.product-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

/* Auth Forms */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #dbeafe, white, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

/* CTA Section */
.cta-section {
    background-color: var(--gray-900);
    color: white;
    padding: 5rem 0;
}

/* Utility Classes */
.text-blue-600 {
    color: var(--primary-color);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-900 {
    color: var(--gray-900);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

/* Danger Button Style */
.btn-danger-custom {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger-custom:hover {
    background-color: #dc2626;
    color: white;
}

/* Logout Icon */
.logout-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logout-icon i {
    font-size: 1.75rem;
    color: var(--danger-color);
}

/* Message slide-in animation */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.alert-slide {
    animation: slideInLeft 0.4s ease-out;
}

/* Remove default Bootstrap styles that conflict */
.btn:focus {
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}