:root {
    /* Modern Color Palette - Saffron & Slate */
    --primary-color: #F97316;
    /* Vibrant Orange/Saffron */
    --primary-gradient: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    --secondary-color: #0F172A;
    /* Slate 900 - Deep, rich dark */
    --bg-color: #F1F5F9;
    /* Slate 100 - Cool light grey */
    --card-bg: #FFFFFF;

    /* Text Colors */
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */
    --border-color: #E2E8F0;
    /* Slate 200 */

    /* Semantic Colors */
    --accent-color: #8B5CF6;
    /* Violet - Spiritual accent */
    --danger-color: #EF4444;
    /* Red 500 */
    --success-color: #10B981;
    /* Emerald 500 */
    --warning-color: #F59E0B;
    /* Amber 500 */

    /* Spacing & Layout */
    --sidebar-width: 280px;
    --header-height: 80px;

    /* Modern Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(249, 115, 22, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.75em;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Components: Buttons */
.btn-donate,
.btn-view,
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.btn-donate {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-view {
    padding: 8px 20px;
    background: #EFF6FF;
    /* Blue 50 */
    color: #2563EB;
    /* Blue 600 */
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.btn-view:hover {
    background: #DBEAFE;
    color: #1D4ED8;
    transform: translateY(-1px);
}

/* Components: Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #F1F5F9;
    background-color: #F8FAFC;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input::placeholder {
    color: #94A3B8;
}

input:hover,
select:hover {
    border-color: #E2E8F0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

/* Modern Horizontal Layout Utility */
.form-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.form-row label {
    margin-bottom: 0;
    min-width: 140px;
    font-size: 1rem;
}

/* Modern Segmented Control Styling */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    background: #F1F5F9;
    padding: 6px;
    border-radius: var(--radius-md);
    width: fit-content;
    border: 1px solid var(--border-color);
}

.radio-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    border-radius: calc(var(--radius-md) - 6px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    margin-bottom: 0 !important;
    /* Override general label margin */
    white-space: nowrap;
}

.radio-item:hover {
    color: var(--primary-color);
}

.radio-item:has(input:checked) {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    border-color: rgba(249, 115, 22, 0.1);
}

.radio-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Public Frontend */
.header-hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

.header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.donation-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
}

/* Nice top border accent */
.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* Admin Styles */
.admin-body {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    /* Light sidebar for cleaner look? let's stick to dark for contrast */
    background: #111827;
    /* Gray 900 */
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.sidebar-menu {
    padding: 20px 15px;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    color: #9CA3AF;
    /* Gray 400 */
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px 50px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid var(--bg-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--bg-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

th {
    text-align: left;
    padding: 18px 24px;
    background: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #F8FAFC;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.status-Success {
    background: #DCFCE7;
    color: #166534;
}

/* Green 100/800 */
.status-Failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* Red 100/800 */
.status-Pending {
    background: #FEF3C7;
    color: #92400E;
}

/* Amber 100/800 */
.status-Cancelled {
    background: #F1F5F9;
    color: #475569;
}

/* Slate 100/600 */

/* Modal */
#detailModal {
    backdrop-filter: blur(8px);
    background-color: rgba(15, 23, 42, 0.4);
    /* Slate 900 with opacity */
}