* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidebar {
    width: 220px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    padding: 40px 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-top,
.nav-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    color: #999;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: #ffffff;
    background: #2a2a2a;
    border-color: #ffffff;
}

.nav-item.active {
    color: #ffffff;
    border-color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #141313;
    min-height: 100vh;
    padding: 0;
    display: flex;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    margin-left: 260px; /* Account for sidebar width (220px) + padding */
    padding: 60px 40px;
    flex: 1;
}

h1 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 48px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

.metric-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #3a3a3a;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.metric-value {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}

.metric-suffix {
    font-size: 1.2rem;
    color: #666;
    margin-left: 4px;
}

.metric-subtext {
    font-size: 0.9rem;
    color: #999;
    margin-top: 8px;
    font-weight: 500;
}

.renewals-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #2a2a2a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.count-badge {
    background: #ffffff;
    color: #0a0a0a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.renewals-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.renewal-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s ease;
}

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

.renewal-item:hover {
    padding-left: 8px;
}

.renewal-date {
    min-width: 100px;
    color: #666;
    font-size: 0.9rem;
}

.renewal-date.urgent {
    color: #ef4444;
    font-weight: 600;
}

.renewal-date.soon {
    color: #f59e0b;
    font-weight: 600;
}

.renewal-name {
    flex: 1;
    color: #e5e5e5;
    font-size: 1rem;
    font-weight: 500;
}

.renewal-amount {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.divider {
    width: 2px;
    height: 20px;
    background: #2a2a2a;
    margin: 0 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    z-index: 150;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* Menu icon animation when active */
.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
}

/* Light mode mobile menu */
[data-theme="light"] .mobile-menu-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .mobile-menu-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

[data-theme="light"] .menu-icon,
[data-theme="light"] .menu-icon::before,
[data-theme="light"] .menu-icon::after {
    background: var(--text-primary);
}

[data-theme="light"] .mobile-menu-btn.active .menu-icon {
    background: transparent;
}

@media (max-width: 640px) {
    body {
        padding: 32px 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .date {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .metric-card {
        padding: 24px 20px;
    }

    .metric-value {
        font-size: 2.2rem;
    }

    .renewals-section {
        padding: 24px 20px;
    }

    .section-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .renewal-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 0;
    }

    .renewal-date {
        min-width: auto;
        width: 100%;
        font-size: 0.85rem;
    }

    .renewal-name {
        font-size: 0.95rem;
    }

    .renewal-amount {
        font-size: 1rem;
    }

    .divider {
        display: none;
    }
}

/* Subscriptions List Styles */
.header {
    margin-bottom: 40px;
    position: relative;
}

.add-button {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.add-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

.add-button.active {
    transform: rotate(45deg);
}

/* Add Modal Styles - matches edit modal */
.add-modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.form-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.form-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.status-toggle {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.status-option {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    color: #999;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-option:hover {
    border-color: #3a3a3a;
}

.status-option.selected {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #999;
}

.btn-cancel:hover {
    border-color: #3a3a3a;
    color: #ffffff;
}

.btn-save {
    background: #ffffff;
    border: none;
    color: #0a0a0a;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Edit Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.visible {
    display: flex;
}

.edit-modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.close-button {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.modal-body {
    padding: 32px;
}

.section {
    margin-bottom: 32px;
}

.section-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 24px 0;
}

/* Historical Costs */
.historical-costs-description {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.historical-costs {
    margin-top: 16px;
}

.cost-entry {
    display: grid;
    grid-template-columns: 140px 1fr 100px 40px;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: #0a0a0a;
    border-radius: 8px;
}

.cost-date,
.cost-amount {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.9rem;
}

.cost-date:focus,
.cost-amount:focus {
    outline: none;
    border-color: #3a3a3a;
}

.cost-note {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.9rem;
}

.cost-note::placeholder {
    color: #666;
}

.cost-note:focus {
    outline: none;
    border-color: #3a3a3a;
}

.remove-cost {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-cost:hover {
    background: #ef4444;
    color: #ffffff;
}

.add-cost-button {
    background: #2a2a2a;
    border: 1px dashed #3a3a3a;
    color: #999;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-cost-button:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: #1a1a1a;
}

.costs-summary {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    color: #666;
    font-size: 0.9rem;
}

.summary-value {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: #1a1a1a;
}

/* Delete Confirmation Modal */
.delete-modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.delete-warning {
    text-align: center;
    padding: 24px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    margin-bottom: 24px;
}

.delete-warning .warning-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.delete-warning p {
    color: #ef4444;
    font-size: 1rem;
    line-height: 1.5;
}

.delete-summary {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 20px;
}

.delete-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.delete-summary .summary-row:last-child {
    border-bottom: none;
}

.delete-summary .summary-label {
    color: #666;
    font-size: 0.9rem;
}

.delete-summary .summary-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-delete {
    background: #ef4444;
    border: none;
    color: #ffffff;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Light theme support for delete modal */
[data-theme="light"] .delete-modal {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .delete-warning {
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .delete-summary {
    background: var(--bg-tertiary);
}

[data-theme="light"] .delete-summary .summary-row {
    border-color: var(--border-color);
}

[data-theme="light"] .delete-summary .summary-label {
    color: var(--text-tertiary);
}

[data-theme="light"] .delete-summary .summary-value {
    color: var(--text-primary);
}

.frequency-toggle {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.frequency-option {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    color: #999;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.frequency-option:hover {
    border-color: #3a3a3a;
}

.frequency-option.selected {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #93bbf7;
    line-height: 1.5;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Frequency custom input container */
.frequency-custom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frequency-prefix {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.frequency-value-input {
    width: 70px;
    text-align: center;
}

.frequency-unit-select {
    flex: 1;
}

.controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px 12px 44px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #999;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #3a3a3a;
    color: #ffffff;
}

.filter-btn.active {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.sort-dropdown {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.stats-bar {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subscriptions-table {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr 100px;
    gap: 16px;
    padding: 20px 28px;
    background: #141414;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.subscription-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr 100px;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
    transition: all 0.2s ease;
}

.subscription-row:last-child {
    border-bottom: none;
}

.subscription-row:hover {
    background: #141414;
    cursor: pointer;
}

.sub-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

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

.sub-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.sub-description {
    color: #666;
    font-size: 0.85rem;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #2a2a2a;
    color: #999;
}

.price {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-period {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

.billing-date {
    color: #e5e5e5;
    font-size: 0.9rem;
}

.billing-date.urgent {
    color: #ef4444;
    font-weight: 600;
}

.billing-date.soon {
    color: #f59e0b;
    font-weight: 600;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active .status-dot {
    background: #10b981;
}

.status-active {
    color: #10b981;
}

.status-trial .status-dot {
    background: #3b82f6;
}

.status-trial {
    color: #3b82f6;
}

.annual-cost {
    color: #999;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #ffffff;
}

/* Icon colors */
.icon-netflix { background: linear-gradient(135deg, #e50914 0%, #b20710 100%); }
.icon-spotify { background: linear-gradient(135deg, #1db954 0%, #1aa34a 100%); }
.icon-adobe { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.icon-youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.icon-dropbox { background: linear-gradient(135deg, #0061ff 0%, #0050cc 100%); }
.icon-icloud { background: linear-gradient(135deg, #007aff 0%, #0062cc 100%); }
.icon-gym { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.icon-amazon { background: linear-gradient(135deg, #ff9900 0%, #cc7a00 100%); }
.icon-notion { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); }
.icon-github { background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%); }
.icon-figma { background: linear-gradient(135deg, #f24e1e 0%, #ff7262 100%); }
.icon-chatgpt { background: linear-gradient(135deg, #10a37f 0%, #0d8a6a 100%); }

/* Dynamic category icon colors */
.icon-red { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); }
.icon-blue { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); }
.icon-green { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); }
.icon-purple { background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%); }
.icon-orange { background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%); }
.icon-teal { background: linear-gradient(135deg, #00acc1 0%, #00838f 100%); }
.icon-default { background: linear-gradient(135deg, #666666 0%, #444444 100%); }

@media (max-width: 1024px) {
    .table-header,
    .subscription-row {
        grid-template-columns: 2fr 1fr 1fr 80px;
    }

    .table-header .hide-mobile,
    .subscription-row .hide-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 32px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.visible {
        pointer-events: auto;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }

    .sidebar.visible {
        transform: translateX(0);
    }

    .container {
        margin-left: 0;
        padding: 70px 16px 40px 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .add-button {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .stats-bar {
        padding: 16px 20px;
        gap: 16px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .table-header {
        display: none;
    }

    .subscription-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .sub-name {
        grid-column: 1;
    }

    .category-badge,
    .price,
    .billing-date,
    .status-indicator,
    .annual-cost {
        font-size: 0.85rem;
    }

    .actions {
        justify-content: flex-end;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .cost-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .remove-cost {
        justify-self: end;
    }
}

/* ========================================
   Settings Page Styles
   ======================================== */

.settings-container {
    max-width: 800px;
}

.settings-section {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    margin-bottom: 24px;
    overflow: hidden;
}

.settings-section .section-header {
    padding: 24px 28px;
    margin-bottom: 0;
    border-bottom: 1px solid #2a2a2a;
}

.settings-content {
    padding: 8px 28px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    gap: 24px;
}

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

.setting-item-stacked {
    flex-direction: column;
    align-items: stretch;
}

.setting-info {
    flex: 1;
}

.setting-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.setting-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.setting-select {
    width: auto;
    min-width: 140px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #666;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4f46e5;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #ffffff;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 8px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: #3a3a3a;
    color: #ffffff;
}

.theme-option.selected {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.theme-icon {
    font-size: 1.2rem;
}

/* Layout Toggle */
.layout-toggle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.layout-option:hover {
    border-color: #3a3a3a;
    color: #ffffff;
}

.layout-option.selected {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #ffffff;
}

.layout-preview {
    width: 60px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 4px;
    position: relative;
    opacity: 0.6;
}

.layout-option.selected .layout-preview {
    opacity: 1;
}

/* Layout preview icons - showing content alignment */
.layout-preview::before {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}

.left-compact-preview::before {
    left: 4px;
    top: 8px;
    width: 24px;
    height: 24px;
}

.left-wide-preview::before {
    left: 4px;
    top: 8px;
    width: 40px;
    height: 24px;
}

.center-compact-preview::before {
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    width: 24px;
    height: 24px;
}

.center-wide-preview::before {
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    width: 40px;
    height: 24px;
}

/* ========================================
   Layout Variations
   ======================================== */

/* Left Compact (Default) - content left aligned, compact width */
[data-layout="left-compact"] .container {
    max-width: 900px;
    margin-left: 260px;
    margin-right: auto;
}

/* Left Wide - content left aligned, wider width */
[data-layout="left-wide"] .container {
    max-width: 1400px;
    margin-left: 260px;
    margin-right: 40px;
}

/* Center Compact - content centered, compact width (20% wider than before) */
[data-layout="center-compact"] .container {
    max-width: 1080px;
    margin-left: max(260px, calc((100vw - 860px) / 2));
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Center Wide - content centered, wider width */
[data-layout="center-wide"] .container {
    max-width: 1400px;
    margin-left: max(260px, calc((100vw - 1180px) / 2));
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Adjust settings container for layout modes */
[data-layout="left-compact"] .settings-container {
    max-width: 800px;
}

[data-layout="left-wide"] .settings-container {
    max-width: 1000px;
}

/* Center the settings container properly in center layouts */
[data-layout="center-compact"] .settings-container {
    max-width: 800px;
    margin-left: max(260px, calc((100vw - 580px) / 2));
}

[data-layout="center-wide"] .settings-container {
    max-width: 1000px;
    margin-left: max(260px, calc((100vw - 780px) / 2));
}

/* Adjust metrics grid for wide layouts */
[data-layout="left-wide"] .metrics-grid,
[data-layout="center-wide"] .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Adjust table columns for wide layouts */
[data-layout="left-wide"] .table-header,
[data-layout="left-wide"] .subscription-row,
[data-layout="center-wide"] .table-header,
[data-layout="center-wide"] .subscription-row {
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr 120px;
}

/* Mobile responsive - ignore layout settings */
@media (max-width: 768px) {
    [data-layout] .container {
        margin-left: 0;
        margin-right: 0;
        padding: 70px 16px 40px 16px;
        max-width: 100%;
    }
}

/* Password Form */
.password-form {
    margin-top: 16px;
    width: 100%;
}

.password-form .form-group {
    margin-bottom: 12px;
}

.form-actions-inline {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.form-actions-inline .btn {
    flex: none;
    padding: 10px 24px;
}

/* Button Variants */
.btn-secondary {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.btn-danger {
    background: #dc2626;
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.setting-item-danger {
    border-color: rgba(220, 38, 38, 0.2);
}

.setting-item-danger .setting-title {
    color: #ef4444;
}

/* Warning Box */
.warning-box {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #fca5a5;
    line-height: 1.6;
}

.warning-box ul {
    margin: 12px 0 0 20px;
    padding: 0;
}

.warning-box li {
    margin-bottom: 4px;
}

/* Delete Modal */
.delete-modal {
    max-width: 480px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.visible {
    transform: translateY(0);
    opacity: 1;
}

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

.toast.error {
    border-color: #ef4444;
    background: rgba(220, 38, 38, 0.1);
}

/* ========================================
   Light Mode Theme
   ======================================== */

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --border-color: #e9ecef;
    --border-hover: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-tertiary: #868e96;
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

[data-theme="light"] .sidebar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .nav-item {
    color: var(--text-tertiary);
}

[data-theme="light"] .nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
}

[data-theme="light"] .nav-item.active {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

[data-theme="light"] h1,
[data-theme="light"] .section-title,
[data-theme="light"] .modal-title {
    color: var(--text-primary);
}

[data-theme="light"] .date,
[data-theme="light"] .metric-label,
[data-theme="light"] .setting-description,
[data-theme="light"] .form-label {
    color: var(--text-tertiary);
}

[data-theme="light"] .container {
    color: var(--text-primary);
}

[data-theme="light"] .metric-card,
[data-theme="light"] .renewals-section,
[data-theme="light"] .settings-section,
[data-theme="light"] .subscriptions-table,
[data-theme="light"] .stats-bar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .metric-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .metric-value,
[data-theme="light"] .setting-title,
[data-theme="light"] .sub-title,
[data-theme="light"] .price,
[data-theme="light"] .renewal-amount {
    color: var(--text-primary);
}

[data-theme="light"] .metric-suffix {
    color: var(--text-tertiary);
}

[data-theme="light"] .section-header {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .renewal-item,
[data-theme="light"] .setting-item,
[data-theme="light"] .subscription-row {
    border-color: var(--border-color);
}

[data-theme="light"] .renewal-item:hover,
[data-theme="light"] .subscription-row:hover {
    background: var(--bg-tertiary);
}

[data-theme="light"] .renewal-name,
[data-theme="light"] .billing-date {
    color: var(--text-secondary);
}

[data-theme="light"] .renewal-date,
[data-theme="light"] .annual-cost {
    color: var(--text-tertiary);
}

[data-theme="light"] .divider {
    background: var(--border-color);
}

[data-theme="light"] .add-button {
    background: var(--text-primary);
    color: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .add-button:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .add-modal,
[data-theme="light"] .edit-modal,
[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .form-header,
[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer,
[data-theme="light"] .form-actions {
    border-color: var(--border-color);
}

[data-theme="light"] .form-title {
    color: var(--text-primary);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .search-box input,
[data-theme="light"] .cost-date,
[data-theme="light"] .cost-amount,
[data-theme="light"] .cost-note {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .search-box input:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-input::placeholder {
    color: var(--text-tertiary);
}

[data-theme="light"] .status-option,
[data-theme="light"] .frequency-option,
[data-theme="light"] .theme-option {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .status-option:hover,
[data-theme="light"] .frequency-option:hover,
[data-theme="light"] .theme-option:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

[data-theme="light"] .status-option.selected,
[data-theme="light"] .frequency-option.selected,
[data-theme="light"] .theme-option.selected,
[data-theme="light"] .layout-option.selected {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

[data-theme="light"] .layout-option {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .layout-option:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

[data-theme="light"] .btn-cancel {
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .btn-cancel:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

[data-theme="light"] .btn-save {
    background: var(--text-primary);
    color: var(--bg-secondary);
}

[data-theme="light"] .btn-save:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--border-color);
}

[data-theme="light"] .toggle-slider {
    background-color: var(--border-color);
}

[data-theme="light"] .toggle-slider:before {
    background-color: var(--text-tertiary);
}

[data-theme="light"] .count-badge {
    background: var(--text-primary);
    color: var(--bg-secondary);
}

[data-theme="light"] .filter-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

[data-theme="light"] .filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

[data-theme="light"] .category-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .table-header {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .sort-dropdown {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .stat-label {
    color: var(--text-tertiary);
}

[data-theme="light"] .stat-value {
    color: var(--text-primary);
}

[data-theme="light"] .action-btn {
    color: var(--text-tertiary);
}

[data-theme="light"] .action-btn:hover {
    color: var(--text-primary);
}

[data-theme="light"] .close-button {
    color: var(--text-tertiary);
}

[data-theme="light"] .close-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .cost-entry {
    background: var(--bg-tertiary);
}

[data-theme="light"] .add-cost-button {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .add-cost-button:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-secondary);
}

[data-theme="light"] .costs-summary {
    background: var(--bg-tertiary);
}

[data-theme="light"] .summary-label {
    color: var(--text-tertiary);
}

[data-theme="light"] .summary-value {
    color: var(--text-primary);
}

[data-theme="light"] .historical-costs-description {
    color: var(--text-tertiary);
}

[data-theme="light"] .subtitle {
    color: var(--text-tertiary);
}

[data-theme="light"] .frequency-prefix {
    color: var(--text-secondary);
}

[data-theme="light"] .info-box {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

[data-theme="light"] .modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .toast {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .warning-box {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
}

/* Mobile Settings */
@media (max-width: 768px) {
    .settings-content {
        padding: 8px 20px;
    }

    .settings-section .section-header {
        padding: 20px;
    }

    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .theme-toggle {
        width: 100%;
    }

    .theme-option {
        flex: 1;
    }

    .setting-select {
        width: 100%;
    }

    .toggle-switch {
        align-self: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ========================================
   Admin Panel Styles
   ======================================== */

.admin-stats {
    margin-bottom: 32px;
}

.admin-table .admin-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.admin-table .admin-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    color: #999;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-date {
    color: #e5e5e5;
    font-size: 0.9rem;
}

.user-subs,
.user-subs-total {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.admin-badge {
    display: inline-block;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending .status-dot {
    background: #f59e0b;
}

.status-pending {
    color: #f59e0b;
}

/* Admin nav item styling */
.nav-item.admin-nav {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.nav-item.admin-nav:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

/* Light mode admin styles */
[data-theme="light"] .user-email {
    color: var(--text-tertiary);
}

[data-theme="light"] .user-date {
    color: var(--text-secondary);
}

[data-theme="light"] .user-subs,
[data-theme="light"] .user-subs-total {
    color: var(--text-primary);
}

[data-theme="light"] .admin-badge {
    background: #7c3aed;
}

/* Mobile admin styles */
@media (max-width: 1024px) {
    .admin-table .admin-header,
    .admin-table .admin-row {
        grid-template-columns: 2fr 1fr 1fr 80px;
    }

    .admin-table .admin-header > div:nth-child(2),
    .admin-table .admin-row > div:nth-child(2),
    .admin-table .admin-header > div:nth-child(6),
    .admin-table .admin-row > div:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-table .admin-header {
        display: none;
    }

    .admin-table .admin-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-table .admin-row > div {
        display: block !important;
    }

    .user-email {
        font-size: 0.85rem;
    }
}

/* ========================================
   Profile Management Styles
   ======================================== */

.profiles-list {
    margin: 16px 0;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.profile-item:hover {
    border-color: #3a3a3a;
}

.profile-item.active {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-count {
    color: #666;
    font-size: 0.8rem;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-action-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.profile-action-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.add-profile-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.add-profile-form .form-input {
    flex: 1;
}

.add-profile-form .btn {
    flex: none;
    padding: 12px 20px;
}

.empty-profiles {
    padding: 24px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    background: #0a0a0a;
    border: 1px dashed #2a2a2a;
    border-radius: 8px;
}

/* All Profiles Summary Box */
.all-profiles-summary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: none;
}

.all-profiles-summary .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.all-profiles-summary .summary-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.all-profiles-summary .summary-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1px;
}

.all-profiles-summary .summary-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 4px;
}

.profile-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-breakdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-breakdown-item .breakdown-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.profile-breakdown-item .breakdown-amount {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Current Profile Indicator */
.current-profile-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #a5b4fc;
    margin-left: 16px;
}

.current-profile-indicator .profile-dot {
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
}

/* Light mode profile styles */
[data-theme="light"] .profile-item {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="light"] .profile-item:hover {
    border-color: var(--border-hover);
}

[data-theme="light"] .profile-item.active {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

[data-theme="light"] .profile-name {
    color: var(--text-primary);
}

[data-theme="light"] .profile-count {
    color: var(--text-tertiary);
}

[data-theme="light"] .profile-action-btn {
    color: var(--text-tertiary);
}

[data-theme="light"] .profile-action-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .empty-profiles {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

[data-theme="light"] .current-profile-indicator {
    background: rgba(79, 70, 229, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

/* Mobile profile styles */
@media (max-width: 768px) {
    .add-profile-form {
        flex-direction: column;
    }

    .add-profile-form .btn {
        width: 100%;
    }

    .all-profiles-summary {
        padding: 20px;
    }

    .all-profiles-summary .summary-amount {
        font-size: 1.6rem;
    }

    .profile-breakdown {
        flex-direction: column;
    }
}