
.thia-budget-fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url(https://www.thiaide.com/img/thia-bg-white.jpg);
  background-size: cover;
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thia-budget-manager-content {
    width: 100%;
    height: 100%;
    background: none;
    overflow-y: auto;
    padding: 10px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.thia-budget-manager-content::-webkit-scrollbar {
    width: 6px;
}
.thia-budget-manager-content::-webkit-scrollbar-track {
    background: transparent;
}
.thia-budget-manager-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.thia-budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.thia-budget-title {
    font-size: 26px;
    color: rgba(12, 39, 51);
    letter-spacing: -0.3px;
    margin: 0;
}

.thia-budget-close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thia-budget-close-btn:hover { 
    background: rgba(239,68,68,0.15); 
    color: #ef4444; 
    border-color: rgba(239,68,68,0.3);
}

/* Quick Add */
.thia-budget-quick-add {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 20px;
background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.thia-budget-quick-input {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    min-width: 140px;
}
.thia-budget-quick-input::placeholder { color: #64748b; }
.thia-budget-quick-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255,255,255,0.08);
}
.thia-budget-quick-input option {
    background: #1e293b;
    color: #e2e8f0;
}

.thia-budget-save-btn {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(12, 39, 51, 0.7));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    white-space: nowrap;
}
.thia-budget-save-btn:hover { 
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(0, 0, 0, 0.7));
}

/* Navigation */
.thia-budget-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #0c2733;
}

.thia-budget-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.5);
    border: 1px solid #babfc2;
    border-radius: 8px;
    color: #3e4042;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.thia-budget-back-btn:hover { 
    background: rgba(255,255,255,0.08); 
    color: #e2e8f0; 
}

.thia-budget-current-name {
    font-size: 20px;
    font-weight: 700;
    color: rgba(12, 39, 51);
    letter-spacing: -0.2px;
}

/* Dashboard Cards */
.thia-budget-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.thia-budget-card {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.thia-budget-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
}
.thia-budget-card:hover {
    border-color: rgba(59,130,246,0.3);
}
.thia-budget-card:hover::before {
    opacity: 1;
}

.thia-budget-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
    flex: 1;
    word-break: break-word;
}

.thia-budget-card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.thia-budget-card-stat { 
    text-align: center;
    flex: 1;
    background: rgba(255,255,255,0.03);
    padding: 12px 8px;
    border-radius: 10px;
}

.thia-budget-card-stat-label {
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.thia-budget-card-stat-value {
    font-size: 20px;
    letter-spacing: -0.3px;
}

.thia-budget-income { color: #fff;border-radius: 6px;}
.thia-budget-expense { color: #fff;border-radius: 6px;}
.thia-budget-balance { color: #fff; }

.thia-budget-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Circle Progress Styles */
.thia-budget-circle-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.thia-budget-circle-progress {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.thia-budget-circle-svg {
    transform: rotate(-90deg);
}

.thia-budget-circle-bg {
    stroke: rgba(255,255,255,0.1);
    stroke-width: 8;
}

.thia-budget-circle-bar {
    stroke-width: 8;
    stroke-linecap: round;
}

.thia-budget-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.thia-budget-circle-percent {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.thia-budget-circle-label {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Detail Card */
.thia-budget-detail-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    grid-column: 1 / -1;
}

.thia-budget-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
  padding: 10px;
  border-radius: 12px;
}

.thia-budget-detail-subtitle {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
    bottom: 50px;
}

.thia-budget-balance-label {
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    text-align: right;
    font-weight: 600;
}

.thia-budget-balance-value {
    font-size: 32px;
    letter-spacing: -0.5px;
}

.thia-budget-detail-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.thia-budget-detail-stat {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
    border-radius: 12px;

}

.thia-budget-detail-label {
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-weight: 600;
}

.thia-budget-detail-value {
    font-size: 24px;
    letter-spacing: -0.3px;
}

.thia-budget-detail-section {
    margin-bottom: 28px;
}
.thia-budget-detail-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0c2733;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.thia-budget-detail-circles {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.thia-budget-expense-circle {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    color: #fff;
}

.thia-budget-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.thia-budget-detail-table th {
    background: rgba(255,255,255,0.03);
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);

}
.thia-budget-detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 15px;
    color: #fff;
}

.thia-budget-category-badge {
    background: rgba(59,130,246,0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.thia-budget-table-wrapper { 
overflow-x: auto; 
background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
  padding: 7px;
  border-radius: 12px;
}

.thia-budget-delete-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}
tr:hover .thia-budget-delete-btn { opacity: 1; }
.thia-budget-delete-btn:hover { 
    color: #ef4444; 
    background: rgba(239,68,68,0.1); 
}

/* Create Budget Card */
.thia-budget-create-card {
    background: linear-gradient(145deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
    border-radius: 16px;
    padding: 32px;
    border: 2px dashed rgba(255,255,255,0.12);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
}
.thia-budget-create-card:hover {
    border-color: rgba(59,130,246,0.4);
    background: linear-gradient(145deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3));
}

.thia-budget-create-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #60a5fa;
}

.thia-budget-create-title {
    font-size: 16px;
    font-weight: 600;
    color: #34383d;
    margin-bottom: 20px;
}

.thia-budget-create-input {
    width: 100%;
    max-width: 280px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    text-align: center;
}
.thia-budget-create-input::placeholder { color: #64748b; }
.thia-budget-create-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255,255,255,0.08);
}

.thia-budget-create-btn {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(12, 39, 51, 0.7));
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
}
.thia-budget-create-btn:hover {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(0, 0, 0, 0.7));
}

/* Spinner */
@keyframes thiaBudgetSpin {
    to { transform: rotate(360deg); }
}
.thia-budget-spinner {
    animation: thiaBudgetSpin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* Confirmation Modal */
.thia-budget-confirm-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thia-budget-confirm-box {
    background: #1e293b;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
	color:#FFFFFF;
}

.thia-budget-confirm-icon {
    margin-bottom: 20px;
}

.thia-budget-confirm-text {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.thia-budget-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.thia-budget-confirm-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
.thia-budget-confirm-cancel:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.thia-budget-confirm-delete {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
.thia-budget-confirm-delete:hover {
    background: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .thia-budget-manager-content {
        padding: 20px 16px;
    }
    
    .thia-budget-dashboard {
        grid-template-columns: 1fr;
    }
    
    .thia-budget-quick-add {
        flex-direction: column;
    }
    
    .thia-budget-quick-input {
        width: 100%;
    }
    
    .thia-budget-detail-summary {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============ GOAL CIRCLES ============ */
.thia-budget-goals-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.thia-budget-goal-item {
    text-align: center;
    flex-shrink: 0;
}

.thia-budget-goal-circle {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 6px;
}

.thia-budget-goal-circle svg {
    transform: rotate(-90deg);
}

.thia-budget-goal-item-label {
    font-size: 12px;
    color: #fff;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thia-budget-goal-item-value {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    display: block;
}

/* ============ PERIOD FILTER ============ */
.thia-budget-period-filter {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}
.thia-budget-filter-label {
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}
.thia-budget-filter-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.thia-budget-filter-btn {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.thia-budget-filter-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
}
.thia-budget-filter-btn.active {
    background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(12, 39, 51, 0.7));
    color: #fff;
    border-color: #3b82f6;
}
.thia-budget-custom-range {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.thia-budget-date-input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    font-size: 12px;
    font-family: inherit;
}

/* ============ CATEGORY MODAL ============ */
.thia-budget-category-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thia-budget-category-content {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.thia-budget-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

/* ============ MONTHLY CHART ============ */
.thia-budget-chart h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 600;
}

/* ============ DELETE BUDGET BUTTON ON CARD ============ */
.thia-budget-delete-card-btn {
    background: rgba(239, 68, 68, 0.08);
    border: none;
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-family: inherit;
    position: relative;
    z-index: 2;
}

.thia-budget-delete-card-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.thia-budget-delete-card-btn:active {
    background: rgba(239, 68, 68, 0.3);
}

.thia-budget-delete-card-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.thia-budget-card-name-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.thiaBudgetChart {
background: linear-gradient(135deg, rgba(12, 39, 51, 0.3), rgba(122, 136, 143, 0.7));
border-radius:12px;
padding:16px;
margin-bottom:20px;

}
.monthly-overview {
margin:0 0 16px 0;
font-size:15px;
color:#fff;
font-weight:600;
}

.chart-cover {
display: flex;
  gap: 2px;
  align-items: flex-end;
  width: 100%;
  padding: 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 5px;
}