/* Demo Landing Page Styles */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2C2C2C;
    background: #FFF8F0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Demo Hero Section */
.demo-hero {
    background: #D2691E;
    padding: 4rem 0 5rem 0;
    text-align: center;
    color: white;
}

.demo-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.demo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.demo-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.demo-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

/* Persona Selection Grid */
.persona-selection {
    padding: 4rem 0;
    background: #FFF8F0;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.persona-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00, #D2691E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.persona-card:hover::before {
    transform: scaleX(1);
}

.persona-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(210, 105, 30, 0.15);
    border-color: #FF8C00;
}

.persona-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(210, 105, 30, 0.25);
}

.persona-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #2C2C2C;
}

.persona-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #505050;
    margin: 0 0 1.5rem 0;
}

.persona-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.persona-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #505050;
}

.persona-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.persona-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF8C00, #D2691E);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.persona-cta:hover {
    background: linear-gradient(135deg, #FF7F00, #CD5C5C);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

/* Demo Info Section */
.demo-info {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid rgba(210, 105, 30, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #2C2C2C;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #505050;
    margin: 0;
}

/* Back Link */
.back-link {
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #D2691E !important;
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-hero {
        padding: 3rem 0 4rem 0;
    }
    
    .demo-hero h1 {
        font-size: 2.25rem;
    }
    
    .demo-subtitle {
        font-size: 1.1rem;
    }
    
    .persona-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .persona-card {
        padding: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .demo-hero {
        padding: 2.5rem 0 3rem 0;
    }
    
    .demo-hero h1 {
        font-size: 1.875rem;
    }
    
    .demo-subtitle {
        font-size: 1rem;
    }
    
    .persona-card {
        padding: 1.5rem;
    }
    
    .persona-card h2 {
        font-size: 1.5rem;
    }
    
    .persona-icon {
        width: 64px;
        height: 64px;
    }
    
    .persona-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* Dashboard Layout Styles (for persona pages) */
.dashboard-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    margin-bottom: 2rem;
}

.dashboard-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #505050;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(210, 105, 30, 0.1);
    color: #D2691E;
}

.dashboard-content {
    padding: 2rem 0 4rem 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Responsive KPI grid - always one line until minimum */
@media (max-width: 1400px) {
    .kpi-grid {
        gap: 1rem;
    }
}

@media (max-width: 1200px) {
    .kpi-grid {
        gap: 0.75rem;
    }
}

@media (max-width: 1000px) {
    .kpi-grid {
        gap: 0.5rem;
    }
    .kpi-card {
        padding: 1rem;
    }
}

/* Minimum width before horizontal scroll */
@media (max-width: 800px) {
    .kpi-grid {
        min-width: 800px;
    }
}

.kpi-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #D2691E;
}

.kpi-label {
    font-size: 0.875rem;
    color: #707070;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive KPI card text sizing */
@media (max-width: 1200px) {
    .kpi-value {
        font-size: 1.75rem;
    }
    .kpi-label {
        font-size: 0.8rem;
    }
    .kpi-change {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {
    .kpi-value {
        font-size: 1.5rem;
    }
    .kpi-label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    .kpi-change {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .kpi-value {
        font-size: 1.25rem;
    }
    .kpi-label {
        font-size: 0.7rem;
    }
}

.kpi-change.positive {
    color: #10B981;
}

.kpi-change.negative {
    color: #EF4444;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2C2C2C;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D2691E;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.section-action:hover {
    color: #FF8C00;
    transform: translateX(4px);
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #FF8C00, #D2691E);
    color: white;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.calendar-controls {
    display: flex;
    gap: 0.5rem;
}

.calendar-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.calendar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-btn.active {
    background: white;
    color: #D2691E;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #E5E5E5;
}

.calendar-day-header {
    background: #F5F5F5;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #505050;
}

.calendar-day {
    background: white;
    padding: 1rem;
    min-height: 120px;
    position: relative;
}

.day-number {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
}

.calendar-day.other-month .day-number {
    color: #AAAAAA;
}

.class-block {
    background: linear-gradient(135deg, #FF8C00, #D2691E);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.class-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.4);
}

.class-block-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.class-block-time {
    opacity: 0.9;
    font-size: 0.7rem;
}

/* Compliance Styles */
.compliance-grid {
    display: grid;
    gap: 1.5rem;
}

.compliance-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 8px;
    border-left: 4px solid #10B981;
}

.compliance-item.warning {
    border-left-color: #F59E0B;
}

.compliance-item.error {
    border-left-color: #EF4444;
}

.compliance-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.compliance-details {
    flex: 1;
}

.compliance-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2C2C2C;
}

.compliance-meta {
    font-size: 0.875rem;
    color: #707070;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: #D1FAE5;
    color: #064E3B; /* Darker green for better contrast */
}

.status-badge.warning {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E5E5E5;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #707070;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2C2C2C;
}

.modal-body {
    padding: 2rem;
}

/* Toast Notification */
.toast {
    font-family: 'Inter', sans-serif;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Persona Indicator */
.persona-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Keyboard Navigation Support */
.keyboard-nav *:focus {
    outline: 2px solid #D2691E;
    outline-offset: 2px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    /* Stack section header title and subtitle vertically */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
        margin: 0;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day-header {
        display: none;
    }
    
    .calendar-day {
        border-bottom: 1px solid #E5E5E5;
        min-height: auto;
        padding: 1rem;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .persona-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .persona-indicator span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 1rem;
        max-width: calc(100vw - 2rem) !important; /* Prevent overflow */
        width: calc(100% - 2rem);
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
    }
    
    .classes-grid {
        grid-template-columns: 1fr !important;
    }
    
    .data-table .table-row {
        font-size: 0.9rem;
    }
    
    .chart-container {
        min-height: 180px !important;
    }
}
