:root {
    --primary-color: #0b4b8a;
    --secondary-color: #e6f0fa;
    --accent-color: #d94a4a;
    --text-color: #333333;
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --warning-color: #f59e0b;
    --success-color: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.site-header nav a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    margin: 3rem 0;
}

.hero-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* App Section */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.form-panel, .list-panel {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-panel h3, .list-header h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.total-value {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--success-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #083868;
}

/* Vouchers */
.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.voucher-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    background: #fafafa;
}

.voucher-card.urgent {
    border-left: 4px solid var(--accent-color);
}

.voucher-card.warning {
    border-left: 4px solid var(--warning-color);
}

.voucher-card.safe {
    border-left: 4px solid var(--success-color);
}

.vc-main h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.vc-main p {
    font-size: 0.9rem;
    color: #666;
}

.vc-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.vc-expiry {
    text-align: right;
}

.vc-expiry .days {
    font-size: 1.2rem;
    font-weight: bold;
}

.vc-expiry .urgent-text {
    color: var(--accent-color);
}

.btn-delete {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
}

.btn-delete:hover {
    color: var(--accent-color);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #888;
    background: #fdfdfd;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

/* Info Section */
.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-section h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: #444;
}

.info-section p, .info-section ul {
    margin-bottom: 1rem;
}

.info-section ul {
    padding-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    .voucher-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .vc-expiry {
        text-align: left;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .site-footer a {
        margin: 0 0.5rem;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
