﻿.subscriptions-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subscriptions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.06),
        0 2px 12px -1px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Table Header Styling */
.subscriptions-table th {
    background: rgba(248, 250, 252, 0.8);
    color: #1e293b;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 1.2rem 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.subscriptions-table th:last-child {
    border-right: none;
}

/* Table Cell Common Styles */
.subscriptions-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
    background: transparent;
    transition: all 0.2s ease;
}

.subscriptions-table td:last-child {
    border-right: none;
}

/* Row Hover Effect */
.subscriptions-table tr {
    transition: all 0.3s ease;
    position: relative;
}

.subscriptions-table tr:hover {
    background: rgba(248, 250, 252, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Service Column */
.service-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-cell:hover .service-logo {
    transform: translateY(-2px) scale(1.02);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Service name styling for better alignment with info icon */
.service-name {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    max-width: 100%;
    overflow: hidden;
}

.service-name > span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
    display: inline-block !important;
}

.service-price {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: -0.1px;
}

.service-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 3px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-logo:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: rgba(226, 232, 240, 0.8);
}

/* Amount Column */
.amount {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.amount-period {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 0.3rem;
    letter-spacing: -0.1px;
}

/* Date Columns */
.date-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.date-cell .date {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.date-cell .date-meta {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: -0.1px;
}

/* Payment Mode Column */
.payment-mode {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.2rem;
    transition: all 0.3s ease;
}

/* Payment Provider Logo */
.payment-provider-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 3px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.payment-mode:hover .payment-provider-logo {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: rgba(226, 232, 240, 0.8);
}

/* Payment Icons */
.payment-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.payment-icon.credit {
    color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
}

.payment-icon.debit {
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
}

.payment-icon.upi {
    color: #7c3aed;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 1px solid #c4b5fd;
}

.payment-icon.netbanking {
    color: #c2410c;
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border: 1px solid #fdba74;
}

.payment-mode:hover .payment-icon {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Payment Details */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.payment-provider {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-digits {
    font-size: 0.85rem;
    color: #64748b;
    font-family: monospace;
}

/* Dark Mode Support */
[data-theme="dark"] .payment-provider-logo,
[data-theme="dark"] .payment-icon {
    background: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
}

[data-theme="dark"] .payment-icon.credit {
    color: #60a5fa;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .payment-icon.debit {
    color: #34d399;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .payment-icon.upi {
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .payment-icon.netbanking {
    color: #fb923c;
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.2) 0%, rgba(234, 88, 12, 0.2) 100%);
    border-color: rgba(194, 65, 12, 0.4);
}

[data-theme="dark"] .payment-mode:hover .payment-icon {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

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

[data-theme="dark"] .payment-digits {
    color: #94a3b8;
}

/* Status Column */
.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

.status.active {
    color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.status.deactive {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.status.expired {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.status.due-soon {
    color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.status-toggle {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.status-toggle:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Action buttons */
.actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.edit {
    color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
}

.action-btn.edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
}

.action-btn.delete {
    color: #dc2626;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

.action-btn.delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(220, 38, 38, 0.2);
}

.action-btn i {
    font-size: 1rem;
}

/* Dark Mode Support */
[data-theme="dark"] .subscriptions-table {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        0 2px 12px -1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .subscriptions-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .subscriptions-table td {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .subscriptions-table tr:hover {
    background: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .service-name,
[data-theme="dark"] .amount,
[data-theme="dark"] .date-cell .date,
[data-theme="dark"] .payment-mode {
    color: #e2e8f0;
}

[data-theme="dark"] .service-price,
[data-theme="dark"] .amount-period,
[data-theme="dark"] .date-cell .date-meta,
[data-theme="dark"] .payment-mode i {
    color: #94a3b8;
}

[data-theme="dark"] .service-logo {
    background: #1e293b;
    border-color: rgba(51, 65, 85, 0.4);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .payment-mode {
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .service-logo:hover {
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.2);
    background: #2d3748;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    animation: fadeInScale 0.3s ease-out;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    animation: fadeInScale 0.3s ease-out 0.1s both;
}

.empty-state p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    animation: fadeInScale 0.3s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subscriptions-container {
        padding: 1rem;
    }
    
    .subscriptions-table th,
    .subscriptions-table td {
        padding: 1.1rem;
    }
}

@media (max-width: 768px) {
    .subscriptions-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .service-cell {
        min-width: 200px;
    }
    
    .service-logo {
        width: 40px;
        height: 40px;
    }

    .status {
        padding: 0.5rem 0.9rem;
    }
}

/* Scrollbar Styling */
.subscriptions-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.subscriptions-table::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.subscriptions-table::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.subscriptions-table::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Table Row Animations */
.subscriptions-table tr {
    animation: fadeInUp 0.3s ease-out;
    position: relative;
}

/* Hover Effects */
.subscriptions-table tr:hover .service-logo {
    transform: scale(1.05);
}

.subscriptions-table tr:hover .status {
    transform: translateY(-1px);
}

.subscriptions-table tr:hover .actions {
    opacity: 1;
}

/* Action Button Effects */
.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn:active {
    transform: scale(0.95);
}

/* Status Badge Effects */
.status {
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.status:hover::before {
    transform: translateX(100%);
}

/* Service Logo Shine Effect */
.service-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.service-logo:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Dark Mode Enhancements */
[data-theme="dark"] .status::before {
    background: linear-gradient(45deg, transparent, var(--border-light), transparent);
}

[data-theme="dark"] .service-logo::after {
    background: linear-gradient(
        45deg,
        transparent,
        var(--border-light),
        transparent
    );
}

/* Loading Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-hover) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Empty State Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-state {
    animation: fadeInScale 0.3s ease-out;
}

.empty-state i {
    animation: fadeInScale 0.3s ease-out 0.1s both;
}

.empty-state p {
    animation: fadeInScale 0.3s ease-out 0.2s both;
}

/* Next Payment Info */
.next-payment-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    display: inline-block;
}

/* Disabled Next Payment Input */
#nextPayment {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
    color: var(--text-secondary);
}

#nextPayment:focus {
    outline: none;
    box-shadow: none;
}

/* Payment Mode Styles */
.payment-details-container {
    margin-top: 1rem;
}

.provider-container {
    margin-top: 0.8rem;
}

.provider-container.hidden,
.provider-search.hidden,
.card-details.hidden {
    display: none;
}

.provider-search {
    position: relative;
}

.provider-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-left: 2.8rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.provider-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.provider-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

.provider-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.provider-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.provider-option:last-child {
    border-bottom: none;
}

.provider-option:hover {
    background: rgba(59, 130, 246, 0.05);
}

.provider-option img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.provider-option .provider-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.provider-option .provider-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.provider-option .provider-type {
    font-size: 0.8rem;
    color: #64748b;
}

.card-details {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-digits {
    width: 120px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    font-family: monospace;
    background: white;
}

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

.card-digits::placeholder {
    letter-spacing: normal;
    font-family: inherit;
}

/* Payment Method Select Styling */
#paymentMethod {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

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

#paymentMethod option {
    padding: 0.8rem;
}

[data-theme="dark"] #paymentMethod {
    background-color: #1e293b;
    border-color: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

[data-theme="dark"] #paymentMethod:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] #paymentMethod option {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Currency transition effects */
.currency-highlight {
    transition: color 0.3s ease-out, text-shadow 0.3s ease-out;
}

.currency-amount-flash {
    color: #3b82f6 !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    animation: currencyPulse 1s ease-out;
}

@keyframes currencyPulse {
    0% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }
    30% {
        transform: scale(1.05);
        color: #3b82f6;
        text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    }
    100% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }
}

/* Selected currency indicator */
.current-currency {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.current-currency .currency-flag {
    margin-right: 0.25rem;
}

.dark-mode .current-currency,
[data-theme="dark"] .current-currency {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hide currency indicator in header title in dark mode */
.dark-mode .header-title .current-currency,
[data-theme="dark"] .header-title .current-currency {
    display: none !important; /* Force hide the currency indicator in header */
}

/* Toast Notifications */
.notification-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04),
        0 0 1px rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    border-left: 4px solid #3b82f6;
    transform: translateX(-120%);
    opacity: 0;
    animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 2.7s;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.notification:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.1),
        0 3px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px) translateX(0) !important;
    opacity: 1 !important;
    animation-play-state: paused;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
        font-size: 1rem;
    color: #3b82f6;
}

.notification-content {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification.currency {
    border-left-color: #8b5cf6;
}

.notification.currency .notification-icon {
    color: #8b5cf6;
}

@keyframes slideIn {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-120%);
        opacity: 0;
    }
}

/* Dark mode support */
.dark-mode .notification {
    background: rgba(30, 41, 59, 0.98);
    color: #e2e8f0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 1px rgba(255, 255, 255, 0.05);
}

/* Service cell styling */
.service-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.service-price {
    color: #64748b;
    font-size: 0.8rem;
}

/* Amount cell styling */
.amount-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amount {
    font-weight: 600;
    color: #1e293b;
}

.period {
    color: #64748b;
    font-size: 0.8rem;
}

/* Info icon for notes */
.info-icon, .notes-info-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background: #3b82f6 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    margin-left: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    transform: translateY(-1px) !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    z-index: 10 !important;
}

.info-icon:hover, .notes-info-icon:hover {
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25) !important;
    background: #2563eb !important;
}

/* Tooltip for notes */
.info-icon[data-tooltip], .notes-info-icon[data-tooltip], .notes-info-icon[data-notes] {
    position: relative;
}

.info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #334155;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    width: max-content;
    max-width: 300px;
}

.info-icon[data-tooltip]:hover::after, .notes-info-icon[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Dark mode tooltip support */
[data-theme="dark"] .info-icon[data-tooltip]::after,
[data-theme="dark"] .notes-custom-tooltip {
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Notes custom tooltip styling */
.notes-custom-tooltip {
    position: absolute;
    z-index: 1000;
    background: #fff;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    width: max-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    letter-spacing: 0.01em;
    pointer-events: none;
}

/* Dark mode support */
[data-theme="dark"] .info-icon,
[data-theme="dark"] .notes-info-icon,
.dark-mode .info-icon,
.dark-mode .notes-info-icon {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .info-icon:hover,
[data-theme="dark"] .notes-info-icon:hover,
.dark-mode .info-icon:hover,
.dark-mode .notes-info-icon:hover {
    background: #3b82f6 !important;
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Footer Styles */
.site-footer {
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, #2563eb, #3b82f6);
    padding: 1.5rem 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4l-2-2V24h-2v4l-2 2v4h6zm0-30V0h-2v4h-2v2h2v4h2V6h2V4h-2zM6 34v-4l-2-2V24H2v4l-2 2v4h6zM6 4V0H4v4H2v2h2v4h2V6h2V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
}

.footer-logo i {
    color: white;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.footer-link:hover {
    color: white;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.2rem 0;
        margin-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Dark Mode Support for Footer */
[data-theme="dark"] .site-footer,
.dark-mode .site-footer {
    background: linear-gradient(to right, #1e40af, #3b82f6);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.2rem 0;
        margin-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Fix for footer position */
html, body {
    min-height: 100vh;
    position: relative;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 80vh;
} 