body {
    font-family: 'Cairo', sans-serif;
    background-color: #F5F7FA;
    color: #1e293b;
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
@media (max-width: 640px) {
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(40px, 1fr));
        overflow-x: auto;
    }
}

/* Modal Overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Table Container */
.table-container {
    scrollbar-gutter: stable;
}

/* Invoice Table */
.invoice-table tr:nth-child(even) {
    background-color: rgba(0, 102, 204, 0.02);
}
.invoice-table tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.03);
}

/* Reports Summary Table */
.summary-table tr:nth-child(even) {
    background-color: rgba(0, 102, 204, 0.015);
}
.summary-table tr:hover {
    background-color: rgba(0, 102, 204, 0.04);
}

/* Pie Charts */
.pie-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
}
.chart-revenue {
    background: conic-gradient(
        #3B82F6 0% 35%,
        #10B981 35% 63%,
        #F59E0B 63% 85%,
        #8B5CF6 85% 100%
    );
}
.chart-expenses {
    background: conic-gradient(
        #F87171 0% 45%,
        #FBBF24 45% 75%,
        #9CA3AF 75% 90%,
        #60A5FA 90% 100%
    );
}
.chart-collection {
    background: conic-gradient(
        #10B981 0% 60%,
        #F59E0B 60% 85%,
        #EF4444 85% 100%
    );
}
.pie-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1E293B;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Medical File - Tab Content */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-btn.active {
    color: #0066CC;
    border-bottom: 2px solid #0066CC;
    background-color: rgba(0, 102, 204, 0.05);
}

/* Tooth Status Colors */
.tooth-btn:hover {
    transform: scale(1.1);
    transition: all 0.2s;
}
.tooth-status-1 { background-color: #10B981; }
.tooth-status-2 { background-color: #EF4444; }
.tooth-status-3 { background-color: #94A3B8; }
.tooth-status-4 { background-color: #3B82F6; }
.tooth-status-5 { background-color: #1E3A8A; }
.tooth-status-6 { background-color: #A855F7; }
.tooth-status-7 { background-color: #EAB308; }
.tooth-status-8 { background-color: #F97316; }

/* View Transition */
@view-transition {
    navigation: auto;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}
