/* common.css — shared rules deduplicated from per-page stylesheets */

:root {
            --primary-color: #2563eb;
            --primary-dark: #1d4ed8;
            --success-color: #10b981;
            --warning-color: #f59e0b;
            --gradient-start: #3b82f6;
            --gradient-end: #8b5cf6;
            --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        }

/* Shared site header chrome — matches the shared markup injected by js/layout.js.
   Lives here (not per-page) so every page, including those without a page CSS,
   renders the identical navbar. */
.navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 16px 0;
        }

.navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.navbar .nav-link {
            font-weight: 500;
            color: #475569;
            padding: 8px 16px !important;
            transition: color 0.3s ease;
        }

.btn-get-started {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            color: white;
        }

.btn-get-started:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

.navbar .nav-link:hover,
        .navbar .nav-link.active {
            color: var(--primary-color);
        }

.hover a:hover {
            color: var(--primary-color);
        }

footer {
            background: #1e293b;
            color: white;
            padding: 48px 0 24px;
            margin-top: 80px;
        }

footer a {
            color: #cbd5e1;
            text-decoration: none;
            transition: color 0.3s ease;
        }

footer a:hover {
            color: white;
        }

.footer-brand {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
        }

.footer-desc {
            color: #94a3b8;
            margin-bottom: 0;
        }

.footer-links-inline {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px 24px;
            justify-content: center;
        }

.footer-links-inline a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.3s ease;
        }

.footer-links-inline a:hover {
            color: white;
        }

.footer-social {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

.footer-social a {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.3s ease;
        }

.footer-social a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

.footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 32px;
            padding-top: 20px;
            text-align: center;
            font-size: 0.875rem;
        }

.loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
        }

@keyframes spin {
            to { transform: rotate(360deg); }
        }

.form-control:focus, .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        }

.hero-section h1 {
            font-weight: 700;
            margin-bottom: 15px;
        }

.hero-section p {
            opacity: 0.9;
            font-size: 1.1rem;
        }

.content-card h2 {
            color: #333;
            font-weight: 600;
            margin-top: 30px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
        }

.content-card h2:first-child {
            margin-top: 0;
        }

.content-card h3 {
            color: #555;
            font-weight: 600;
            font-size: 1.1rem;
            margin-top: 25px;
            margin-bottom: 10px;
        }

.content-card p, .content-card li {
            color: #555;
            line-height: 1.8;
        }

.content-card ul {
            padding-left: 20px;
        }

.content-card ul li {
            margin-bottom: 8px;
        }

.last-updated {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 30px;
            font-size: 0.95rem;
            color: #666;
        }

.last-updated i {
            color: var(--primary-color);
        }

.toc {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px 25px;
            margin-bottom: 30px;
        }

.toc h5 {
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
        }

.toc ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

.toc ul li {
            margin-bottom: 8px;
        }

.toc ul li a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.2s;
        }

.toc ul li a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.highlight-box {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            border-left: 4px solid var(--primary-color);
            border-radius: 0 8px 8px 0;
            padding: 20px;
            margin: 20px 0;
        }

.highlight-box p {
            margin-bottom: 0;
        }

.back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary-gradient);
            color: white;
            border: none;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            transition: transform 0.3s;
            z-index: 1000;
        }

.back-to-top:hover {
            transform: translateY(-3px);
        }

.back-to-top.show {
            display: flex;
        }

.form-floating .form-control {
            border-radius: 8px;
            border: 2px solid #e9ecef;
            padding: 1rem 0.75rem;
        }

.form-floating .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
        }

.form-floating label {
            padding: 1rem 0.75rem;
        }

.alert-danger {
            background-color: #fee2e2;
            border-color: #fecaca;
            color: #991b1b;
        }

.alert-success {
            background-color: #d1fae5;
            border-color: #a7f3d0;
            color: #065f46;
        }

.version-badge {
            display: inline-block;
            background: #e9ecef;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            margin-top: 10px;
        }

.spinner-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

.spinner-overlay.show {
            display: flex;
        }

.password-requirements li {
            margin-bottom: 2px;
        }

.password-requirements .valid {
            color: #059669;
        }

.password-requirements .invalid {
            color: #dc2626;
        }

.hidden {
            display: none !important;
        }
