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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-box h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-box h2 {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
}

.btn-success {
    background: #38a169;
    color: white;
}

.btn-info {
    background: #4299e1;
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 6px 12px;
    background: #edf2f7;
    border-radius: 4px;
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
}

.btn-logout {
    color: #e53e3e !important;
    font-size: 14px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.terminal-badge {
    display: inline-block;
    background: #edf2f7;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 32px;
}

.stat-content h3 {
    font-size: 14px;
    color: #718096;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-card.success .stat-number { color: #38a169; }
.stat-card.warning .stat-number { color: #d69e2e; }
.stat-card.info .stat-number { color: #3182ce; }

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 18px;
    color: #2c3e50;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-paid {
    background: #c6f6d5;
    color: #276749;
}

.status-pending {
    background: #fefcbf;
    color: #975a16;
}

/* Summary List */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.summary-date {
    font-weight: 500;
    color: #2c3e50;
}

.summary-stats {
    display: flex;
    gap: 20px;
    color: #718096;
}

.summary-stats strong {
    color: #2c3e50;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

.demo-info {
    margin-top: 20px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 13px;
}