@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Lato:wght@400;700&display=swap');

:root {
    --bs-primary: #0A749A;
    --bs-secondary: #2E9599;
    --accent-color: #F2C14E;
    --neutral-light: #F8F9FA;
    --neutral-dark-text: #343A40;
    --neutral-dark-bg: #212529;

    --bs-primary-rgb: 10, 116, 154;
    --bs-secondary-rgb: 46, 149, 153;
    --bs-body-color: var(--neutral-dark-text);
    --bs-body-bg: var(--neutral-light);
    --bs-font-sans-serif: 'Lato', sans-serif;
    --headings-font-family: 'Poppins', sans-serif;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.8rem;
    --bs-border-radius-sm: 0.3rem;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.07);
}

html, body {
    overscroll-behavior: none;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typographic Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--headings-font-family);
    font-weight: 700;
    color: var(--neutral-dark-text);
}

h1 { font-size: 2.5rem; margin-bottom: 2rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1.5rem; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
small { font-size: 0.875rem; }

/* Shared Components Styling */

/* Frosted Glass Navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    font-size: 1.5rem;
    color: #34495E !important;
}

.nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    color: #34495E !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #8E44AD !important;
}

#logout-link {
    color: #dc3545 !important;
}

#logout-link:hover {
    color: #a71d2a !important;
}

/* Button Styling */
.btn {
    border-radius: var(--bs-border-radius);
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: var(--neutral-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: var(--neutral-light);
}

.btn-secondary {
    background-color: var(--bs-secondary);
    color: var(--neutral-light);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Conditional Auth View Styles */
body.logged-in .logged-out-view {
  display: none !important;
}

body.logged-in .logged-in-view {
  display: flex !important;
}

/* Footer Styling */
.site-footer {
    background-color: #212529;
    color: #F8F9FA;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer a {
    color: #F2C14E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #F8F9FA;
    text-decoration: underline;
}
/* NODE-SPECIFIC STYLES */

/* Pages without navbar (login, signup) */
body.no-navbar {
    padding-top: 0;
}

/* Refined Glassmorphic Card */
.card-glass {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--neutral-dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 4px rgba(46, 149, 153, 0.15);
    outline: none;
}

/* Node-specific Button Overrides */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    box-shadow: 0 4px 12px rgba(10, 116, 154, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(10, 116, 154, 0.3);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.alert-info {
    background-color: rgba(10, 116, 154, 0.1);
    color: var(--bs-primary);
    border-left: 4px solid var(--bs-primary);
}

/* Links */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--bs-secondary);
    text-decoration: underline;
}

/* Password Requirements */
.password-requirements .requirement {
    font-size: 0.8rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.password-requirements .requirement .req-icon {
    font-style: normal;
    margin-right: 6px;
}

.password-requirements .requirement.valid {
    color: #198754 !important;
}

.password-requirements .requirement.valid .req-icon::before {
    content: "✓";
}

.password-requirements .requirement.invalid {
    color: #6c757d;
}

.password-requirements .requirement.invalid .req-icon::before {
    content: "○";
}

/* Disabled button state */
.btn-primary:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}