@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


:root{

    --primary:#1B1B1B;
    --secondary:#C89B5B;
    --accent:#E8D8C3;
    --success:#5E8B5A;
    --background:#F8F6F2;
    --surface:#FFFDF9;
    --text:#2D2118;
    --text-muted:#8A7B70;
    --border:#EFE8DC;

}

/* ==========================================
        RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--background);
    color:var(--text);
    overflow-x:hidden;
    position:relative;

}

/* ==========================================
        SHARED ALERTS
========================================== */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: #E9F3E8;
    color: var(--success);
    border: 1px solid var(--success);
}

.alert.error {
    background: #FBEAE9;
    color: #D9534F;
    border: 1px solid #D9534F;
}

.empty-state {
    color: var(--text-muted);
    padding: 20px 0;
}

/* ===============================
    TEXT SELECTION / EDITING RESTRICTION
=============================== */

/* Enable text selection and caret only on form inputs/textarea */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    caret-color: auto;
}

/* Preserve default text selection behavior for all other elements */
*,
*::before,
*::after {
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

/* Prevent contenteditable inherited behavior */
[contenteditable] {
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    caret-color: auto !important;
}

/* ===============================
    RESPONSIVE UTILITIES
=============================== */

/* Responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Responsive grid */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* Responsive modal */
.modal-responsive {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Mobile-first spacing */
.section-padding {
    padding: 60px 20px;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 90px 40px;
    }
}

/* ===============================
    ACCESSIBILITY IMPROVEMENTS
=============================== */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
        --text-muted: #333;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Form accessibility */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
}

input:invalid,
textarea:invalid,
select:invalid {
    border-color: var(--danger);
}

input:valid,
textarea:valid,
select:valid {
    border-color: var(--border);
}

/* Button accessibility */
button:disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status announcements */
[role="status"],
[role="alert"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Visible on focus */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--surface);
    color: var(--text);
    z-index: 1000;
}

/* ===============================
    CONSISTENT BUTTON STYLES
=============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md, 12px);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--ac-gold-dark, #a67c29);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 155, 91, 0.3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--background);
    border-color: var(--secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c9302c;
}

/* ===============================
    CONSISTENT FORM STYLES
=============================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 10px);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(200, 155, 91, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===============================
    CONSISTENT CARD STYLES
=============================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 18px);
    box-shadow: var(--shadow-soft, 0 2px 10px rgba(27, 27, 27, 0.05));
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

/* ===============================
    CONSISTENT TABLE STYLES
=============================== */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--background);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--background);
}

/* ===============================
    CONSISTENT BADGE STYLES
=============================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-success {
    background: #E9F3E8;
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFC107;
}

.badge-danger {
    background: #FBEAE9;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-info {
    background: #E4EAF7;
    color: #3498db;
    border: 1px solid #3498db;
}

.badge-primary {
    background: var(--accent);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* ===============================
    LOADING STATES
=============================== */

.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-muted);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================
    EMPTY STATES
=============================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    line-height: 1.5;
}