/* Home Page Styling */

/* Force all Unicode symbols to render as text (not emoji) on macOS/iOS */
* { font-variant-emoji: text; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #c41e3a;
    --primary-dark: #8b0000;
    --secondary-color: #dc143c;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --border-color: #ddd;
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* HTML & Body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: white;
}

/* Utility Classes */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: 36px;
    color: #c41e3a;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #c41e3a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.nav-signin {
    background: white;
    color: #c41e3a !important;
    border: 2px solid #c41e3a;
    padding: 8px 20px;
}

.nav-signin:hover {
    background: #c41e3a;
    color: white !important;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    background: white;
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-lg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 15px;
}

/* Hero Graphics */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: float var(--transition-slow) ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Statistics Section */
.statistics {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-2xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid #ddd;
    border-top: 4px solid #c41e3a;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
    border-color: #c41e3a;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Benefits Section */
.benefits {
    background-color: white;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
}

.benefit-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #c41e3a;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-light);
}

/* Benefits Graphics */
.benefits-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-graphic {
    position: relative;
    width: 250px;
    height: 250px;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    animation: pulse var(--transition-slow) ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    top: 0;
    left: 0;
    opacity: 0.7;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    bottom: 20px;
    right: 20px;
    opacity: 0.6;
    animation-delay: 0.2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b 0%, #dc143c 100%);
    top: 100px;
    right: 0;
    opacity: 0.5;
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* User Roles Section */
.user-roles {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    background: white;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
}

.role-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid #ddd;
    border-left: 4px solid #c41e3a;
    text-align: center;
    transition: all var(--transition-normal);
}

.role-card:hover:not(.empty) {
    transform: translateY(-5px);
    border-color: #c41e3a;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
}

.role-card.empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(139, 0, 0, 0.08) 100%);
    border-style: dashed;
    border-color: #c41e3a;
}

.role-icon,
.role-placeholder {
    font-size: 42px;
    margin-bottom: var(--spacing-md);
}

.role-card h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.role-card > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.placeholder-text {
    font-style: italic;
    color: var(--text-light);
}

.role-features {
    list-style: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-light);
}

.role-features li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.role-features li:last-child {
    border-bottom: none;
}

.role-features li::before {
    content: '✓ ';
    color: #c41e3a;
    font-weight: 700;
    margin-right: var(--spacing-sm);
}

/* Call to Action Section */
.call-to-action {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: var(--spacing-3xl) var(--spacing-md);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 40px;
    font-size: 16px;
}

.cta-buttons .btn-secondary {
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-lg);
    border-top: 4px solid #c41e3a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    font-size: 16px;
    color: #c41e3a;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: #c41e3a;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #c41e3a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive Design */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-top: 2px solid #c41e3a;
        z-index: 150;
        padding: 8px 0;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-btn {
        margin: 8px 16px;
        text-align: center;
        border-radius: var(--radius-md);
    }
    .nav-signin {
        background: white;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 var(--spacing-md);
        position: relative;
    }

    .nav-links {
        top: 60px;
    }

    .logo {
        gap: 8px;
        font-size: 15px;
    }

    .logo-icon {
        width: 26px;
        height: 26px;
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-sm);
        gap: var(--spacing-xl);
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-logo {
        max-width: 250px;
    }

    .statistics {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .features {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .benefits {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .benefits-list {
        gap: var(--spacing-md);
    }

    .benefit-item {
        gap: var(--spacing-sm);
    }

    .benefit-check {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .benefit-text h4 {
        font-size: 14px;
    }

    .user-roles {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .role-card {
        padding: var(--spacing-lg);
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 14px;
    }

    .call-to-action {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Minimum Width Support (360px) */
@media (max-width: 360px) {
    .nav-links a {
        font-size: 12px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-title {
        font-size: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .features-grid {
        gap: var(--spacing-sm);
    }

    .stats-container {
        gap: var(--spacing-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Expandable Time Log Rows ─── */
.tl-summary-row td {
    vertical-align: middle;
}
.tl-summary-row:hover {
    background: var(--light-bg);
}
.tl-summary-expanded {
    background: var(--light-bg);
}
.tl-hours-pill {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(196, 30, 58, 0.08);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.88rem;
}
.tl-expand-cell {
    width: 80px;
    text-align: center;
}
.tl-view-btn {
    font-size: 0.82rem !important;
    padding: 4px 14px !important;
}
.tl-detail-row td {
    padding: 0 !important;
}
.tl-detail-cell {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}
.tl-detail-wrap {
    padding: 10px 16px 14px;
}
.tl-inner-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.tl-inner-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.tl-inner-table tbody td {
    padding: 11px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.tl-inner-table tbody tr:last-child td {
    border-bottom: none;
}
.tl-row-open {
    background: rgba(243, 156, 18, 0.06);
}
.tl-pending-text {
    color: var(--warning-color);
    font-style: italic;
}

/* Today's date display for employees */
.ft-today-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

