/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;
    /* blue-600 */
    --primary-hover: #1d4ed8;
    /* blue-700 */
    --secondary: #4f46e5;
    /* indigo-600 */

    --bg-white: #ffffff;
    --bg-slate-50: #f8fafc;
    --bg-gray-900: #111827;
    --bg-gray-800: #1f2937;

    --text-main: #111827;
    /* gray-900 */
    --text-muted: #6b7280;
    /* gray-500 */
    --text-light: #d1d5db;
    /* gray-300 */
    --text-white: #ffffff;

    --border-light: #e5e7eb;
    /* gray-200 / gray-300 */
    --border-lighter: #f3f4f6;
    /* gray-100 */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius: 0.5rem;
    /* rounded-lg */
    --radius-xl: 1rem;
    /* rounded-2xl */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: 80rem;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

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

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

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

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

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

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

.font-bold {
    font-weight: 600;
}

/* Spacing Helpers */
.mb-2 {
    margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

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

/* =========================================
   3. COMPONENTS
   ========================================= */

@keyframes pulse-highlight {
    0% {
        background-color: #fef3c7;
    }

    50% {
        background-color: #fffbeb;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes pulse-border {
    0% {
        border-color: #f59e0b;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
    }

    100% {
        border-color: #d1d5db;
        box-shadow: none;
    }
}

.row-highlight {
    animation: pulse-highlight 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.row-highlight input,
.row-highlight select {
    animation: pulse-border 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-outline {
    background-color: white;
    border-color: #d1d5db;
    /* gray-300 */
    color: #374151;
    /* gray-700 */
}

.btn-outline:hover {
    background-color: #f9fafb;
    /* gray-50 */
}

/* Navbar */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--border-lighter);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 4rem;
    /* h-16 */
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: #4b5563;
    /* gray-600 */
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.user-nav-divider {
    width: 1px;
    height: 1.5rem;
    background: var(--border-light);
    margin: 0 0.5rem;
}

/* Dashboard Sub-Nav */
.dashboard-nav {
    background: white;
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    position: sticky;
    top: 4rem;
    z-index: 40;
}

.dash-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.dash-nav-link i {
    font-size: 1.25rem;
}

.dash-nav-link:hover {
    color: var(--primary);
}

.dash-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--bg-gray-900);
    color: var(--text-light);
    padding: 3rem 0;
}

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

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

.footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a:hover {
    color: white;
}

.status-badge {
    background-color: var(--bg-gray-800);
    padding: 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    color: #4ade80;
    /* green-400 */
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #4ade80;
    margin-right: 0.5rem;
}

/* Base Layout Main */
.main-content {
    min-height: 80vh;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   4. PAGE: INDEX (HOME)
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--bg-slate-50);
    border-bottom: 1px solid var(--border-light);
    padding: 5rem 0 6rem;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}

.hero-text {
    flex: 1;
}

.hero-visual {
    margin-top: 3rem;
    flex: 1;
}

@media (min-width: 1024px) {
    .hero-visual {
        margin-top: 0;
        padding-left: 2.5rem;
    }
}

.badge-green {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #dcfce7;
    /* green-100 */
    color: #166534;
    /* green-800 */
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid #bbf7d0;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

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

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

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 1024px) {
    .hero-desc {
        margin-left: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

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

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Feature Grid */
.features-section {
    padding: 6rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

.section-title {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-main);
}

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

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

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

.feature-card {
    position: relative;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.icon-green {
    background-color: #22c55e;
}

.icon-blue {
    background-color: #2563eb;
}

.icon-indigo {
    background-color: #4f46e5;
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--bg-slate-50);
}

.pricing-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-container {
        flex-direction: row;
    }
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    flex: 1;
    max-width: 24rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.pricing-card.emphasized {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.best-value-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: var(--radius);
}

.price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-period {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4b5563;
    /* gray-600 */
}

.check-icon {
    color: #22c55e;
    /* green-500 */
    font-size: 1.125rem;
    margin-right: 0.5rem;
}

/* =========================================
   5. PAGE: SIGNUP
   ========================================= */
.auth-page {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    background-color: var(--bg-slate-50);
}

.auth-card {
    width: 100%;
    max-width: 32rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

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

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
}

.social-btn:hover {
    background-color: #f9fafb;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.divider-line {
    flex-grow: 1;
    border-top: 1px solid #d1d5db;
}

.divider-text {
    flex-shrink: 0;
    margin: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input {
    display: block;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.msg-box {
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

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

.msg-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Demo visual for Index (The card rotation stuff) */
.demo-card-container {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    transform: rotate(2deg);
    transition: all 0.5s;
}

.demo-card-container:hover {
    transform: rotate(0deg);
}

.demo-internal {
    background: var(--bg-slate-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-lighter);
}

/* =========================================
   6. PAGE: DASHBOARD
   ========================================= */
.dashboard-page {
    background-color: var(--bg-slate-50);
    min-height: 90vh;
    padding-bottom: 4rem;
}

.dashboard-header {
    background-color: white;
    border-bottom: 1px solid var(--border-light);
    padding: 2rem 0;
}

.dashboard-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Summary Grid */
.summary-grid {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.summary-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.summary-value.income {
    color: #16a34a;
}

.summary-value.expense {
    color: #dc2626;
}

.summary-value.neutral {
    color: var(--text-main);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Detail Rows for Info Displays */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-lighter);
}

.detail-row:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-weight: 500;
}

/* Upload Area */
.upload-box {
    margin-top: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 2px dashed var(--border-light);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.upload-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.upload-desc {
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

/* Tables */
.table-container {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    /* Removed overflow: hidden to prevent dropdown clipping */
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table thead tr {
    background: var(--bg-slate-50);
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.sortable:hover {
    background: #f1f5f9;
}

.sort-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    opacity: 0.5;
}

.filter-row {
    background: white;
    border-bottom: 2px solid var(--border-light);
}

.filter-input {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--bg-slate-50);
}

/* Multiselect Enum Filter */
.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem;
    font-size: 0.75rem;
    background: var(--bg-slate-50);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    /* Increased width */
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    /* Higher z-index */
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    display: none;
}

.filter-dropdown.active .filter-dropdown-content {
    display: block;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--text-main);
    border-radius: 2px;
    text-transform: capitalize;
    /* Force pretty case */
    white-space: nowrap;
}

.filter-option.select-all-option {
    border-bottom: 1px solid var(--border-lighter);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.filter-option:hover {
    background: var(--bg-slate-50);
}

.filter-option input[type="checkbox"] {
    cursor: pointer;
}

/* Dual Range Slider Fix */
.range-slider-container {
    padding: 0.5rem 0.75rem;
    min-width: 120px;
}

.range-slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dual-range {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 1rem 0 0.5rem;
}

.dual-range .track {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.dual-range input[type="range"] {
    position: absolute;
    top: -6px;
    width: 100%;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: var(--shadow-sm);
}

.dual-range input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    pointer-events: auto;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-slate-50);
    border-top: 1px solid var(--border-light);
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-light);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

/* Badges */
.badge-status {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue {
    background: #eff6ff;
    color: var(--primary);
}

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

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

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
}

.modal-header-icon {
    width: 4rem;
    height: 4rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-info-box {
    background: var(--bg-slate-50);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
}

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

.info-value {
    font-weight: 600;
}

/* Form Controls */
.form-input-sm {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-main);
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.form-input-sm:focus {
    border-color: var(--primary);
}

.form-input-sm:disabled {
    background: var(--bg-slate-50);
    border-color: transparent;
    cursor: not-allowed;
}

/* Utils */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

.text-success {
    color: #16a34a !important;
}

.text-danger {
    color: #dc2626 !important;
}

/* Tooltips */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--border-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: help;
    margin-left: 0.5rem;
    position: relative;
    vertical-align: middle;
}

.help-icon:hover {
    background-color: var(--primary);
    color: white;
}

.help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-gray-900);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: normal;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    line-height: 1.4;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: var(--shadow-lg);
}

.help-icon:hover::after {
    opacity: 1;
}

.help-icon::before {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-gray-900);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 50;
    pointer-events: none;
}

.help-icon:hover::before {
    opacity: 1;
}