/* Advanced Mode Toggle */
.advanced-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s;
}

.advanced-toggle-container:hover {
    background: rgba(255, 255, 255, 0.8);
}

.advanced-toggle-container label {
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* Advanced Options Container */
.advanced-options {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.advanced-options.visible {
    display: grid;
}

.advanced-box {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.advanced-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.advanced-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.advanced-box-header i {
    font-size: 1.2rem;
    color: #3b82f6;
}

.advanced-box-title {
    font-weight: 600;
    color: #1e293b;
}

.advanced-box-content {
    font-size: 0.9rem;
    color: #64748b;
}

/* Dark Mode Styles */
.dark-mode .advanced-toggle-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .advanced-toggle-container label {
    color: #94a3b8;
}

.dark-mode .advanced-options {
    background: rgba(30, 41, 59, 0.8);
}

.dark-mode .advanced-box {
    background: #1e293b;
}

.dark-mode .advanced-box-title {
    color: #e2e8f0;
}

.dark-mode .advanced-box-content {
    color: #94a3b8;
}

/* Toggle Switch */
.advanced-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

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

input:checked + .advanced-slider {
    background-color: #3b82f6;
}

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

.dark-mode input:checked + .advanced-slider {
    background-color: #60a5fa;
}

/* Advanced Features */
.advanced-features {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Analytics Container */
.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytics-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.monthly-total:before {
    background-color: #4e73df;
}

.yearly-total:before {
    background-color: #1cc88a;
}

.next-month:before {
    background-color: #9c27b0;
}

.total-spent:before {
    background-color: #f06292;
}

.analytics-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.monthly-total .analytics-icon {
    background-color: #4e73df;
}

.yearly-total .analytics-icon {
    background-color: #1cc88a;
}

.next-month .analytics-icon {
    background-color: #9c27b0;
}

.total-spent .analytics-icon {
    background-color: #f06292;
}

.analytics-content {
    flex: 1;
}

.analytics-title {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.analytics-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.analytics-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Dark mode styles for analytics */
[data-theme="dark"] .analytics-box {
    background-color: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .analytics-title {
    color: #e2e8f0;
}

[data-theme="dark"] .analytics-amount {
    color: #f7fafc;
}

/* Box Colors */
.monthly-total {
    background: linear-gradient(135deg, #4e73df 0%, #3751b3 100%);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.3);
}

.yearly-total {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%);
    box-shadow: 0 6px 20px rgba(28, 200, 138, 0.3);
}

.next-month {
    background: linear-gradient(135deg, #9b5de5 0%, #7a3eb1 100%);
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.3);
}

.total-spent {
    background: linear-gradient(135deg, #f15bb5 0%, #d43a8c 100%);
    box-shadow: 0 6px 20px rgba(241, 91, 181, 0.3);
}

/* Dark mode styles */
.dark-mode .analytics-box {
    background-color: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
}

.dark-mode .analytics-title {
    color: rgba(255, 255, 255, 0.95);
}

.dark-mode .analytics-amount {
    color: white;
}

@keyframes updateFlash {
    0% {
        transform: scale(1.1);
        color: white;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: scale(1);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

/* Info Popup */
.info-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 1rem;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.info-popup.visible {
    display: block;
}

.info-popup-header {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-popup-list {
    max-height: 300px;
    overflow-y: auto;
}

.info-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-popup-item:last-child {
    border-bottom: none;
}

.info-service-name {
    font-weight: 500;
    color: #1e293b;
}

.info-amount {
    color: #64748b;
}

/* Dark Mode */
.dark-mode .menu-item {
    background: #1e293b;
}

.dark-mode .menu-item span {
    color: #e2e8f0;
}

.dark-mode .menu-item p {
    color: #94a3b8;
}

.dark-mode .info-popup {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .info-popup-header {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .info-service-name {
    color: #e2e8f0;
}

.dark-mode .info-amount {
    color: #94a3b8;
}

.dark-mode .info-popup-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Details Button Styles */
.details-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.details-btn i {
    font-size: 0.8rem;
}

.details-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.monthly-total .details-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.yearly-total .details-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.next-month .details-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.total-spent .details-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Dark mode for details button */
[data-theme="dark"] .details-btn {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

[data-theme="dark"] .details-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

[data-theme="dark"] .monthly-total .details-btn:hover {
    border-color: var(--monthly-color);
    background-color: rgba(78, 115, 223, 0.2);
}

[data-theme="dark"] .yearly-total .details-btn:hover {
    border-color: var(--yearly-color);
    background-color: rgba(28, 200, 138, 0.2);
}

[data-theme="dark"] .next-month .details-btn:hover {
    border-color: var(--next-month-color);
    background-color: rgba(156, 39, 176, 0.2);
}

[data-theme="dark"] .total-spent .details-btn:hover {
    border-color: var(--total-spent-color);
    background-color: rgba(240, 98, 146, 0.2);
}

/* Improve visibility of details buttons text in dark mode */
.dark-mode .details-btn,
[data-theme="dark"] .details-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .details-btn:hover,
[data-theme="dark"] .details-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Breakdown Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-opening {
    animation: fadeIn 0.3s ease forwards;
}

.modal-closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-content-animate {
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: #f1f5f9;
    color: #334155;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

.breakdown-item-animate {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breakdown-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.breakdown-service {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breakdown-service .service-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #f8fafc;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breakdown-info {
    display: flex;
    flex-direction: column;
}

.breakdown-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: flex;
    align-items: center;
}

.breakdown-period {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 2px;
}

.breakdown-amount {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.1rem;
}

.no-subscriptions {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-size: 1rem;
}

/* Dark Mode */
.dark-mode .menu-item {
    background: #1e293b;
}

.dark-mode .menu-item span {
    color: #e2e8f0;
}

.dark-mode .menu-item p {
    color: #94a3b8;
}

.dark-mode .info-popup {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .info-popup-header {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .info-service-name {
    color: #e2e8f0;
}

.dark-mode .info-amount {
    color: #94a3b8;
}

.dark-mode .modal-content {
    background-color: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dark-mode .modal-header {
    border-bottom-color: #334155;
}

.dark-mode .modal-header h2 {
    color: #e2e8f0;
}

.dark-mode .close-modal {
    color: #94a3b8;
}

.dark-mode .close-modal:hover {
    background-color: #334155;
    color: #e2e8f0;
}

.dark-mode .breakdown-item {
    background-color: #273548;
}

.dark-mode .breakdown-item:hover {
    background-color: #334155;
}

.dark-mode .breakdown-name {
    color: #e2e8f0;
}

.dark-mode .breakdown-period {
    color: #94a3b8;
}

.dark-mode .breakdown-amount {
    color: #f1f5f9;
}

.dark-mode .no-subscriptions {
    color: #94a3b8;
}

/* Breakdown Total Styles */
.breakdown-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.2);
    position: relative;
}

.breakdown-total::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 70%;
    background-color: #e2e8f0;
}

.breakdown-total-label {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.breakdown-total-amount {
    font-weight: 700;
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
    100% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* Dark Mode Support for Breakdown Total */
.dark-mode .breakdown-total {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

.dark-mode .breakdown-total::before {
    background-color: #334155;
}

/* Breakdown Period Styles */
.breakdown-period-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 4px;
}

.breakdown-period-info i {
    font-size: 0.8rem;
}

.monthly-payment {
    color: #3b82f6;
}

.yearly-payment {
    color: #ef4444;
}

.halfyearly-payment {
    color: #60a5fa;
}

.quarterly-payment {
    color: #6366f1;
}

.weekly-payment {
    color: #a855f7;
}

.breakdown-amount-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.breakdown-amount-period {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Dark mode support */
.dark-mode .breakdown-period-info {
    color: #94a3b8;
}

.dark-mode .monthly-payment {
    color: #60a5fa;
}

.dark-mode .yearly-payment {
    color: #f87171;
}

.dark-mode .halfyearly-payment {
    color: #93c5fd;
}

.dark-mode .quarterly-payment {
    color: #818cf8;
}

.dark-mode .weekly-payment {
    color: #c084fc;
}

.dark-mode .breakdown-amount-period {
    color: #94a3b8;
}

/* Modal Header Color Variations */
.modal-header.header-monthly {
    background: linear-gradient(135deg, #4e73df 0%, #3751b3 100%);
    border-bottom: none;
    color: white;
}

.modal-header.header-yearly {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%);
    border-bottom: none;
    color: white;
}

.modal-header.header-next-month {
    background: linear-gradient(135deg, #9b5de5 0%, #7a3eb1 100%);
    border-bottom: none;
    color: white;
}

.modal-header.header-spent {
    background: linear-gradient(135deg, #f15bb5 0%, #d43a8c 100%);
    border-bottom: none;
    color: white;
}

/* Title color for colored headers */
.header-monthly h2,
.header-yearly h2,
.header-next-month h2,
.header-spent h2 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Close button color for colored headers */
.header-monthly .close-modal,
.header-yearly .close-modal,
.header-next-month .close-modal,
.header-spent .close-modal {
    color: rgba(255, 255, 255, 0.8);
}

.header-monthly .close-modal:hover,
.header-yearly .close-modal:hover,
.header-next-month .close-modal:hover,
.header-spent .close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Total Color Variations */
.breakdown-total.total-monthly {
    background: linear-gradient(135deg, #4e73df 0%, #3751b3 100%);
}

.breakdown-total.total-yearly {
    background: linear-gradient(135deg, #1cc88a 0%, #17a673 100%);
}

.breakdown-total.total-next-month {
    background: linear-gradient(135deg, #9b5de5 0%, #7a3eb1 100%);
}

.breakdown-total.total-spent {
    background: linear-gradient(135deg, #f15bb5 0%, #d43a8c 100%);
}

/* Yearly calculation styles */
.yearly-calculation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #8b5cf6;
    font-weight: 500;
    padding-left: 16px;
}

.calculation-divider {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #94a3b8;
}

.calculation-divider i {
    font-size: 0.7rem;
}

/* Dark mode support for the calculation */
.dark-mode .yearly-calculation {
    color: #a78bfa;
}

.dark-mode .calculation-divider {
    color: #64748b;
}

/* Monthly calculation styles for yearly breakdown */
.monthly-calculation {
    color: #3b82f6;
}

.quarterly-calculation {
    color: #10b981;
}

.weekly-calculation {
    color: #f59e0b;
}

/* Dark mode support for the calculation */
.dark-mode .monthly-calculation {
    color: #60a5fa;
}

.dark-mode .quarterly-calculation {
    color: #34d399;
}

.dark-mode .weekly-calculation {
    color: #fbbf24;
}

/* Styles for System Date in Settings Panel */
.system-date-container {
    margin-top: 15px !important;
}

.system-date-display {
    transition: all 0.3s ease;
}

.system-date-display:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .system-date-display:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.system-date-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.system-date-time {
    color: #4285F4;
    font-weight: 600;
}

[data-theme="dark"] .system-date-time {
    color: #8ab4f8;
}

/* Fix for currency indicator near header in dark mode */
.dark-mode .header-title .current-currency {
    display: none; /* Hide the INR button that appears next to Subscription Manager title */
}

/* Deactivated service styles in breakdown */
.breakdown-item.deactivated {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.breakdown-item.deactivated .breakdown-name {
    color: #ef4444;
}

.breakdown-item.deactivated .deactivated-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 8px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Dark mode support for deactivated services */
.dark-mode .breakdown-item.deactivated {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark-mode .breakdown-item.deactivated .breakdown-name {
    color: #f87171;
}

.dark-mode .breakdown-item.deactivated .deactivated-label {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Deactivated service row styles */
#subscriptionsTable tr.deactivated,
.subscriptions-table tr.deactivated {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

#subscriptionsTable tr.deactivated:hover,
.subscriptions-table tr.deactivated:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Dark mode support for deactivated rows */
.dark-mode #subscriptionsTable tr.deactivated,
.dark-mode .subscriptions-table tr.deactivated {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.dark-mode #subscriptionsTable tr.deactivated:hover,
.dark-mode .subscriptions-table tr.deactivated:hover {
    background-color: rgba(239, 68, 68, 0.12);
}

/* Enhanced Filter Section Styles */
.filters-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* REMOVED THE BLUE TOP BORDER LINE */
/* .filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
} */

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label i {
    font-size: 1rem;
    color: #3b82f6;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: white;
    color: #1e293b;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: #93c5fd;
    background-color: #f8fafc;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

/* Active filter styles */
.filter-select.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
    font-weight: 500;
}

/* Enhanced Clear filters button */
.clear-filters {
    padding: 10px 18px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.clear-filters i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.clear-filters:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.clear-filters:hover i {
    transform: rotate(90deg);
}

/* Dark mode support */
.dark-mode .filters-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 2px 4px -1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark-mode .filter-label {
    color: #94a3b8;
}

.dark-mode .filter-label i {
    color: #60a5fa;
}

.dark-mode .filter-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2360a5fa'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.dark-mode .filter-select:hover {
    border-color: #475569;
    background-color: #273548;
}

.dark-mode .filter-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background-color: #1e293b;
}

.dark-mode .filter-select.active {
    border-color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}

.dark-mode .clear-filters {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-color: #475569;
    color: #94a3b8;
}

.dark-mode .clear-filters:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #e2e8f0;
    border-color: #60a5fa;
}

/* Filter animations */
@keyframes filterAppear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    animation: filterAppear 0.3s ease-out forwards;
}

.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.2s; }
.filter-group:nth-child(3) { animation-delay: 0.3s; }

/* Filter option hover effects */
.filter-select option:hover {
    background-color: #eff6ff;
}

.dark-mode .filter-select option:hover {
    background-color: #2d3748;
}

/* Active filter indicator */
.filter-select.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    pointer-events: none;
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Filter actions container */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Export and Import button styles */
.export-btn,
.import-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.export-btn i,
.import-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.export-btn:hover,
.import-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.export-btn:hover i {
    transform: translateY(-2px);
}

.import-btn:hover i {
    transform: translateY(2px);
}

.import-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.import-btn:hover {
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

/* Dark mode support */
.dark-mode .export-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.dark-mode .import-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.dark-mode .export-btn:hover {
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
}

.dark-mode .import-btn:hover {
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }
} 