/* public/css/app.css */
:root {
    --background: #f8fafc;
    /* Slightly off-white for contrast */
    --foreground: #020817;
    --muted: #e2e8f0;
    /* Darker muted for higher contrast borders/hovers */
    --muted-foreground: #475569;
    /* Darker slate for better readability */
    --card: #ffffff;
    --card-foreground: #020817;
    --border: #cbd5e1;
    /* Darker border for higher contrast */
    --input: #cbd5e1;
    --primary: #1a24be;
    --primary-foreground: #f8fafc;
    --ring: #0f172a;
    --radius: 0.375rem;
    /* Slightly smaller radius */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    /* Slightly stronger shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    /* Mobile first padding */
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.page-title {
    font-size: 1.5rem;
    /* Mobile */
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    /* Mobile */
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Added padding to prevent touching edges */
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

.container-sm {
    max-width: 800px;
    /* Kept tight */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-sm {
        padding: 0 2rem;
    }
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-control,
.form-select {
    flex: 1;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background: var(--card);
    font-size: 0.875rem;
    color: var(--foreground);
    transition: outline 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    outline: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}


.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn svg {
    display: inline-block;
    margin-right: 0.5rem;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-danger {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--muted);
}


/* Cards */
.card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: var(--foreground);
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 640px) {
    .card {
        padding: 1.25rem 1.5rem;
    }
}


.card-header {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    /* Mobile */
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    flex: 1;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 1.125rem;
    }
}



.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-index {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--foreground);
    line-height: 1;
}

.card-arrow {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.card-title-lively {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-meta-row:last-child {
    margin-bottom: 0;
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.meta-label {
    font-size: 0.675rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
}

.card-item {
    font-size: 0.875rem;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .card-item {
        font-size: 1rem;
    }
}

.card-item strong {
    color: var(--foreground);
    font-weight: 600;
}

.card-description {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Zalo Action */
.zalo-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.btn-zalo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}


/* Badges (Pill Shape with Dot) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.375rem;
}

.badge-outline {
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
}

.badge-outline::before {
    background-color: var(--muted-foreground);
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-success::before {
    background-color: #166534;
}

.badge-destructive {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-destructive::before {
    background-color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-warning::before {
    background-color: #d97706;
}

.badge-secondary {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
}

.badge-secondary::before {
    background-color: var(--muted-foreground);
}

/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    caption-side: bottom;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
    /* Force scroll on very small screens */
}

th {
    height: 3rem;
    padding: 0 1rem;
    text-align: left;
    vertical-align: middle;
    font-weight: 600;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: 0;
}

tr:hover {
    background-color: var(--muted);
}

/* Common Info Grid (used in Room Details) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 cols mobile */
    gap: 1rem;
}

@media (min-width: 640px) {
    .info-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    /* Smaller on mobile */
    color: var(--muted-foreground);
    font-weight: 600;
}

@media (min-width: 640px) {
    .info-label {
        font-size: 0.875rem;
    }
}

.info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .info-value {
        font-size: 1rem;
    }
}

/* Specific overrides for welcome */
.search-form {
    display: flex;
    flex-direction: column;
    /* Mobile first */
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .search-form {
        flex-direction: row;
        margin-bottom: 3rem;
    }
}

/* User Timeline Node */
.timeline-user-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-avatar {
    position: absolute;
    left: -43px;
    top: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eff6ff;
    border: 2px solid #1a24be;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a24be;
    z-index: 10;
}

.user-info {
    flex: 1;
}

.profile-name-lively {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--foreground);
    line-height: 1.2;
}


.profile-meta-lively {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.user-stats-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--card);
    max-width: fit-content;
}

.meta-item strong {
    color: var(--foreground);
    font-weight: 600;
}

.meta-dot {
    color: var(--border);
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .profile-stats {
        padding-top: 0;
        border-top: none;
        gap: 1.5rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.stat-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.125rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 1.125rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}


.stat-divider {
    display: none;
}

.text-success {
    color: #166534;
}

.text-destructive {
    color: #c40000;
}

.text-warning {
    color: #cd6d00;
}

.student-name {
    font-size: 1.25rem;
    /* Mobile */
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .student-name {
        font-size: 1.5rem;
    }
}

.student-id {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Mobile */
}

@media (min-width: 640px) {
    .timeline {
        gap: 1.25rem;
    }
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 1px;
    background: var(--border);
}

.timeline-date {
    font-size: 1rem;
    /* Mobile */
    font-weight: 700;
    color: #1a24be;
    position: relative;
    display: inline-flex;
    align-items: center;
}


.timeline-date::before {
    content: '';
    position: absolute;
    left: -33px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a24be;
    border: 2px solid var(--background);
    box-shadow: 0 0 0 1px var(--border);
}

.timeline-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-cards {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile first: 1 column */
    gap: 1rem;
}

@media (min-width: 640px) {
    .timeline-cards {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 columns */
    }
}

.card-time {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-top: 0.25rem;
    /* Mobile */
    white-space: nowrap;
}

@media (min-width: 640px) {
    .card-time {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    /* Mobile */
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

@media (min-width: 640px) {
    .empty-state {
        padding: 4rem 2rem;
    }
}

.empty-state-img {
    max-width: 100px;
    height: auto;
    margin: 0 auto 2.5rem auto;
    display: block;
    opacity: 0.9;
}

.empty-state h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .empty-state p {
        font-size: 1rem;
    }
}

/* Specific overrides for room detail */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile first */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr 350px;
    }
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Hero Section (Blue style) */
.hero-section {
    background-color: #1a24be;
    color: white;
    padding: 3rem 0;
    /* Reduced top padding to accommodate logo */
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-section .btn-outline {
    color: white;
    border-color: white;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
}

/* Nav Logo */
.hero-nav {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-nav {
        margin-bottom: 4rem;
    }
}

.hero-logo {
    height: 32px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .hero-logo {
        height: 44px;
    }
}

/* Google Login and Profile Nav Styles */


.user-nav-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.user-nav-name {
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

@media (min-width: 640px) {
    .user-nav-name {
        display: inline;
    }
}



/* Circular Background Patterns */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.hero-section::before {
    width: 800px;
    height: 800px;
    top: -400px;
    left: -200px;
}

.hero-section::after {
    width: 1200px;
    height: 1200px;
    bottom: -600px;
    right: -300px;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.hero-left {
    width: 100%;
    max-width: 700px;
    /* Wider to accommodate text */
}


.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: .5rem;
    /* Reduced to bring desc closer */
    color: white;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2rem;
        /* Make it huge */
    }
}

.hero-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    /* Space before form */
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1rem;
    }
}

.hero-search-form {
    background: white;
    padding: 0.375rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
}

@media (min-width: 640px) {
    .hero-search-form {
        flex-direction: row;
    }
}

.hero-search-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--foreground);
    min-width: 0;
}

.hero-search-form input::placeholder {
    color: var(--muted-foreground);
}

.hero-search-form button {
    background-color: #1a24be;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.hero-search-form button:hover {
    background-color: #1d4ed8;
}

/* App Footer */
.app-footer {
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.app-footer p {
    margin-bottom: 0.5rem;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.app-footer a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

/* Room Detail Hero Meta */
.room-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
}

.room-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.room-meta-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.room-meta-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

/* Student Card Grid */
.student-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .student-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .student-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.student-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    transition: border-color 0.2s;
}

.student-card:hover {
    border-color: var(--primary);
}

.student-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-card-info {
    flex: 1;
    min-width: 0;
}

.student-card-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-card-meta {
    font-size: 0.825rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-card-status {
    flex-shrink: 0;
}

/* Pagination Styles */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: var(--muted-foreground);
    background: var(--background);
    cursor: not-allowed;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    background: var(--muted);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.admin-tab {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.admin-tab.active {
    background: white;
    color: var(--primary);
}

/* ==========================================================================
   Utility Classes (Standardization)
   ========================================================================== */

/* Layout & Flexbox */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: flex-end;
}

/* Spacing: Gaps */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Spacing: Margins */
.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Spacing: Paddings */
.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-0 {
    padding: 0;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-3 {
    padding-top: 0.75rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-5 {
    padding-top: 1.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pb-5 {
    padding-bottom: 1.25rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-white {
    color: #ffffff;
}

/* Layout Miscellaneous */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.rounded-3 {
    border-radius: 0.5rem;
}

.rounded-circle {
    border-radius: 50%;
}

/* Extra Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-decoration-none {
    text-decoration: none;
}

.bg-success-subtle {
    background-color: #d1fae5;
}

.text-success-emphasis {
    color: #065f46;
}

.bg-danger-subtle {
    background-color: #fee2e2;
}

.text-danger-emphasis {
    color: #991b1b;
}

.text-success {
    color: #10b981;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.8);
}

.text-dark {
    color: #0f172a !important;
}

.bg-white {
    background-color: #ffffff;
}

.border-top-dashed {
    border-top: 1px dashed var(--border);
}

.ps-5 {
    padding-left: 2.5rem;
}

.w-250px {
    width: 250px;
}

.max-w-300px {
    max-width: 300px;
}

.max-w-600px {
    max-width: 600px;
}

.opacity-50 {
    opacity: 0.5;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.search-icon-absolute {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

/* Responsive Utilities */
.flex-column {
    flex-direction: column !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.gap-3 {
    gap: 1rem !important;
}

@media (min-width: 768px) {
    .flex-md-row {
        flex-direction: row !important;
    }

    .align-items-md-center {
        align-items: center !important;
    }

    .w-md-auto {
        width: auto !important;
    }

    .w-md-250px {
        width: 250px !important;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.admin-tabs {
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.pb-8 {
    padding-bottom: 2rem;
}

.bg-card {
    background: var(--card);
}

.border {
    border: 1px solid var(--border);
}

.w-auto {
    width: auto;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.bg-muted {
    background: var(--muted);
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.z-10 {
    z-index: 10;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-warning-subtle {
    background-color: #e47a00;
    color: white;
    font-size: 12px;
}