/* style.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --brand-dark: #200E0E; /* Outer background */
    --brand-gold: #c3a35e; /* Luxury gold accent */
    --brand-light: #faf9f6; /* Off-white container background */
    --border-color: #e2dfd8;
    --text-color: #333333; 
    --text-muted: #666666;
    
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--brand-dark);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: normal;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Header/Logo */
.brand-header {
    text-align: center;
    margin-bottom: 40px;
}
.brand-header img {
    max-height: 140px;
    object-fit: contain;
}

/* Forms */
.form-card {
    background: var(--brand-light); /* Off-white background */
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #ffffff;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 1px var(--brand-gold);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--brand-dark);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-gold);
}

.btn-danger {
    background-color: #cc3333;
    color: #ffffff;
    width: auto;
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background-color: #aa2222;
}

/* Alerts */
.alert {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 2px;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Grid for Form */
.form-row {
    display: flex;
    gap: 20px;
}
.form-col {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-card {
        padding: 20px;
    }
}

/* Admin Dashboard Elements */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}
.logout-btn {
    color: var(--brand-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.logout-btn:hover {
    color: #ffffff;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--border-color);
}
.table th, .table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.table th {
    background-color: #f5f4f0;
    font-weight: 500;
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background-color: #faf9f6;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.pagination-links {
    display: flex;
    gap: 5px;
}
.page-link {
    display: inline-block;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--brand-dark);
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.page-link:hover {
    background: #f5f4f0;
    border-color: var(--brand-gold);
}
.page-link.active {
    background: var(--brand-dark);
    color: #ffffff;
    border-color: var(--brand-dark);
}
