/* ============================
   Flask Code - Custom Styles
   ============================ */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-start: #0d6efd;
    --gradient-end: #0dcaf0;
}

/* ============================
   General Styles
   ============================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #212529;
}

/* ============================
   Navbar Styling
   ============================ */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* ============================
   Backgrounds & Gradients
   ============================ */

.bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section h1 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================
   Feature Boxes & Cards
   ============================ */

.feature-box {
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: inline-block;
}

.feature-icon-large {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    animation: pulse 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

.card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* ============================
   Buttons
   ============================ */

.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ============================
   Tables
   ============================ */

.table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    color: inherit;
}

.table th {
    font-weight: 600;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* ============================
   Code & Pre
   ============================ */

code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #d63384;
    font-family: 'Courier New', monospace;
}

pre {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background-color: transparent;
    color: #e9ecef;
    padding: 0;
    display: block;
}

/* ============================
   Badges
   ============================ */

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* ============================
   Alerts
   ============================ */

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* ============================
   Breadcrumb
   ============================ */

.breadcrumb {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ============================
   Lists & Sidebars
   ============================ */

.list-group-item {
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* ============================
   Accordion
   ============================ */

.accordion-button {
    font-weight: 500;
    color: #212529;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-body {
    padding: 1.5rem;
}

/* ============================
   Footer
   ============================ */

footer {
    border-top: 1px solid #e9ecef;
}

footer h6 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0dcaf0 !important;
}

footer .text-muted {
    opacity: 0.8;
}

footer hr {
    opacity: 0.2;
}

/* ============================
   Step Boxes (Guide)
   ============================ */

.step-box {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 6px;
}

.step-box h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ============================
   Release Card Styling
   ============================ */

.card-header.bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
}

/* ============================
   Responsive Design
   ============================ */

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .feature-icon-large {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .sticky-lg-top {
        position: static !important;
    }

    .list-group {
        margin-bottom: 2rem;
    }
}

/* ============================
   Scrollbar Styling
   ============================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* ============================
   Print Styles
   ============================ */

@media print {
    .navbar,
    footer,
    .sticky-lg-top {
        display: none;
    }

    body {
        background-color: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

html, body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
}