/* Custom styles for Ledger App */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
        transform: translateY(-1px);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Additions for screenshots */
.hero-section-alt {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.screenshot-gallery {
    position: relative;
    border-radius: 14px;
}

.screenshot-carousel {
    min-height: 220px;
}

.screenshot-carousel .mud-carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: .75rem;
}

.screenshot-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    background: #111;
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

/* Frame variants for screenshots gallery */
.screenshot-frame.frame-desktop {
    width: 320px;
    height: 200px;
    aspect-ratio: 16/10;
    padding: 6px;
}

.screenshot-frame.frame-phone {
    width: 180px;
    height: 360px;
}

.screenshot-frame.frame-tab7 {
    width: 240px;
    height: 360px;
}

.screenshot-frame.frame-tab10 {
    width: 280px;
    height: 380px;
}

.screenshot-frame.img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #000;
}

@media (max-width: 992px) {
    .screenshot-frame {
        max-width: 260px;
    }

    .screenshot-frame.frame-desktop {
        width: 260px;
        height: 170px;
    }

    .screenshot-frame.frame-phone {
        width: 150px;
        height: 300px;
    }

    .screenshot-frame.frame-tab7 {
        width: 200px;
        height: 320px;
    }

    .screenshot-frame.frame-tab10 {
        width: 240px;
        height: 340px;
    }
}

/* Badges */
.badge {
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Progress bars */
.progress {
    border-radius: 0.5rem;
    background-color: #f1f5f9;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 0.5rem;
}

/* Accordion */
.accordion-button {
    border-radius: 0.5rem !important;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

/* Footer */
footer a {
    transition: color 0.2s ease;
}

    footer a:hover {
        color: white !important;
    }

/* Responsive utilities */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Pricing cards */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}

    .pricing-card:hover {
        transform: translateY(-5px);
    }

    .pricing-card.popular {
        border-color: var(--primary-color) !important;
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    }

/* Dashboard specific styles */
.min-vh-100 {
    min-height: 100vh;
}

.nav-tabs .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    border: 1px solid transparent;
    margin-right: 0.25rem;
}

    .nav-tabs .nav-link.active {
        background-color: white;
        border-color: var(--border-color) var(--border-color) white;
        color: var(--primary-color);
    }

/* Feature icons */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Status indicators */
.status-operational {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-error {
    color: var(--danger-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form improvements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Input groups */
.input-group-text {
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }

/* Utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}
