/* Custom styles for DocNova */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

/* Navigation — site header only (not footer links or breadcrumbs) */
body > nav.site-nav {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Mobile-only: slightly taller navbar + larger logo (phones, <640px) */
@media (max-width: 639px) {
    nav.site-nav .site-nav__inner {
        height: 4.25rem !important;
        min-height: 4.25rem !important;
    }

    nav.site-nav a[aria-label="DocNova home"] svg {
        width: 2.875rem !important;
        height: 2.875rem !important;
    }

    nav.site-nav a[aria-label="DocNova home"] > span.font-bold {
        font-size: 1.375rem !important;
    }

    nav.site-nav .site-nav__menu-btn {
        padding: 0.5rem;
    }

    nav.site-nav .site-nav__menu-btn svg {
        width: 1.625rem;
        height: 1.625rem;
    }
}

footer nav,
footer .site-footer-links {
    background: transparent;
    box-shadow: none;
    border: none;
}

nav.blog-breadcrumb {
    background: transparent;
    box-shadow: none;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    color: #374151;
}

.btn-secondary:hover {
    color: #2563eb;
}

.btn-danger {
    color: #dc2626;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-small {
    max-width: 768px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Typography */
.text-center {
    text-align: center;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: #111827;
}

h3 {
    font-size: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-gray {
    color: #6b7280;
}

/* Colors */
.text-blue { color: #2563eb; }
.text-green { color: #16a34a; }
.text-purple { color: #9333ea; }
.text-orange { color: #ea580c; }
.text-red { color: #dc2626; }

/* Lists */
ul {
    list-style: none;
}

ul li {
    margin-bottom: 0.5rem;
}

ul li a {
    color: #374151;
    text-decoration: none;
}

ul li a:hover {
    color: #2563eb;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button[type="submit"],
.btn-submit {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
}

button[type="submit"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 0.625rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: #2563eb;
    transition: width 0.3s;
    border-radius: 9999px;
}

/* Status Badge */
.status {
    font-weight: 600;
}

.status-pending { color: #ca8a04; }
.status-processing { color: #ca8a04; }
.status-completed { color: #16a34a; }
.status-failed { color: #dc2626; }

/* Download Button */
.btn-download {
    display: inline-block;
    background-color: #16a34a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    background-color: #15803d;
}

/* Footer — legacy pages only; public site uses .site-footer in partials/site_footer.html */
footer:not(.site-footer) {
    background-color: #1f2937;
    color: white;
    margin-top: 3rem;
    padding: 2rem 1rem;
    text-align: center;
}

footer.site-footer {
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
    color: inherit;
    margin-top: 2rem;
    padding: 0;
    text-align: center;
    box-shadow: none;
}
@media (min-width: 640px) {
    footer.site-footer {
        margin-top: 4rem;
    }
}

/* Short content pages — footer follows content, not pushed to viewport bottom */
body.site-page footer.site-footer {
    margin-top: 2rem;
}

footer.site-footer .site-footer-links {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Utility Classes */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth forms — compact input text & placeholders */
.auth-form input:not([type="hidden"]),
.auth-form textarea,
.auth-form select {
    font-size: 0.875rem;
    line-height: 1.375rem;
}
.auth-form input::placeholder,
.auth-form textarea::placeholder {
    font-size: 0.8125rem;
    color: #9ca3af;
    opacity: 1;
}
.auth-form label.field-required::after {
    content: ' *';
    color: #dc2626;
    font-weight: 600;
}
.auth-field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: rgba(185, 28, 28, 0.72);
}
.auth-field-error svg {
    margin-top: 0.125rem;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    color: rgba(239, 68, 68, 0.6);
}

/* Social login — matched Google + Facebook buttons */
.social-auth-btn {
    display: flex;
    height: 3rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.social-auth-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}
.social-auth-btn:disabled {
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}
.social-auth-google-wrap {
    position: relative;
    min-height: 3rem;
}
.social-auth-google-wrap .social-auth-btn {
    pointer-events: none;
}
.social-auth-google-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    opacity: 0.011;
}
.social-auth-google-overlay > div,
.social-auth-google-overlay iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}












