* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3c2c;
    --primary-dark: #0f2b1f;
    --primary-light: #2d5a42;
    --accent: #d4a13e;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-800: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-dark);
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--gray-100);
    min-height: 100vh;
    padding-bottom: 70px;
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

.btn-secondary {
    background: var(--gray-300);
    color: var(--gray-800);
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-small {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.demo-accounts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.demo-list {
    margin-top: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--gray-800);
    margin-top: 8px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
}

.nav-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.finance-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.total-income {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.growth-positive {
    color: var(--success);
}

.warning-card {
    background: #fff3cd;
    border-left: 4px solid var(--warning);
}

.employee-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.dummy-feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    border-radius: 24px;
    padding: 24px;
    margin: 16px;
    border: 2px dashed var(--accent);
}

.dummy-badge {
    background: var(--accent);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 12px;
}

.btn-interested {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-top: 16px;
}

.clock-section {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.clock-in-box, .clock-out-box {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 20px;
}

.clock-time {
    font-size: 20px;
    font-weight: bold;
    margin: 8px 0;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.warning-text {
    color: var(--danger);
    font-weight: bold;
}

.success-text {
    color: var(--success);
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th, .attendance-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.attendance-table th {
    background: var(--primary);
    color: white;
}