body { font-family: 'Inter', sans-serif; background-color: #f3f4f6; }

.glass-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-link { transition: all 0.2s; cursor: pointer; }
.sidebar-link:hover, .sidebar-link.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-right: 3px solid #2563eb;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SUBSCRIPTION BADGES */
.sub-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 12px; font-weight: 700; text-transform: uppercase; margin-left: 8px; vertical-align: middle; display: inline-block; }
.sub-lifetime { background-color: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.sub-monthly { background-color: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.sub-expired { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.sub-trial { background-color: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }

/* THERMAL RECEIPT STYLES */
.receipt-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px); 
}
.receipt-paper {
    font-family: 'Courier New', Courier, monospace;
    background: #fff;
    color: #000;
    width: 320px; 
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
    margin: auto;
    font-size: 13px;
    line-height: 1.4;
}
.receipt-paper::after {
    content: "";
    position: absolute;
    bottom: -8px; left: 0; right: 0; height: 8px;
    background: radial-gradient(circle, transparent 70%, #fff 75%) 0 0 / 10px 10px;
    background-repeat: repeat-x;
}
.receipt-divider { border-bottom: 1px dashed #000; margin: 10px 0; }

/* PRINT STYLES */
@media print {
    body { background-color: white; overflow: visible !important; height: auto !important; }
    
    /* Hide Sidebars, Headers, and Add Forms */
    aside, header, #login-screen, #receipt-modal, .no-print, #mobile-backdrop { display: none !important; }
    
    /* Hide the Add Cost Form Container specifically */
    #add-cost-container { display: none !important; }

    /* Reset Layout for Print */
    #app-container { display: block !important; overflow: visible !important; height: auto !important; }
    main { margin: 0 !important; padding: 0 !important; overflow: visible !important; height: auto !important; }
    .view-section { display: none !important; }
    #view-accounts { display: block !important; }

    /* Expand Cost Table to Full Width */
    #cost-list-container { width: 100% !important; grid-column: span 3 !important; border: none !important; box-shadow: none !important; }
    .h-\[500px\] { height: auto !important; overflow: visible !important; }
    
    /* Styling for print readability */
    .glass-card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; margin-bottom: 15px; }
    table { font-size: 12px; width: 100%; }
    th, td { border: 1px solid #eee; padding: 6px; }
    
    /* Ensure Finance Cards align nicely */
    .grid-cols-1.md\:grid-cols-3 { display: flex !important; gap: 10px; }
    .grid-cols-1.md\:grid-cols-3 > div { flex: 1; }
}