* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid Background Pattern */
.grid-bg {
    background-image: radial-gradient(circle, rgba(5, 150, 105, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

.bg-grey-50-grid {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

/* Card Shadows */
.card-shadow {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
}

.hover-scale {
    transition: all 0.25s ease;
}

.hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dropdown Menus */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

/* Tab Styles */
.tab-button {
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.tab-button.active::after {
    background: currentColor;
}

/* Toggle Buttons */
.toggle-btn {
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #059669;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
}

/* Metric Cards */
.metric-card {
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

/* Progress Bars */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 9999px;
    transition: width 0.6s ease;
}

/* Trend Indicators */
.trend-up {
    color: #059669;
}

.trend-down {
    color: #dc2626;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-documentation {
    background-color: #EFF6FF;
    color: #1E40AF;
}

.badge-feature {
    background-color: #F0FDF4;
    color: #15803D;
}

.badge-bug {
    background-color: #FEF2F2;
    color: #B91C1C;
}

/* Table Styles */
.table-row {
    transition: background-color 0.15s ease;
}

.table-row:hover {
    background-color: #F9FAFB;
}

.action-icon {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.table-row:hover .action-icon {
    opacity: 1;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Side Panel Styles */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 480px;
    background: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.side-panel.active {
    transform: translateX(0);
}

.side-sheet {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 500px;
    max-width: 90vw;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-sheet.active {
    display: block;
    transform: translateX(0);
}

.panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-overlay.active {
    display: block;
    opacity: 1;
}

/* Settings Tabs */
.settings-tab {
    transition: all 0.2s ease;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-inactive {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Flash Messages */
.flash {
    margin-bottom: 16px;
}

.flash-item {
    padding: 12px 16px;
    margin: 6px 0;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.flash-item.error {
    background: #FEF2F2;
    border-color: #ef4444;
    color: #991B1B;
}

.flash-item.success {
    background: #F0FDF4;
    border-color: #10b981;
    color: #065F46;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .side-panel, .side-sheet {
        width: 100%;
    }
}

