/**
 * MScribe - Base Styles
 *
 * This file contains base/layout styles that apply across the entire site.
 * Component-specific styles are in components.css.
 * Carried from Ask360, renamed --rpp-* → --ms-*, adapted for clinical context.
 */

/* ==========================================================================
   CSS Variables - MScribe Clinical Palette
   ========================================================================== */
:root {
    /* Primary Palette */
    --ms-primary: #2563eb;
    --ms-primary-dark: #1e40af;
    --ms-primary-light: rgba(37, 99, 235, 0.1);
    --ms-secondary: #059669;
    --ms-success: #10b981;
    --ms-warning: #d97706;
    --ms-danger: #dc2626;
    --ms-dark: #1e293b;
    --ms-dark-light: #334155;
    --ms-light: #f8fafc;
    --ms-gray: #64748b;
    --ms-gray-light: #94a3b8;
    --ms-border: #e2e8f0;

    /* Connection Status */
    --ms-connected: #10b981;
    --ms-buffering: #d97706;
    --ms-disconnected: #dc2626;

    /* Recording States */
    --ms-recording: #dc2626;
    --ms-processing: #2563eb;
    --ms-ready: #10b981;

    /* Spacing */
    --ms-space-1: 4px;
    --ms-space-2: 8px;
    --ms-space-3: 12px;
    --ms-space-4: 16px;
    --ms-space-5: 24px;
    --ms-space-6: 32px;

    /* Border Radius */
    --ms-radius-sm: 8px;
    --ms-radius-md: 12px;
    --ms-radius-lg: 16px;
    --ms-radius-full: 9999px;

    /* Shadows */
    --ms-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --ms-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --ms-shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ms-dark);
}

/* ==========================================================================
   Layout
   ========================================================================== */
main > .container,
main > .container-fluid {
    padding: 70px 15px 20px;
}

/* ==========================================================================
   Navbar / Header
   ========================================================================== */
.navbar {
    background-color: var(--ms-primary) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link i {
    margin-right: 6px;
}

/* Navbar logout button alignment */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background-color: var(--ms-primary);
    border-color: var(--ms-primary);
}

.btn-primary:hover {
    background-color: var(--ms-primary-dark);
    border-color: var(--ms-primary-dark);
}

.btn-outline-primary {
    color: var(--ms-primary);
    border-color: var(--ms-primary);
}

.btn-outline-primary:hover {
    background-color: var(--ms-primary);
    border-color: var(--ms-primary);
}

.bg-primary {
    background-color: var(--ms-primary) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ms-footer {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: var(--ms-space-5) 0;
    margin-top: var(--ms-space-6);
}

.ms-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.ms-footer a:hover {
    color: #fff;
}

.ms-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-footer li {
    display: inline-block;
    margin-right: var(--ms-space-4);
}

/* Breadcrumbs, grid view, sorting icons, utilities (.not-set, .hint-block, .error-summary)
   moved to common/web/css/common.css — loaded via CommonStyleAsset dependency */

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--ms-primary);
    color: #fff;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* MScribe UI component classes (ms-page-*, ms-auth-card, ms-info-panel, ms-role-card, etc.)
   are in components.css — loaded via AppAsset */
