/* Reset and base */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-dark: #071428;
    --card-bg: rgba(255,255,255,0.03);
    --accent: #ffe29a;
    --accent-2: #ff9f1c;
    --muted: #c2d5e8;
}
body { font-family: 'Cormorant Garamond', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: radial-gradient(ellipse at bottom right, rgba(13,59,102,0.12) 0%, rgba(8,20,36,0.95) 60%), #071428; color: #e6eef8; line-height: 1.6; background-attachment: fixed; }
a { color: inherit; text-decoration: none; }

/* Starfield subtle overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 200px 200px, 400px 400px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 1; }
.site-header { background: transparent; color: var(--accent); padding: 1rem 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--accent); text-shadow: 0 2px 12px rgba(0,0,0,0.6); transition: transform 0.2s ease; }
.brand:hover { transform: translateY(-2px); }
.brand .logo { height: 75px; width: auto; max-width: 75px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.brand-text { display: flex; flex-direction: column; }
.brand-text span:first-child { font-size: 1.75rem; }
.brand .tagline { display: block; font-size: 0.75rem; color: rgba(255,235,180,0.85); font-weight: 400; margin-top: 2px; }
nav a { color: var(--muted); margin-left: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.2rem; border-radius: 999px; border: none; cursor: pointer; transition: transform 0.14s ease, background 0.14s ease; }
.button-primary { background: linear-gradient(180deg, var(--accent-2), #ffb66a); color: #04151f; box-shadow: 0 6px 18px rgba(255,159,28,0.14); }
.button-secondary { background: transparent; color: var(--accent); border: 1px solid rgba(255,255,255,0.06); }
.button:hover { transform: translateY(-2px); }

/* Smooth animations */
.fade-in { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform: translateY(0);} }
.hero-section { padding: 4rem 0; }
.hero-card { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border-radius: 24px; box-shadow: 0 30px 80px rgba(2,6,23,0.7); padding: 3rem; text-align: center; border: 1px solid rgba(255,255,255,0.03); backdrop-filter: blur(6px); }
.hero-card h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--accent); text-shadow: 0 6px 24px rgba(0,0,0,0.7); }
.hero-card p { max-width: 720px; margin: 0 auto 2rem; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 320px); gap: 1.2rem; margin: 2.2rem auto; align-items: stretch; justify-items: center; justify-content: center; max-width: 1080px; }
.feature-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius: 16px; padding: 1.6rem; box-shadow: 0 12px 36px rgba(2,6,23,0.6); display:flex; flex-direction:column; gap:0.6rem; align-items:center; justify-content:center; border: 1px solid rgba(255,255,255,0.03); transition: transform 0.18s ease, box-shadow 0.18s ease; text-align:center; min-height:140px; max-width:360px; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(2,6,23,0.7); }
.feature-card::before { content: '\2606'; /* star glyph */
    display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background: linear-gradient(180deg, rgba(255,159,28,0.12), rgba(255,235,140,0.06)); color: var(--accent); font-size:20px; margin:0 auto 10px auto; }
.feature-card h2 { margin: 0; font-size: 1.05rem; color: var(--accent); }
.feature-card p { margin: 0; color: var(--muted); font-size:0.96rem; }

@media (max-width: 1040px) {
    .features { grid-template-columns: repeat(2, 320px); max-width: 720px; }
}
@media (max-width: 680px) {
    .features { grid-template-columns: 1fr; max-width: 420px; }
    .feature-card { align-items:flex-start; text-align:left; }
    .feature-card::before { margin-right: 0.6rem; }
}
.footer { padding: 2rem 0; color: #657089; }
.card { background: rgba(255,255,255,0.02); border-radius: 18px; padding: 1.6rem; box-shadow: 0 12px 40px rgba(2,6,23,0.6); margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,0.02); }
.dashboard-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0; }
.dashboard-header h1 { font-size: 2rem; }
form { display: grid; gap: 1rem; }
.label { font-weight: 600; color: var(--muted); }
input[type="text"], input[type="date"], input[type="time"], input[type="file"] { width: 100%; padding: 0.85rem 1rem; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; background: rgba(255,255,255,0.02); color: var(--muted); }
.payment-note { font-size: 0.95rem; color: var(--muted); margin-top: -0.25rem; }
.request-table { display: grid; gap: 0.75rem; }
.request-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; align-items: center; padding: 0.9rem 1rem; border-radius: 16px; background: rgba(255,255,255,0.02); }
.request-row.header { font-weight: 700; background: rgba(255,255,255,0.03); }
.request-row div { overflow-wrap: anywhere; }

/* Admin table styles */
.admin-panel {
    width: 100%;
    overflow-x: auto;
    background: radial-gradient(ellipse at center, rgba(13,59,102,0.06) 0%, rgba(30,95,159,0.03) 40%), linear-gradient(180deg, #081425 0%, #0d2740 100%);
    padding: 1.5rem;
    border-radius: 18px;
    color: #e6eef8;
}
.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}
.admin-table thead th {
    text-align: left;
    padding: 0.9rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #dbe9ff;
    background: rgba(7,20,40,0.96);
    position: sticky;
    top: 0;
    z-index: 2;
}
.admin-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
    color: #cbe3ff;
    white-space: nowrap;
}
.admin-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.01); }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.admin-table td a.pdf-icon, .admin-table td a { display: inline-flex; align-items: center; }
.slip-thumb { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.pdf-icon { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; background: rgba(255,255,255,0.02); border-radius: 8px; color: #fff; }
.pdf-icon svg { width: 18px; height: 18px; }
.pdf-upload-form { display:flex; gap:0.5rem; align-items:center; }
.action-button { padding:0.5rem 0.75rem; border-radius:10px; background:#ff9f1c; color:#04151f; border:none; cursor:pointer; }

/* Footer polish */
.footer { padding: 2rem 0; color: #b9cfe8; border-top: 1px solid rgba(255,255,255,0.02); }
.footer .container { display: flex; align-items: center; justify-content: center; text-align: center; }
.footer .small { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
    .slip-thumb { width: 72px; height: 56px; }
    .admin-panel { padding: 1rem; }
    .admin-table { min-width: unset; }
    .admin-table thead th, .admin-table tbody td { padding: 0.75rem 0.75rem; }
    .admin-table tbody td { white-space: normal; }
}
.message { border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.message-success { background: #e8f9f3; color: #1a6f4f; border: 1px solid #9ce2c7; }
.message-error { background: #fdeaeb; color: #8a1e2a; border: 1px solid #f5b3be; }

@media (max-width: 800px) {
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .request-row { grid-template-columns: 1fr; }
    .request-row.header { display: none; }
}
