/* PCG Solutions | MODLR - Custom Styles */

/* PCG Logo Text - Avenir Next LT Pro approximation */
.pcg-logo-text {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Tagline */
.tagline {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 300;
    font-style: italic;
}

/* Login form inputs */
.login-input {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid rgba(74, 127, 181, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-input:focus {
    border-color: #4A7FB5;
    box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
}

.login-input::placeholder {
    color: rgba(200, 205, 211, 0.4);
}

/* Get Started button */
.login-btn {
    background: linear-gradient(135deg, #4A7FB5 0%, #3A8F9F 100%);
    background-size: 200% 200%;
    border: none;
    letter-spacing: 0.05em;
    animation: shimmer 3s ease-in-out infinite;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a8fc5 0%, #4a9faf 100%);
    background-size: 200% 200%;
    box-shadow: 0 6px 20px rgba(74, 127, 181, 0.4), 0 0 40px rgba(58, 143, 159, 0.15);
    transform: translateY(-2px) scale(1.02);
    animation: none;
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(74, 127, 181, 0.2);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* App Portal Cards */
.app-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-card--active:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74, 127, 181, 0.25), 0 0 40px rgba(74, 127, 181, 0.1);
    border-color: rgba(74, 127, 181, 0.5) !important;
    cursor: pointer;
}

.app-card--disabled {
    opacity: 0.6;
    cursor: default;
}

.app-card--disabled:hover {
    transform: none;
}

/* =====================================================
   VISUAL POLISH — Shared Design System
   ===================================================== */

/* --- Design Tokens --- */
:root {
    --pcg-navy: #1E3A5F;
    --pcg-navy-dark: #1a2e4a;
    --pcg-charcoal: #2D3748;
    --pcg-steel: #4A7FB5;
    --pcg-lightblue: #A3D8FC;
    --pcg-teal: #3A8F9F;
    --pcg-gray: #C8CDD3;
    --pcg-red: #E63946;
    --pcg-gradient: linear-gradient(135deg, #4A7FB5 0%, #3A8F9F 100%);
    --pcg-gradient-hover: linear-gradient(135deg, #5a8fc5 0%, #4a9faf 100%);
    --pcg-border: rgba(74, 127, 181, 0.15);
    --pcg-border-hover: rgba(74, 127, 181, 0.4);
    --pcg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --pcg-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --pcg-shadow-glow: 0 4px 16px rgba(74, 127, 181, 0.25);
    --pcg-radius: 6px;
    --pcg-radius-lg: 12px;
    --pcg-transition: 150ms ease;
}

/* --- Font Smoothing --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Button System (pcg- prefixed) --- */
.pcg-btn-primary,
.pcg-btn-secondary,
.pcg-btn-ghost,
.pcg-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: var(--pcg-radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform var(--pcg-transition), box-shadow var(--pcg-transition), background var(--pcg-transition), border-color var(--pcg-transition), color var(--pcg-transition);
}

.pcg-btn-primary {
    background: var(--pcg-gradient);
    color: white;
}
.pcg-btn-primary:hover {
    background: var(--pcg-gradient-hover);
    transform: translateY(-1px);
    box-shadow: var(--pcg-shadow-glow);
    color: white;
}
.pcg-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.pcg-btn-secondary {
    background: rgba(74, 127, 181, 0.15);
    border: 1px solid rgba(74, 127, 181, 0.4);
    color: var(--pcg-gray);
}
.pcg-btn-secondary:hover {
    background: rgba(74, 127, 181, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--pcg-shadow-sm);
}
.pcg-btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.pcg-btn-ghost {
    background: transparent;
    border: 1px solid rgba(74, 127, 181, 0.25);
    color: var(--pcg-gray);
}
.pcg-btn-ghost:hover {
    background: rgba(74, 127, 181, 0.12);
    color: #fff;
    border-color: rgba(74, 127, 181, 0.4);
}
.pcg-btn-ghost:active {
    background: rgba(74, 127, 181, 0.2);
}

.pcg-btn-danger {
    background: #c53030;
    color: white;
}
.pcg-btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
    color: white;
}
.pcg-btn-danger:active {
    transform: translateY(0);
    box-shadow: none;
}

.pcg-btn-sm {
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* Focus ring for all pcg buttons */
.pcg-btn-primary:focus-visible,
.pcg-btn-secondary:focus-visible,
.pcg-btn-ghost:focus-visible,
.pcg-btn-danger:focus-visible {
    outline: 2px solid var(--pcg-lightblue);
    outline-offset: 2px;
}

/* --- Navigation Bar --- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: rgba(26, 46, 74, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pcg-border);
}

.top-nav-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

/* --- Nav Links --- */
.nav-link {
    color: var(--pcg-steel);
    font-size: 0.85rem;
    text-decoration: none;
    position: relative;
    transition: color var(--pcg-transition);
}
button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 0.85rem;
}
.nav-link:hover {
    color: #fff;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--pcg-steel);
    transition: width 200ms ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- Panel Glassmorphism --- */
.panel {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--pcg-border);
    border-radius: var(--pcg-radius-lg);
    transition: border-color var(--pcg-transition), box-shadow var(--pcg-transition);
}
.panel:hover {
    border-color: var(--pcg-border-hover);
    box-shadow: 0 0 20px rgba(74, 127, 181, 0.08);
}

/* --- Input / Select Fields --- */
.input-field,
.select-field {
    background: rgba(30, 58, 95, 0.8);
    border: 1px solid rgba(74, 127, 181, 0.3);
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-field:focus,
.select-field:focus {
    border-color: var(--pcg-steel);
    box-shadow: 0 0 0 3px rgba(74, 127, 181, 0.15);
    outline: none;
}

/* --- Tab System --- */
.tab-bar {
    display: flex;
    gap: 0;
    background: rgba(30, 58, 95, 0.7);
    border-bottom: 1px solid var(--pcg-border);
}
.tab-item {
    padding: 12px 32px;
    color: var(--pcg-gray);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    transition: color var(--pcg-transition), background var(--pcg-transition), border-color var(--pcg-transition);
}
.tab-item:hover {
    color: #fff;
    background: rgba(74, 127, 181, 0.1);
}
.tab-item.active {
    color: #fff;
    border-bottom-color: var(--pcg-red);
}

/* --- Section Accent Bar --- */
.section-accent {
    display: inline-block;
    width: 4px;
    height: 24px;
    border-radius: 9999px;
    background: linear-gradient(180deg, #4A7FB5, #3A8F9F);
    box-shadow: 0 0 8px rgba(74, 127, 181, 0.4);
}

/* --- Footer --- */
.page-footer {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(74, 127, 181, 0.1);
}
.page-footer p {
    color: var(--pcg-gray);
    font-size: 0.75rem;
    opacity: 0.4;
    margin: 0;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(26, 46, 74, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(74, 127, 181, 0.35);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 127, 181, 0.55);
}

/* --- Fade-in Animation --- */
.fade-in {
    animation: fadeIn 0.3s ease both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Settings Modal --- */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}
.settings-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.settings-card {
    background: rgba(30, 50, 80, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--pcg-border-hover);
    border-radius: var(--pcg-radius-lg);
    padding: 28px 32px;
    min-width: 380px;
    max-width: 460px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.settings-card h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px;
}
.palette-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--pcg-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--pcg-transition), border-color var(--pcg-transition);
}
.palette-option:hover {
    background: rgba(74, 127, 181, 0.1);
}
.palette-option.active {
    border-color: var(--pcg-steel);
    background: rgba(74, 127, 181, 0.15);
}
.palette-option .palette-name {
    color: var(--pcg-gray);
    font-size: 0.82rem;
    font-weight: 500;
    min-width: 80px;
}
.palette-option.active .palette-name {
    color: #fff;
}
.palette-dots {
    display: flex;
    gap: 6px;
}
.palette-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
