/* Base styles */
:root {
    --primary: #4abec2;
    --dark-blue: #1f2937;
    --light-gray: #f7f7f7;
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Custom utility classes */
.bg-primary {
    background-color: var(--primary);
}

.bg-dark {
    background-color: var(--dark-blue);
}

.text-primary {
    color: var(--primary);
}

.hover-bg-dark:hover {
    background-color: var(--dark-blue);
}

.focus-ring-primary:focus {
    outline: none;
    --tw-ring-color: var(--primary);
    --tw-ring-opacity: 1;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

/* HTMX Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* File input styling */
input[type="file"] {
    position: relative;
}

input[type="file"]::file-selector-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--dark-blue);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: var(--white);
    height: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-items {
    display: flex;
    list-style: none;
}

.nav-items li {
    margin: 0 15px;
}

.nav-items a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-items a:hover {
    color: var(--primary);
}

/* Content sections */
.content-section {
    padding: 60px 5%;
    text-align: justify;
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

/* Animation for polling indicator */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.htmx-indicator-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 5%;
}