/* static/css/style.css */

/* --- Foundational Styles --- */
 :root {
    --font-main: 'Inter', sans-serif;
    --c-text-primary: #111111;
    --c-text-secondary: #080808;
    --c-accent: #25eba6;
    --c-accent-hover: #1d4ed8;
    --c-danger: #dc2626;
    --c-success: #16a34a;
    --c-warning: #f59e0b;
    --c-border: rgba(14, 13, 13, 0.1);
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
} 
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-main);
    color: var(--c-text-primary);
    /* background-color: #f3c547; */
    overflow-x: hidden;
}
a { color: var(--c-accent); text-decoration: none; }


/* --- Animated Background --- */
.background-animation {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: linear-gradient(-45deg, #fff8f4, #fdfff0, #ffebec, #e7fffa);
    background: rgb(241, 214, 94);
    background-size: 400% 400%; 
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} 

/* --- Glassmorphism Effect --- */
.glass {
    background: rgba(23, 23, 23, 0.782);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* --- Main Layout --- */
.app-container { display: flex; min-height: 100vh; }
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-left: 60px; /* Collapsed sidebar width */
    transition: padding-left 0.3s ease;
}
.page-content { padding: 2rem; flex-grow: 1; }
.main-card-single { padding: 2rem; margin: 1rem 0; }

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 60px;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    transition: width 0.3s ease;
    z-index: 100;
}
.sidebar:hover { width: 250px; }
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.sidebar-logo { font-size: 1.5rem; }
.sidebar-title { display: none; }
.sidebar:hover .sidebar-title { display: block; }
.sidebar-nav { flex-grow: 1; overflow-y: auto; }
.nav-menu { list-style: none; }
.nav-category {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--c-text-secondary);
    text-transform: uppercase;
    display: none;
}
.sidebar:hover .nav-category { display: block; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.75rem;
    color: var(--c-text-secondary);
    white-space: nowrap;
}
.nav-link:hover { background: var(--c-border); color: var(--c-text-primary); }
.nav-link-text { display: none; }
.sidebar:hover .nav-link-text { display: inline; }
.sidebar-footer { padding-top: 1rem; border-top: 1px solid var(--c-border); }

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1rem 2rem 0;
}
.header-society-name { font-weight: 600; }
.header-actions { display: flex; gap: 1rem; }
.header-action-btn { font-size: 1.2rem; color: var(--c-text-secondary); }

/* --- Footer --- */
.footer-static, .footer-dynamic { padding: 1rem 2rem; margin: 0 2rem 1rem; }
.society-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 1rem;
}
.footer-section h4 { margin-bottom: 0.5rem; color: var(--c-text-primary); }
.footer-section p, .footer-section li { font-size: 0.9rem; color: var(--c-text-secondary); }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { font-size: 1.2rem; }

/* --- List Page & Table Styles --- */
.list-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.list-page-actions { display: flex; align-items: center; gap: 1rem; }
.search-wrapper { position: relative; }
.search-wrapper i { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--c-text-secondary); }
.live-search {
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    color: var(--c-text-primary);
}
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.data-table th { font-weight: 600; color: var(--c-text-secondary); }
.data-table .actions { text-align: right; }
.empty-cell { text-align: center; padding: 2rem; color: var(--c-text-secondary); }

/* --- Buttons & Pills --- */
.btn { padding: 0.5rem 1rem; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; }
.btn-primary { background: var(--c-accent); color: white; }
.btn-primary:hover { background: var(--c-accent-hover); }
.btn-secondary { background: var(--c-border); color: var(--c-text-primary); }
.btn-action { background: none; border: none; font-size: 1.1rem; color: var(--c-text-secondary); cursor: pointer; }
.btn-action:hover { color: var(--c-accent); }
.btn-danger { color: var(--c-danger); }
.link-button { background: none; border: none; color: var(--c-accent); cursor: pointer; }
.status-pill { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.status-active, .status-paid, .status-resolved { background: #166534; color: #bbf7d0; }
.status-inactive, .status-overdue, .status-open { background: #991b1b; color: #fecaca; }
.status-pending { background: #92400e; color: #fde68a; }

/* --- Forms (including Auth) --- */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; }
.auth-card { width: 100%; max-width: 450px; padding: 2.5rem; text-align: center; }
.auth-title { margin-bottom: 2rem; }
.auth-card p { color: var(--c-text-secondary); margin-bottom: 2rem; }
.common-form, .auth-form { display: flex; flex-direction: column; gap: 1rem; }
.common-form p, .auth-form p { display: flex; flex-direction: column; text-align: left; }
.common-form label, .auth-form label { margin-bottom: 0.5rem; color: var(--c-text-secondary); }
.common-form input, .common-form select, .common-form textarea {
    background: var(--c-border); border: 1px solid var(--c-border);
    padding: 0.75rem; border-radius: 8px; color: var(--c-text-primary);
}
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }

/* --- Modals & Toasts --- */
.swal2-popup { background: #171717 !important; color: var(--c-text-primary) !important; border: 1px solid var(--c-border) !important; }
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; }
.toast {
    padding: 1rem 1.5rem; margin-bottom: 1rem;
    border-radius: 8px; color: white;
    box-shadow: var(--shadow-sm); opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}
.toast.success { background-color: var(--c-success); }
.toast.error { background-color: var(--c-danger); }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

/* --- Dashboard --- */
.dashboard-welcome { margin-bottom: 2rem; font-size: 1.2rem; }
.dashboard-charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.chart-card { background: rgba(0,0,0,0.2); padding: 1.5rem; border-radius: 12px; }
.chart-card h3 { text-align: center; margin-bottom: 1.5rem; font-weight: 500; }



