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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: #1A1A1A;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Navbar */
.navbar {
    background: #FFFFFF;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6F00;
    padding: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-info span {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 400;
}

.cta-button {
    background: #007BFF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: #005FCC;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(1px);
}

/* Hero Section */
.hero {
    background: #FFFFFF;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: #3A3A3A;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    flex: 1;
    padding: 48px 0 64px 0;
    background-color: #F8FAFC;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.section-description {
    font-size: 1rem;
    font-weight: 400;
    color: #6B7280;
}

/* Product Grid - Regular (3 items per row) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Product Card */
.product-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 20px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    aspect-ratio: 3 / 4;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #E5E7EB;
}

.product-card:active {
    transform: translateY(-2px);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
    line-height: 1.4;
}

.card-description {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
    text-align: center;
    line-height: 1.5;
}

/* Badge */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6F00;
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.01em;
}

/* Product Page */
.product-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
    min-height: calc(100vh - 80px - 72px); /* viewport height minus navbar and footer */
}

.product-page-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.page-description {
    font-size: 1rem;
    font-weight: 400;
    color: #3A3A3A;
}

/* Footer */
.footer {
    background: #E5E7EB;
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: #3A3A3A;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #007BFF;
    text-decoration: underline;
}

.footer p {
    font-size: 0.875rem;
    color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        height: auto;
        padding: 16px 0;
    }

    .navbar-content {
        flex-direction: column;
        gap: 16px;
    }

    .logo h2 {
        padding: 0;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }

    .products-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

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

    .section-description {
        font-size: 0.875rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 20px;
    }

    .product-card {
        min-height: 180px;
        padding: 28px 18px;
        aspect-ratio: 3 / 4;
    }

    .card-icon svg {
        width: 40px;
        height: 40px;
    }

    .card-title {
        font-size: 0.875rem;
    }

    .card-description {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Salary Calculator Styles */
.salary-calculator {
    flex: 1;
    padding: 40px 0 64px 0;
    background-color: #F8FAFC;
}

.calculator-content {
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-content .page-title {
    text-align: center;
    margin-bottom: 8px;
}

.calculator-content .page-description {
    text-align: center;
    margin-bottom: 32px;
}

/* Button Section */
.calculator-button-section {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.calculate-button {
    background: #007BFF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.calculate-button:hover {
    background: #005FCC;
    transform: translateY(-1px);
}

.calculate-button:active {
    transform: translateY(1px);
}

/* Tabs */
.tabs-container {
    margin-bottom: 32px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #E5E7EB;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: #007BFF;
}

.tab-button.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
}

.tab-content {
    display: none;
}

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

.empty-tab-message {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 64px 32px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.empty-tab-message p {
    font-size: 1.125rem;
    color: #666666;
    font-weight: 500;
}

/* Summary Section */
.summary-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.summary-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    margin-bottom: 12px;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A1A1A;
}

.summary-value.success {
    color: #10B981;
}

.summary-value.primary {
    color: #007BFF;
}

.summary-value.danger {
    color: #EF4444;
}

.summary-value.empty-value {
    color: #9CA3AF !important;
}

/* Results Section */
.results-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

.table-container {
    overflow-x: auto;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.salary-table thead {
    background: #F8FAFC;
}

.salary-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #1A1A1A;
    border-bottom: 2px solid #E5E7EB;
    white-space: nowrap;
}

.salary-table td {
    padding: 14px 12px;
    color: #3A3A3A;
    border-bottom: 1px solid #F3F4F6;
}

.salary-table tbody tr:hover {
    background: #F8FAFC;
}

.salary-table tbody tr:last-child td {
    border-bottom: none;
}

.salary-table .net-salary {
    color: #10B981;
    font-weight: 600;
}

.salary-table .brut-salary {
    color: #007BFF;
    font-weight: 600;
}

.tax-rate {
    font-size: 0.75rem;
    color: #666666;
    font-weight: 400;
}

.salary-table .empty-row td {
    color: #9CA3AF;
    text-align: center;
}

.salary-table .empty-row td:first-child {
    text-align: left;
}

.brut-input,
.net-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease-in-out;
    box-sizing: border-box;
}

.brut-input:focus,
.net-input:focus {
    outline: none;
    border-color: #007BFF;
}

.brut-input::placeholder,
.net-input::placeholder {
    color: #9CA3AF;
}

.result-cell {
    color: #3A3A3A;
}

/* Responsive Design for Calculator */
@media (max-width: 768px) {
    .calculate-button {
        width: 100%;
    }

    .summary-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .salary-table {
        font-size: 0.75rem;
    }

    .salary-table th,
    .salary-table td {
        padding: 10px 8px;
    }

    .summary-value {
        font-size: 1.5rem;
    }

    .results-section {
        padding: 20px;
    }
}
