:root {
    --primary-blue: #0059bb;
    --primary-blue-gradient: linear-gradient(165deg, #0059bb 0%, #0070ea 100%);
    --bg-light: #f8f9fa;
    --sidebar-bg: #f8fafc;
    --text-main: #191c1d;
    --text-muted: #717786;
    --text-body: #414754;
    --border-color: #edeeef;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 256px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-sizing: border-box;
    z-index: 100;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 0 8px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.nav-item.active {
    background-color: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    max-width: 100%;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding-top: 16px;
}

.logout-btn {
    color: #ba1a1a !important;
}

/* Main Content */
.main-wrapper {
    flex: 1;
    margin-left: 256px;
    padding: 64px 32px 34px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
}

.breadcrumb .separator {
    width: 4px;
}

.breadcrumb .current {
    color: var(--primary-blue);
    font-weight: 600;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.page-title h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 36px;
    margin: 0 0 8px 0;
    letter-spacing: -0.9px;
}

.page-title p {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.stats-summary {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-item {
    text-align: right;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
}

.stat-value.highlight {
    color: var(--primary-blue);
}

.v-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(193, 198, 215, 0.3);
}

/* Filter Bar */
.action-bar {
    background-color: #f3f4f5;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-group {
    display: flex;
    gap: 16px;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: none;
    border-radius: 4px;
    background-color: var(--white);
    font-size: 14px;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
}

.invite-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-blue-gradient);
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* Table */
.data-table-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: rgba(243, 244, 245, 0.5);
}

th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

td {
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.status-dot.active { background-color: #22c55e; }
.status-dot.away { background-color: #cbd5e1; }

.user-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-body);
}

.role-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.admin {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.role-badge.editor {
    background-color: #dcfce7;
    color: #15803d;
}

.action-btns {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.icon-btn {
    padding: 8px;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
    background-color: #f3f4f5;
}

/* Pagination */
.pagination {
    background-color: rgba(243, 244, 245, 0.3);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 12px;
    color: var(--text-body);
}

.pagination-info span {
    color: var(--text-main);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
}

.page-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Bottom Cards */
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.info-card {
    background: linear-gradient(158deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.info-card .card-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 256px;
    height: 256px;
    background: rgba(0, 89, 187, 0.2);
    filter: blur(32px);
    border-radius: 50%;
}

.info-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.audit-card {
    background-color: #edeeef;
    border: 1px solid var(--white);
    border-radius: 16px;
    padding: 25px;
}

.audit-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px 0;
}

.audit-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.4;
    margin-bottom: 16px;
}

.audit-card a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 550px; /* Reduced width for a narrow/tall look */
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 24px 32px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

.close-modal {
    background: #f8fafc;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.form-scroll-area {
    min-height: 600px;
    max-height: 88vh; /* Taller height */
    overflow-y: auto;
    padding: 24px 32px; /* Adjusted padding for narrower width */
    display: block;
}

.form-group {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 14px; /* Slightly larger padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Softer corners */
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.form-group textarea {
    min-height: 250px; /* BIG textarea for description */
    padding-top: 15px;
    line-height: 1.6;
    resize: vertical; /* Allow user to pull down more if needed */
}

.form-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 89, 187, 0.1);
}

.modal-footer {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.required-star { color: #ef4444; }

.image-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 600;
}

.image-upload-label:hover {
    border-color: #0059bb;
    background: #fcfdfe;
}

.preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

/* Custom Checkbox Toggle box from screenshot */
.checkbox-toggle-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f5f3ff; /* light purple background */
    border: 1.5px solid #c4b5fd; /* purple-ish border */
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
}

.checkbox-toggle-wrap input {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: #0059bb;
}

/* Modal spans - Removed as no longer grid */
