/* Cornerstone Streetworks Pole Acceptance Portal - Brand Styling */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    /* Cornerstone Primary Colors */
    --cornerstone-primary: #003252;
    --cornerstone-secondary: #00b289;
    --cornerstone-gray: #54565b;
    --cornerstone-light: #e2e2e6;
    
    /* Cornerstone Secondary Colors */
    --cornerstone-blue-1: #00567c;
    --cornerstone-blue-2: #006a8e;
    --cornerstone-blue-3: #1d8296;
    --cornerstone-blue-4: #0099b2;
    --cornerstone-blue-5: #00a7b5;
    --cornerstone-blue-6: #00b7bd;
    --cornerstone-blue-7: #00bab3;
    --cornerstone-blue-8: #00b2a2;
    
    /* Functional Grey Tones */
    --cornerstone-grey-1: #64696b;
    --cornerstone-grey-2: #75797b;
    --cornerstone-grey-3: #979a9c;
    --cornerstone-grey-4: #a8abac;
    --cornerstone-grey-5: #babcbd;
    --cornerstone-grey-6: #dcddde;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Century Gothic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== SIDEBAR LAYOUT ===== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header Bar */
.top-header {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, #003252 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    margin-left: 250px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 100%;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-welcome {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-welcome i {
    font-size: 16pt;
}

.header-logout-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-logout-btn i {
    margin-right: 0.5rem;
    font-size: 14pt;
}

.auth-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-auth-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-auth-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-register-btn {
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, #00a8c5 100%);
    border: 1px solid var(--cornerstone-secondary);
}

.header-register-btn:hover {
    background: linear-gradient(135deg, #00a8c5 0%, var(--cornerstone-secondary) 100%);
    box-shadow: 0 4px 15px rgba(0, 153, 178, 0.3);
}

.header-auth-btn i {
    margin-right: 0.5rem;
    font-size: 14pt;
}

/* Home Page Layout */
.home-header {
    margin-left: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.home-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18pt;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-brand:hover {
    color: var(--cornerstone-secondary) !important;
}

.home-brand i {
    font-size: 20pt;
}

.home-main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background-color: #ffffff;
}

/* Enhanced Feature Cards for Home Page */
.cornerstone-features .cornerstone-feature-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 50, 82, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--cornerstone-grey-6);
}

.cornerstone-features .cornerstone-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 50, 82, 0.15);
    border-color: var(--cornerstone-secondary);
}

.cornerstone-features .cornerstone-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.2);
}

.cornerstone-features .cornerstone-feature-icon i {
    font-size: 2rem;
    color: white;
}

.cornerstone-features .cornerstone-feature-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18pt;
    line-height: 26pt;
    color: var(--cornerstone-primary);
    margin-bottom: 1rem;
}

.cornerstone-features .cornerstone-feature-text {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--cornerstone-grey-1);
    flex-grow: 1;
    margin-bottom: 0;
}

/* Responsive Design for Feature Cards */
@media (max-width: 768px) {
    .cornerstone-features .cornerstone-feature-item {
        margin-bottom: 1.5rem;
    }
    
    .cornerstone-features .cornerstone-feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .cornerstone-features .cornerstone-feature-icon i {
        font-size: 1.5rem;
    }
    
    .cornerstone-features .cornerstone-feature-title {
        font-size: 16pt;
        line-height: 24pt;
    }
    
    .cornerstone-features .cornerstone-feature-text {
        font-size: 13pt;
        line-height: 21pt;
    }
}

/* Responsive Design for Top Header */
@media (max-width: 768px) {
    .top-header {
        margin-left: 0;
    }
    
    .top-header-content {
        padding: 0 1rem;
    }
    
    .user-welcome {
        display: none;
    }
    
    .auth-menu {
        gap: 0.5rem;
    }
    
    .header-auth-btn {
        padding: 0.4rem 0.8rem;
        font-size: 11pt;
    }
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, #003252 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 60px; /* Account for top header */
}

.sidebar-header {
    padding: 1.5rem 1rem;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18pt;
    color: white !important;
    text-decoration: none;
    display: block;
}

.sidebar-brand:hover {
    color: var(--cornerstone-secondary) !important;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-menu .nav {
    padding: 0 1rem;
}

.sidebar-menu .nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu .nav-link i {
    margin-right: 0.75rem;
    font-size: 16pt;
    width: 20px;
    text-align: center;
}

.sidebar-menu .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-menu .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, #00a8c5 100%);
    box-shadow: 0 4px 15px rgba(0, 153, 178, 0.3);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
}

.user-info i {
    margin-right: 0.5rem;
    font-size: 16pt;
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logout-btn i {
    margin-right: 0.5rem;
    font-size: 14pt;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.auth-links .nav-link i {
    margin-right: 0.5rem;
    font-size: 14pt;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    margin-top: 60px; /* Account for top header */
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 0; /* Remove top padding on mobile */
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 60px; /* Keep top header margin on mobile */
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background-color: var(--cornerstone-primary);
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: 4px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
}

/* Global Styles */
body {
    font-family: var(--font-body);
    background-color: #f8f9fa;
    color: var(--cornerstone-primary);
    font-size: 14pt;
    line-height: 23.2pt;
    margin: 0;
    padding: 0;
}

/* Cornerstone Hero Section */
.cornerstone-hero {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Compact Hero Section for Home Page */
.cornerstone-hero-compact {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
    padding: 3rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.cornerstone-hero-content {
    padding: 2rem 0;
}

/* Compact Hero Content */
.cornerstone-hero-compact .cornerstone-hero-content {
    padding: 1rem 0;
}

.cornerstone-main-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28pt;
    line-height: 40.2pt;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Compact Hero Title */
.cornerstone-hero-compact .cornerstone-main-title {
    font-size: 24pt;
    line-height: 32pt;
    margin-bottom: 1rem;
}

.cornerstone-hero-description {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Compact Hero Description */
.cornerstone-hero-compact .cornerstone-hero-description {
    margin-bottom: 1.5rem;
}

.cornerstone-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cornerstone-btn-primary {
    background-color: var(--cornerstone-blue-4);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14pt;
    line-height: 23.2pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 153, 178, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-btn-primary:hover {
    background-color: var(--cornerstone-blue-5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 178, 0.4);
    color: white;
    text-decoration: none;
}

.cornerstone-btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14pt;
    line-height: 23.2pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-btn-secondary:hover {
    background-color: white;
    color: var(--cornerstone-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.cornerstone-hero-icon {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Compact Hero Icon */
.cornerstone-hero-compact .cornerstone-hero-icon {
    font-size: 5rem;
}

/* Cornerstone Features Section */
.cornerstone-features {
    padding: 2rem 0;
    background-color: white;
}

.cornerstone-feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: white;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 50, 82, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.cornerstone-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.1);
}

.cornerstone-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.15);
    transition: all 0.3s ease;
}

.cornerstone-feature-item:hover .cornerstone-feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 50, 82, 0.25);
}

.cornerstone-feature-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20pt;
    line-height: 28pt;
    color: var(--cornerstone-primary);
    margin-bottom: 1.5rem;
}

.cornerstone-feature-text {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0;
    max-width: 300px;
}

/* Cornerstone Workflow Section */
.cornerstone-workflow {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.cornerstone-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24pt;
    line-height: 32pt;
    color: var(--cornerstone-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cornerstone-section-description {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cornerstone-workflow-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.cornerstone-workflow-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.cornerstone-workflow-item i {
    color: var(--cornerstone-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cornerstone-workflow-item span {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: var(--cornerstone-gray);
    font-weight: 500;
}

.hutchinson-workflow-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hutchinson-workflow-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.hutchinson-workflow-item i {
    color: var(--hutchinson-secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hutchinson-workflow-item span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--hutchinson-gray);
    font-weight: 500;
}

/* Cornerstone Footer */
.cornerstone-footer {
    background-color: var(--cornerstone-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.cornerstone-footer p {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 28pt;
    line-height: 40.2pt;
    color: var(--primary-color);
}

h2 {
    font-size: 24pt;
    line-height: 32pt;
    color: var(--primary-color);
}

h3 {
    font-size: 20pt;
    line-height: 28pt;
    color: var(--primary-color);
}

h4 {
    font-size: 18pt;
    line-height: 26pt;
    color: var(--primary-color);
}

h5 {
    font-size: 16pt;
    line-height: 24pt;
    color: var(--primary-color);
}

h6 {
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--primary-color);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0 !important;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    font-size: 14pt;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-1);
    border-color: var(--secondary-1);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--primary-secondary);
    border-color: var(--primary-secondary);
}

.btn-success:hover {
    background-color: var(--secondary-8);
    border-color: var(--secondary-8);
}

/* Form Styles */
.form-control {
    border-radius: 6px;
    border: 1px solid var(--gray-6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-body);
    font-size: 14pt;
    color: var(--primary-gray);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 82, 0.25);
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14pt;
}

.form-check-label {
    font-family: var(--font-body);
    font-size: 14pt;
    color: var(--primary-gray);
}

/* Question Item Styles */
.question-item {
    background-color: var(--primary-light);
    border: 1px solid var(--gray-6) !important;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.question-item:hover {
    background-color: var(--gray-6);
    border-color: var(--primary-color) !important;
}

.question-item h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14pt;
    line-height: 23.2pt;
}

/* Signature Pad Styles */
#signaturePad {
    border: 2px dashed var(--gray-6);
    border-radius: 6px;
    background-color: white;
}

#signaturePad:hover {
    border-color: var(--primary-color);
}

/* Badge Styles */
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12pt;
}

.badge.bg-success {
    background-color: var(--primary-secondary) !important;
}

.badge.bg-info {
    background-color: var(--secondary-6) !important;
}

.badge.bg-warning {
    background-color: var(--secondary-7) !important;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-body);
}

.table thead th {
    background-color: var(--primary-light);
    border-bottom: 2px solid var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14pt;
}

.table tbody tr:hover {
    background-color: rgba(0, 50, 82, 0.05);
}

.table tbody td {
    font-family: var(--font-body);
    color: var(--primary-gray);
    font-size: 14pt;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14pt;
}

.alert-success {
    background-color: rgba(0, 178, 137, 0.1);
    color: var(--primary-secondary);
    border-left: 4px solid var(--primary-secondary);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(0, 183, 189, 0.1);
    color: var(--secondary-6);
    border-left: 4px solid var(--secondary-6);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 50, 82, 0.05) 0%, rgba(0, 183, 189, 0.05) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-section .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.2);
    transition: all 0.3s ease;
}

.hero-section .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 50, 82, 0.3);
}

.hero-section .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.hero-section .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Content Styling */
.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title i {
    color: var(--secondary-6);
    margin-right: 1rem;
    font-size: 3.2rem;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual Styling */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-icon-container {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-color);
    text-shadow: 0 4px 8px rgba(0, 50, 82, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-secondary) 0%, var(--secondary-8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 178, 137, 0.3);
    animation: float 4s ease-in-out infinite;
}

.floating-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--primary-gray);
    margin-bottom: 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 50, 82, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 50, 82, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-6) 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 50, 82, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 50, 82, 0.3);
}

.feature-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 14pt;
}

/* Hutchinson Responsive Design */
@media (max-width: 768px) {
    .cornerstone-main-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .cornerstone-hero-description {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cornerstone-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cornerstone-btn-primary,
    .cornerstone-btn-secondary {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0;
        text-align: center;
        justify-content: center;
    }
    
    .cornerstone-hero-icon {
        font-size: 6rem;
        margin-top: 3rem;
    }
    
    .cornerstone-section-title {
        font-size: 2rem;
    }
    
    .cornerstone-feature-item {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        min-height: 280px;
    }
    
    .cornerstone-feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .cornerstone-feature-title {
        font-size: 18pt;
        line-height: 26pt;
    }
    
    .cornerstone-feature-text {
        font-size: 12pt;
        line-height: 20pt;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
    
    .cornerstone-section-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .cornerstone-feature-item {
        min-height: 220px;
        padding: 1.25rem 0.75rem;
    }
    
    .cornerstone-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .cornerstone-feature-title {
        font-size: 14pt;
        line-height: 22pt;
    }
    
    .cornerstone-feature-text {
        font-size: 10pt;
        line-height: 16pt;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Signature Styles */
.signature-container {
    border: 2px dashed #ced4da;
    border-radius: 6px;
    padding: 1rem;
    background-color: white;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-container:hover {
    border-color: var(--primary-color);
}

/* Question Response Styles */
.question-response {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.question-response .badge {
    font-size: 0.8rem;
}

/* Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002a3a 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Cornerstone Brand Specific Styles */
.brand-primary {
    color: var(--primary-color) !important;
}

.brand-secondary {
    color: var(--primary-secondary) !important;
}

.brand-accent {
    color: var(--secondary-6) !important;
}

.bg-brand-primary {
    background-color: var(--primary-color) !important;
}

.bg-brand-secondary {
    background-color: var(--primary-secondary) !important;
}

.bg-brand-accent {
    background-color: var(--secondary-6) !important;
}

/* Cornerstone Navigation */
/* Old navbar styles removed - now using sidebar layout */

/* Statistics Cards with Brand Colors */
.stats-card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-1) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 50, 82, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.stats-card-primary .card-body {
    position: relative;
    z-index: 2;
}

.stats-card-secondary {
    background: linear-gradient(135deg, var(--primary-secondary) 0%, var(--secondary-8) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 178, 137, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.stats-card-secondary .card-body {
    position: relative;
    z-index: 2;
}

.stats-card-accent {
    background: linear-gradient(135deg, var(--secondary-6) 0%, var(--secondary-4) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 183, 189, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stats-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.stats-card-accent .card-body {
    position: relative;
    z-index: 2;
}

.stats-card-primary:hover,
.stats-card-secondary:hover,
.stats-card-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 50, 82, 0.2);
}

/* Cornerstone Form Styling */
.cornerstone-form-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Validation Styles */
.text-danger {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-validation-error {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.cornerstone-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cornerstone-form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cornerstone-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 50, 82, 0.08);
    border: 1px solid var(--cornerstone-grey-6);
    margin-bottom: 2rem;
}

.cornerstone-form-header {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin: -1px -1px 0 -1px;
}

.cornerstone-form-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14pt;
    line-height: 22pt;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-form-body {
    padding: 1.5rem;
}

.cornerstone-form-body .row.justify-content-center {
    margin: 0;
}

.cornerstone-form-body .col-lg-8 {
    padding-left: 0;
    padding-right: 0;
}

.cornerstone-form-body .row {
    margin-left: 0;
    margin-right: 0;
}

.cornerstone-form-body .col-sm-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Bootstrap grid will handle col-sm-3 styling */

/* Force two-column layout for form fields */
.cornerstone-form-body .row > .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Ensure proper spacing for form fields */
.cornerstone-form-body .row.g-3 > * {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 576px) {
    .cornerstone-form-body .row > .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.cornerstone-form-group {
    margin-bottom: 1rem;
}

.cornerstone-form-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11pt;
    line-height: 16pt;
    color: var(--cornerstone-primary);
    margin-bottom: 0.25rem;
    display: block;
}

.cornerstone-form-control {
    font-family: var(--font-body);
    font-size: 11pt;
    line-height: 16pt;
    color: var(--cornerstone-gray);
    background-color: white;
    border: 1px solid var(--cornerstone-grey-5);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.cornerstone-form-control:focus {
    border-color: var(--cornerstone-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 82, 0.15);
    outline: none;
}

.cornerstone-form-control::placeholder {
    color: var(--cornerstone-grey-4);
}

.cornerstone-question-item {
    background: white;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.cornerstone-question-item:hover {
    border-color: var(--cornerstone-primary);
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.08);
}

.cornerstone-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.cornerstone-question-text {
    font-family: var(--font-body);
    font-size: 11pt;
    line-height: 18pt;
    color: var(--cornerstone-gray);
    margin: 0;
    flex: 1;
}

.cornerstone-question-badge {
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, var(--cornerstone-blue-8) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 10pt;
    font-weight: 600;
    white-space: nowrap;
}

.cornerstone-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.cornerstone-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-radio-input {
    width: 18px;
    height: 18px;
    accent-color: var(--cornerstone-primary);
}

.cornerstone-radio-label {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 18pt;
    color: var(--cornerstone-gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cornerstone-upload-section {
    background: #f8f9fa;
    border: 1px dashed var(--cornerstone-grey-5);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cornerstone-upload-section:hover {
    border-color: var(--cornerstone-primary);
    background: rgba(0, 50, 82, 0.02);
}

.cornerstone-upload-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12pt;
    line-height: 18pt;
    color: var(--cornerstone-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cornerstone-upload-input {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 18pt;
    color: var(--cornerstone-gray);
    background-color: white;
    border: 1px solid var(--cornerstone-grey-5);
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.cornerstone-upload-help {
    font-family: var(--font-body);
    font-size: 10pt;
    line-height: 16pt;
    color: var(--cornerstone-grey-3);
    margin: 0;
}

.cornerstone-signature-section {
    background: white;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.cornerstone-signature-container {
    position: relative;
}

.cornerstone-signature-boundary {
    position: relative;
    border: 2px solid var(--cornerstone-primary);
    border-radius: 8px;
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cornerstone-signature-instructions {
    text-align: center;
    color: var(--cornerstone-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 50, 82, 0.05);
    border-radius: 4px;
}

.cornerstone-signature-instructions i {
    margin-right: 0.5rem;
}

.cornerstone-signature-canvas {
    border: 2px dashed var(--cornerstone-grey-5);
    border-radius: 6px;
    width: 100%;
    min-width: 300px;
    height: 150px;
    min-height: 150px;
    cursor: crosshair;
    background: white;
    display: block;
    touch-action: none;
    transition: all 0.3s ease;
}

.cornerstone-signature-canvas:hover {
    border-color: var(--cornerstone-primary);
    background: rgba(0, 50, 82, 0.02);
    box-shadow: 0 2px 8px rgba(0, 50, 82, 0.1);
}

.cornerstone-signature-canvas:focus {
    outline: none;
    border-color: var(--cornerstone-primary);
    box-shadow: 0 0 0 3px rgba(0, 50, 82, 0.1);
}

.cornerstone-signature-controls {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cornerstone-btn-clear {
    background: var(--cornerstone-grey-3);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 11pt;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cornerstone-btn-clear:hover {
    background: var(--cornerstone-grey-2);
}

.cornerstone-submit-section {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.cornerstone-btn-submit {
    background: white;
    color: var(--cornerstone-primary);
    border: 2px solid white;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12pt;
    line-height: 18pt;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cornerstone-btn-submit:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 50, 82, 0.2);
}

.cornerstone-info-card {
    background: white;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.cornerstone-info-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12pt;
    line-height: 18pt;
    color: var(--cornerstone-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cornerstone-info-item {
    font-family: var(--font-body);
    font-size: 10pt;
    line-height: 16pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-info-item:last-child {
    margin-bottom: 0;
}

.cornerstone-info-icon {
    color: var(--cornerstone-secondary);
    font-size: 12pt;
}

/* Large Screen Optimization */
@media (min-width: 1200px) {
    .cornerstone-form-container {
        padding: 2rem 3rem;
        max-width: 1600px;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1199px) {
    .cornerstone-form-container {
        padding: 1.5rem 2.5rem;
        max-width: 1200px;
    }
}

/* Mobile Responsive for Forms */
@media (max-width: 768px) {
    .cornerstone-form-container {
        padding: 0.5rem 1rem;
        max-width: 100%;
    }
    
    .cornerstone-form-body {
        padding: 1rem;
    }
    
    .cornerstone-form-body .col-lg-8 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .cornerstone-question-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cornerstone-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cornerstone-radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cornerstone-upload-section {
        padding: 0.75rem;
    }
    
    .cornerstone-signature-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cornerstone-submit-section {
        padding: 1rem;
    }
    
    .cornerstone-info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cornerstone-form-header {
        padding: 0.75rem 1rem;
    }
    
    .cornerstone-form-title {
        font-size: 12pt;
        line-height: 18pt;
    }
    
    .cornerstone-signature-canvas {
        height: 120px;
    }
}

/* Cornerstone Authentication Pages */
.cornerstone-auth-container {
    background: linear-gradient(135deg, var(--cornerstone-light) 0%, #f8f9fa 100%);
    min-height: 100vh;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cornerstone-auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 50, 82, 0.1);
    overflow: hidden;
    border: 1px solid var(--cornerstone-grey-6);
    width: 100%;
    max-width: 450px;
}

.cornerstone-auth-header {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.cornerstone-auth-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20pt;
    line-height: 28pt;
    color: white;
    margin-bottom: 0.5rem;
}

.cornerstone-auth-subtitle {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cornerstone-auth-body {
    padding: 2rem;
}

.cornerstone-form-group {
    margin-bottom: 1rem;
}

.cornerstone-form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12pt;
    line-height: 20pt;
    color: var(--cornerstone-primary);
    margin-bottom: 0.25rem;
    display: block;
}

.cornerstone-form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: var(--cornerstone-gray);
    background-color: white;
    border: 2px solid var(--cornerstone-grey-6);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cornerstone-form-control:focus {
    outline: none;
    border-color: var(--cornerstone-blue-4);
    box-shadow: 0 0 0 3px rgba(0, 153, 178, 0.1);
}

.cornerstone-form-control::placeholder {
    color: var(--cornerstone-grey-3);
}

.cornerstone-form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cornerstone-form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: var(--cornerstone-blue-4);
}

.cornerstone-form-check-label {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0;
}

.cornerstone-form-actions {
    margin-bottom: 1rem;
}

.cornerstone-btn-primary {
    width: 100%;
    background-color: var(--cornerstone-blue-4);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12pt;
    line-height: 20pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 153, 178, 0.3);
    display: inline-block;
    text-align: center;
}

.cornerstone-btn-primary:hover {
    background-color: var(--cornerstone-blue-5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 178, 0.4);
    color: white;
    text-decoration: none;
}

/* SSO Button Styles */
.cornerstone-btn-sso {
    width: 100%;
    background-color: #0078d4;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12pt;
    line-height: 20pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.cornerstone-btn-sso:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
    color: white;
    text-decoration: none;
}

.cornerstone-btn-sso i {
    margin-right: 0.5rem;
}

/* Auth Divider */
.cornerstone-auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.cornerstone-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--cornerstone-grey-6);
}

.cornerstone-auth-divider span {
    background-color: white;
    padding: 0 1rem;
    color: var(--cornerstone-grey-3);
    font-size: 12pt;
    font-weight: 600;
}

.cornerstone-auth-footer {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--cornerstone-grey-6);
}

.cornerstone-auth-footer p {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0;
}

.cornerstone-auth-link {
    color: var(--cornerstone-blue-4);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cornerstone-auth-link:hover {
    color: var(--cornerstone-blue-5);
    text-decoration: underline;
}

.cornerstone-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
}

.cornerstone-field-error {
    color: #dc3545;
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 20pt;
    margin-top: 0.25rem;
    display: block;
}

/* Dropdown Styling */
.dropdown-menu {
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--cornerstone-gray);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--cornerstone-light);
    color: var(--cornerstone-primary);
}

.dropdown-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 153, 178, 0.25);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--cornerstone-grey-6);
}

/* Mobile Responsive for Auth Pages */
@media (max-width: 768px) {
    .cornerstone-auth-container {
        padding: 1rem;
    }
    
    .cornerstone-auth-card {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .cornerstone-auth-body {
        padding: 1.5rem;
    }
    
    .cornerstone-auth-header {
        padding: 1rem;
    }
    
    .cornerstone-auth-title {
        font-size: 18pt;
        line-height: 26pt;
    }
    
    .cornerstone-auth-subtitle {
        font-size: 11pt;
        line-height: 18pt;
    }
    
    .cornerstone-form-control {
        font-size: 11pt;
        line-height: 18pt;
        padding: 0.5rem;
    }
    
    .cornerstone-form-label {
        font-size: 11pt;
        line-height: 18pt;
    }
    
    .cornerstone-btn-primary {
        font-size: 11pt;
        line-height: 18pt;
        padding: 0.75rem 1rem;
    }
    
    .cornerstone-form-group {
        margin-bottom: 0.75rem;
    }
    
    .cornerstone-form-check {
        margin-bottom: 0.75rem;
    }
    
    .cornerstone-form-actions {
        margin-bottom: 0.75rem;
    }
    
    .cornerstone-workflow-list {
        gap: 0.5rem;
    }
    
    .cornerstone-workflow-item {
        padding: 0.25rem 0;
    }
    
    .cornerstone-workflow-item i {
        font-size: 0.9rem;
    }
    
    .cornerstone-workflow-item span {
        font-size: 12pt;
        line-height: 20pt;
    }
}

/* Cornerstone Details Page Styles */
.cornerstone-question-badge.bg-success {
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, var(--cornerstone-blue-8) 100%) !important;
    color: white;
}

.cornerstone-question-badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white;
}

.cornerstone-image-card {
    position: relative;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.cornerstone-image-card:hover {
    border-color: var(--cornerstone-primary);
    box-shadow: 0 4px 15px rgba(0, 50, 82, 0.1);
    transform: translateY(-2px);
}

.cornerstone-image-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.cornerstone-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 50, 82, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cornerstone-image-card:hover .cornerstone-image-overlay {
    opacity: 1;
}

.cornerstone-image-overlay i {
    color: white;
    font-size: 1.5rem;
}

.cornerstone-image-name {
    padding: 0.5rem;
    font-size: 10pt;
    color: var(--cornerstone-gray);
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid var(--cornerstone-grey-6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cornerstone-image-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--cornerstone-grey-6);
    color: var(--cornerstone-grey-3);
    border: 2px dashed var(--cornerstone-grey-4);
}

.cornerstone-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cornerstone-image-placeholder span {
    font-size: 0.8rem;
    text-align: center;
}

.cornerstone-signature-display {
    border: 2px dashed var(--cornerstone-grey-5);
    border-radius: 6px;
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
}

.cornerstone-signature-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
}

.cornerstone-signature-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--cornerstone-grey-3);
    background-color: var(--cornerstone-grey-6);
    border-radius: 4px;
}

.cornerstone-signature-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cornerstone-signature-placeholder span {
    font-size: 0.9rem;
    text-align: center;
}

.cornerstone-signature-info {
    text-align: center;
}

.cornerstone-signature-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12pt;
    line-height: 18pt;
    color: var(--cornerstone-primary);
    margin-bottom: 0.25rem;
}

.cornerstone-signature-date {
    font-family: var(--font-body);
    font-size: 10pt;
    line-height: 16pt;
    color: var(--cornerstone-grey-3);
    margin-bottom: 0;
}

.cornerstone-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.cornerstone-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--cornerstone-grey-6);
}

.cornerstone-stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18pt;
    line-height: 26pt;
    color: var(--cornerstone-primary);
    margin-bottom: 0.25rem;
}

.cornerstone-stat-label {
    font-family: var(--font-body);
    font-size: 10pt;
    line-height: 16pt;
    color: var(--cornerstone-gray);
    margin-bottom: 0;
}

/* Cornerstone List Page Styles */
.cornerstone-stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 50, 82, 0.08);
    border: 1px solid var(--cornerstone-grey-6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.cornerstone-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 50, 82, 0.15);
}

.cornerstone-stats-primary {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
}

.cornerstone-stats-success {
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, var(--cornerstone-blue-8) 100%);
    color: white;
}

.cornerstone-stats-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: white;
}

.cornerstone-stats-info {
    background: linear-gradient(135deg, var(--cornerstone-blue-4) 0%, var(--cornerstone-blue-6) 100%);
    color: white;
}

.cornerstone-stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cornerstone-stats-content {
    flex: 1;
}

.cornerstone-stats-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24pt;
    line-height: 32pt;
    margin-bottom: 0.25rem;
}

.cornerstone-stats-label {
    font-family: var(--font-body);
    font-size: 12pt;
    line-height: 18pt;
    opacity: 0.9;
}

.cornerstone-table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--cornerstone-grey-6);
}

.cornerstone-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 11pt;
    line-height: 16pt;
    margin: 0;
}

.cornerstone-table thead {
    background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-blue-1) 100%);
    color: white;
}

.cornerstone-table thead th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12pt;
    line-height: 18pt;
    border: none;
    white-space: nowrap;
}

.cornerstone-table tbody tr {
    border-bottom: 1px solid var(--cornerstone-grey-6);
    transition: all 0.3s ease;
}

.cornerstone-table tbody tr:hover {
    background-color: rgba(0, 50, 82, 0.02);
}

.cornerstone-table tbody tr:last-child {
    border-bottom: none;
}

.cornerstone-table tbody td {
    padding: 1rem 0.75rem;
    border: none;
    vertical-align: middle;
}

.cornerstone-request-number {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--cornerstone-primary);
    font-size: 11pt;
    line-height: 16pt;
}

.cornerstone-site-id {
    font-family: var(--font-body);
    color: var(--cornerstone-gray);
    font-size: 11pt;
    line-height: 16pt;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.cornerstone-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 10pt;
    font-weight: 600;
    white-space: nowrap;
}

.cornerstone-status-submitted {
    background: linear-gradient(135deg, var(--cornerstone-secondary) 0%, var(--cornerstone-blue-8) 100%);
    color: white;
}

.cornerstone-status-draft {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: white;
}

.cornerstone-status-pending {
    background: linear-gradient(135deg, var(--cornerstone-grey-3) 0%, var(--cornerstone-grey-2) 100%);
    color: white;
}

.cornerstone-date {
    font-family: var(--font-body);
    color: var(--cornerstone-gray);
    font-size: 10pt;
    line-height: 16pt;
}

.cornerstone-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cornerstone-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12pt;
}

.cornerstone-btn-view {
    background: var(--cornerstone-primary);
    color: white;
    border: 1px solid var(--cornerstone-primary);
}

.cornerstone-btn-view:hover {
    background: var(--cornerstone-blue-1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 50, 82, 0.3);
}

.cornerstone-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 50, 82, 0.08);
    border: 1px solid var(--cornerstone-grey-6);
}

.cornerstone-empty-icon {
    font-size: 4rem;
    color: var(--cornerstone-grey-4);
    margin-bottom: 1.5rem;
}

.cornerstone-empty-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20pt;
    line-height: 28pt;
    color: var(--cornerstone-primary);
    margin-bottom: 1rem;
}

.cornerstone-empty-description {
    font-family: var(--font-body);
    font-size: 14pt;
    line-height: 23.2pt;
    color: var(--cornerstone-gray);
    margin-bottom: 2rem;
}

/* Mobile Responsive for List Page */
@media (max-width: 768px) {
    .cornerstone-stats-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cornerstone-stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .cornerstone-stats-number {
        font-size: 20pt;
        line-height: 28pt;
    }
    
    .cornerstone-stats-label {
        font-size: 11pt;
        line-height: 16pt;
    }
    
    .cornerstone-table-responsive {
        font-size: 10pt;
    }
    
    .cornerstone-table thead th,
    .cornerstone-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .cornerstone-site-id {
        font-size: 10pt;
        padding: 0.2rem 0.4rem;
        min-width: 30px;
    }
    
    .cornerstone-empty-state {
        padding: 3rem 1.5rem;
    }
    
    .cornerstone-empty-icon {
        font-size: 3rem;
    }
    
    .cornerstone-empty-title {
        font-size: 18pt;
        line-height: 26pt;
    }
    
    .cornerstone-empty-description {
        font-size: 12pt;
        line-height: 20pt;
    }
}

/* Mobile Responsive for Details Page */
@media (max-width: 768px) {
    .cornerstone-summary-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cornerstone-image-card {
        margin-bottom: 1rem;
    }
    
    .cornerstone-signature-display {
        padding: 0.75rem;
    }
    
    .cornerstone-signature-image {
        max-height: 120px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .card-header,
    .footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    body {
        color: #000 !important;
    }
}

/* ========================================
   CAMERA FUNCTIONALITY STYLES
   ======================================== */

/* Upload Controls */
.cornerstone-upload-controls {
    margin-bottom: 1rem;
}

.cornerstone-upload-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cornerstone-btn-camera,
.cornerstone-btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--cornerstone-primary);
    background: var(--cornerstone-primary);
    color: white;
    border-radius: 8px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.cornerstone-btn-camera:hover,
.cornerstone-btn-gallery:hover {
    background: var(--cornerstone-primary-dark);
    border-color: var(--cornerstone-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cornerstone-btn-gallery {
    background: var(--cornerstone-secondary);
    border-color: var(--cornerstone-secondary);
}

.cornerstone-btn-gallery:hover {
    background: var(--cornerstone-secondary-dark);
    border-color: var(--cornerstone-secondary-dark);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Image Preview Container */
.cornerstone-image-preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cornerstone-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cornerstone-preview-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cornerstone-text-primary);
}

.cornerstone-btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cornerstone-btn-clear-all:hover {
    background: #c82333;
    border-color: #c82333;
}

.cornerstone-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.cornerstone-image-item {
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cornerstone-image-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cornerstone-image-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.cornerstone-image-info {
    padding: 0.5rem;
    font-size: 0.75rem;
}

.cornerstone-image-name {
    display: block;
    font-weight: 600;
    color: var(--cornerstone-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.cornerstone-image-size {
    display: block;
    color: var(--cornerstone-text-secondary);
    font-size: 0.7rem;
}

.cornerstone-btn-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cornerstone-btn-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Camera Modal */
.cornerstone-camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.cornerstone-camera-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cornerstone-camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--cornerstone-primary);
    color: white;
}

.cornerstone-camera-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-camera-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cornerstone-camera-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cornerstone-camera-body {
    padding: 1.5rem;
}

.cornerstone-camera-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cornerstone-camera-video,
.cornerstone-camera-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cornerstone-camera-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cornerstone-btn-capture,
.cornerstone-btn-retake,
.cornerstone-btn-use {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.cornerstone-btn-capture {
    background: var(--cornerstone-primary);
    color: white;
}

.cornerstone-btn-capture:hover {
    background: var(--cornerstone-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cornerstone-btn-retake {
    background: var(--cornerstone-secondary);
    color: white;
}

.cornerstone-btn-retake:hover {
    background: var(--cornerstone-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cornerstone-btn-use {
    background: #28a745;
    color: white;
}

.cornerstone-btn-use:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cornerstone-camera-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Responsive Design for Camera */
@media (max-width: 768px) {
    .cornerstone-camera-modal {
        padding: 0.5rem;
    }
    
    .cornerstone-camera-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .cornerstone-camera-container {
        height: 250px;
    }
    
    .cornerstone-camera-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .cornerstone-btn-capture,
    .cornerstone-btn-retake,
    .cornerstone-btn-use {
        width: 100%;
        max-width: 200px;
    }
    
    .cornerstone-upload-buttons {
        flex-direction: column;
    }
    
    .cornerstone-btn-camera,
    .cornerstone-btn-gallery {
        width: 100%;
    }
    
    .cornerstone-image-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .cornerstone-image-thumbnail {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .cornerstone-camera-container {
        height: 200px;
    }
    
    .cornerstone-camera-header {
        padding: 0.75rem 1rem;
    }
    
    .cornerstone-camera-body {
        padding: 1rem;
    }
    
    .cornerstone-camera-title {
        font-size: 1rem;
    }
}

/* ========================================
   FAULT REPORTING STYLES
   ======================================== */

/* Fault Section */
.cornerstone-fault-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff8f0;
    border: 2px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.cornerstone-fault-toggle {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.cornerstone-fault-toggle .form-check-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #856404;
    font-size: 1rem;
}

.cornerstone-fault-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.cornerstone-fault-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.cornerstone-fault-actions .cornerstone-btn-secondary,
.cornerstone-fault-actions .cornerstone-btn-primary {
    min-width: 150px;
}

/* Fault Form Specific Styles */
.cornerstone-fault-form .cornerstone-form-group {
    margin-bottom: 1rem;
}

.cornerstone-fault-form .cornerstone-form-label {
    font-weight: 600;
    color: var(--cornerstone-text-primary);
    margin-bottom: 0.5rem;
}

.cornerstone-fault-form .cornerstone-form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cornerstone-fault-form .cornerstone-form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.cornerstone-fault-form .cornerstone-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.cornerstone-fault-form textarea.cornerstone-form-control {
    resize: vertical;
    min-height: 80px;
}

.cornerstone-fault-form .form-check {
    margin-bottom: 0.5rem;
}

.cornerstone-fault-form .form-check-input {
    margin-top: 0.25rem;
}

.cornerstone-fault-form .form-check-label {
    font-weight: 500;
    color: var(--cornerstone-text-primary);
    margin-left: 0.5rem;
}

/* Fault Status Indicators */
.fault-status-open {
    color: #dc3545;
    font-weight: 600;
}

.fault-status-in-progress {
    color: #ffc107;
    font-weight: 600;
}

.fault-status-resolved {
    color: #28a745;
    font-weight: 600;
}

.fault-urgency-high {
    color: #dc3545;
    font-weight: 600;
}

.fault-urgency-medium {
    color: #ffc107;
    font-weight: 600;
}

.fault-urgency-low {
    color: #28a745;
    font-weight: 600;
}

/* Fault Report Cards */
.cornerstone-fault-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cornerstone-fault-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cornerstone-fault-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.cornerstone-fault-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--cornerstone-text-primary);
    margin: 0;
}

.cornerstone-fault-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cornerstone-fault-card-body {
    margin-bottom: 1rem;
}

.cornerstone-fault-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.cornerstone-fault-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cornerstone-fault-info-item {
    display: flex;
    flex-direction: column;
}

.cornerstone-fault-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cornerstone-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.cornerstone-fault-info-value {
    font-size: 0.875rem;
    color: var(--cornerstone-text-primary);
    font-weight: 500;
}

/* Fault Report Message Area */
.cornerstone-message-area {
    margin: 1rem 0;
}

.cornerstone-alert-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #d1edff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    color: #0c4a6e;
    font-size: 0.875rem;
    font-weight: 500;
}

.cornerstone-alert-success i {
    color: #059669;
    font-size: 1rem;
}

.cornerstone-alert-danger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #f87171;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 500;
}

.cornerstone-alert-danger i {
    color: #dc2626;
    font-size: 1rem;
}

/* Fault Report Display Styles */
.cornerstone-fault-indicator {
    display: flex;
    justify-content: center;
}

.cornerstone-fault-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cornerstone-fault-has-reports {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cornerstone-fault-no-reports {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cornerstone-fault-card {
    background: #ffffff;
    border: 1px solid var(--cornerstone-grey-6);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cornerstone-fault-card-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    padding: 1rem;
    border-bottom: 1px solid var(--cornerstone-grey-6);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cornerstone-fault-card-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.cornerstone-fault-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cornerstone-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-fault-urgency {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.cornerstone-fault-urgency-high {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cornerstone-fault-urgency-medium {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.cornerstone-fault-urgency-low {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cornerstone-fault-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.cornerstone-fault-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--cornerstone-text-secondary);
}

.cornerstone-fault-card-body {
    padding: 1rem;
}

.cornerstone-fault-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cornerstone-fault-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cornerstone-fault-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cornerstone-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.cornerstone-fault-info-value {
    font-size: 0.875rem;
    color: var(--cornerstone-text-primary);
    font-weight: 500;
    word-break: break-word;
}

.cornerstone-fault-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cornerstone-fault-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cornerstone-fault-flag-yes {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cornerstone-fault-contact {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cornerstone-fault-contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cornerstone-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cornerstone-fault-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.cornerstone-fault-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cornerstone-fault-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cornerstone-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cornerstone-fault-contact-value {
    font-size: 0.875rem;
    color: var(--cornerstone-text-primary);
    font-weight: 500;
}

.cornerstone-fault-images {
    margin-top: 1rem;
}

.cornerstone-fault-images-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cornerstone-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design for Fault Reports */
@media (max-width: 768px) {
    .cornerstone-fault-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cornerstone-fault-card-meta {
        align-items: flex-start;
    }
    
    .cornerstone-fault-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cornerstone-fault-contact-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cornerstone-fault-flags {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive Design for Fault Reporting */
@media (max-width: 768px) {
    .cornerstone-fault-section {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .cornerstone-fault-form {
        padding: 1rem;
    }
    
    .cornerstone-fault-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cornerstone-fault-actions .cornerstone-btn-secondary,
    .cornerstone-fault-actions .cornerstone-btn-primary {
        width: 100%;
    }
    
    .cornerstone-fault-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cornerstone-fault-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cornerstone-fault-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .cornerstone-fault-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cornerstone-fault-section {
        padding: 0.75rem;
    }
    
    .cornerstone-fault-form {
        padding: 0.75rem;
    }
    
    .cornerstone-fault-toggle {
        padding: 0.75rem;
    }
    
    .cornerstone-fault-card {
        padding: 1rem;
    }
}
