/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e2f8f5;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: rgba(20, 184, 166, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(20, 184, 166, 0.2);
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.header-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0fdfa;
}

.header-text p {
    font-size: 0.875rem;
    color: #99f6e4;
}

.regime-selector {
    display: flex;
    background: rgba(15, 32, 39, 0.8);
    border-radius: 0.5rem;
    padding: 0.25rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.regime-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #99f6e4;
}

.regime-btn.active {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

.regime-btn:hover:not(.active) {
    color: #f0fdfa;
    background: rgba(20, 184, 166, 0.1);
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.25rem;
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 1px 3px rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(20, 184, 166, 0.3);
    margin-bottom: 2rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #99f6e4;
}

.tab-btn.active {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

.tab-btn:hover:not(.active) {
    color: #f0fdfa;
    background: rgba(20, 184, 166, 0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card Styles */
.card {
    background: rgba(15, 32, 39, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card-header h2,
.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f0fdfa;
}

.income-icon {
    color: #5eead4;
}

.hra-icon {
    color: #2dd4bf;
}

.deduction-icon {
    color: #14b8a6;
}

.info-icon {
    color: #2dd4bf;
}

/* Input Styles */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #99f6e4;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: rgba(15, 32, 39, 0.8);
    color: #f0fdfa;
    transition: all 0.2s;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    background: rgba(15, 32, 39, 0.9);
}

.input-group input[type="number"]::placeholder {
    color: #4fd1c7;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #99f6e4;
}

.radio-label input[type="radio"] {
    margin: 0;
    accent-color: #14b8a6;
}

/* Summary Styles */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2f8f5;
}

.summary-item.total {
    border-top: 1px solid rgba(20, 184, 166, 0.3);
    padding-top: 1rem;
    font-weight: 600;
}

.tax-amount {
    color: #f87171;
    font-weight: 500;
}

.net-income {
    color: #5eead4;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9), rgba(32, 58, 67, 0.9));
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #99f6e4;
}

.info-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: #14b8a6;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Breakdown Styles */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(32, 58, 67, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.breakdown-left {
    flex: 1;
}

.breakdown-slab {
    font-weight: 500;
    color: #f0fdfa;
    margin-bottom: 0.25rem;
}

.breakdown-details {
    font-size: 0.875rem;
    color: #99f6e4;
}

.breakdown-tax {
    font-weight: 500;
    color: #5eead4;
    text-align: right;
}

.breakdown-total {
    border-top: 1px solid rgba(20, 184, 166, 0.3);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-total .breakdown-tax {
    font-weight: 700;
    font-size: 1.125rem;
    color: #f87171;
}

.no-tax-message {
    text-align: center;
    padding: 2rem;
    color: #99f6e4;
}

.no-tax-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4fd1c7;
}

/* Responsive Design */
@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .main-container {
        padding: 1rem;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .regime-selector {
        width: 100%;
        justify-content: center;
    }
}

/* Animation */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.4);
}

input[type="number"]:hover {
    border-color: rgba(20, 184, 166, 0.5);
}

/* Loading States */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-red {
    color: #f87171;
}

.text-green {
    color: #5eead4;
}

.text-blue {
    color: #2dd4bf;
}