/* Custom styles for QuickBooks to Google Sheets Exporter */

:root {
    --primary-color: #0052cc;
    --success-color: #00875a;
    --warning-color: #ff8b00;
    --danger-color: #de350b;
    --light-bg: #f8f9fa;
    --border-radius: 8px;
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

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

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

/* Connection status cards */
.border-success {
    border: 2px solid var(--success-color) !important;
}

.border-warning {
    border: 2px solid var(--warning-color) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #003d99;
    border-color: #003d99;
}

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

/* Feature icons */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Progress indicators */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* List groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form controls */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.alert-warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

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

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Text styles */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Connection status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.connected {
    background-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(0, 135, 90, 0.3);
}

.status-indicator.disconnected {
    background-color: var(--warning-color);
    box-shadow: 0 0 0 2px rgba(255, 139, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Hero Landing Zone Styles */
.hero-landing-zone {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d99 100%);
    border-radius: 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 82, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 135, 90, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-10px) translateY(-15px); }
    66% { transform: translateX(10px) translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-title {
    color: white !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Hero Icon Animation */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.icon-container i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-arrow {
    animation: bounce 2s infinite;
    color: #4ade80 !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(5px); }
}

/* Feature Highlights */
.feature-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin: 0 auto;
}

.feature-highlight h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.feature-highlight p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0;
}

/* CTA Steps */
.hero-cta {
    margin-top: 3rem;
}

.cta-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.step-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Floating Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-landing-zone {
        min-height: 70vh;
        border-radius: 0;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .icon-container {
        gap: 1rem;
        flex-direction: column;
    }
    
    .icon-container i {
        font-size: 2.5rem !important;
    }
    
    .hero-arrow {
        transform: rotate(90deg);
        animation: bounceVertical 2s infinite;
    }
    
    @keyframes bounceVertical {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(90deg); }
        40% { transform: translateY(10px) rotate(90deg); }
        60% { transform: translateY(5px) rotate(90deg); }
    }
    
    .feature-highlight {
        margin-bottom: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-landing-zone {
        min-height: 60vh;
        border-radius: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-step {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
