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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dark-mode-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Sitemap Styles */
.sitemap-section {
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
}

.sitemap-section h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.sitemap-grid {
    display: grid;
    gap: 3rem;
    margin: 2rem 0;
}

.sitemap-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sitemap-category h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sitemap-links {
    display: grid;
    gap: 1.5rem;
}

.sitemap-item {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

.sitemap-item h3 {
    margin-bottom: 0.5rem;
}

.sitemap-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.sitemap-item h3 a:hover {
    color: #3498db;
}

.sitemap-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sitemap-item ul {
    list-style: none;
    padding: 0;
}

.sitemap-item li {
    padding: 0.25rem 0;
    color: #555;
    position: relative;
    padding-left: 1rem;
}

.sitemap-item li::before {
    content: "▸";
    color: #3498db;
    position: absolute;
    left: 0;
}

.sitemap-item a {
    color: #3498db;
    text-decoration: none;
}

.sitemap-item a:hover {
    text-decoration: underline;
}

.quick-nav {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.quick-nav h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quick-nav-item .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-nav-item span:last-child {
    font-weight: 600;
}

.sitemap-footer {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.sitemap-footer p {
    margin: 0.5rem 0;
    color: #666;
}

/* Main Content */
main {
    margin-top: 70px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Quick Calculator */
.quick-calculator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
}

.quick-calculator h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
}

/* Result Box */
.result-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #27ae60;
}

.result-box h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #27ae60;
}

/* CTA Section */
.cta-section {
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

/* Calculator Section */
.calculator-section {
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
}

.calculator-section h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.calculator-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calc-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.calc-section:last-of-type {
    border-bottom: none;
}

.calc-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.overtime-options,
.night-options {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* Detailed Results */
.detailed-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.detailed-result h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.result-card h3 {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Salary Breakdown */
.salary-breakdown {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.salary-breakdown h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.breakdown-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #27ae60;
    border-top: 2px solid #27ae60;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.calc-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
    background: white;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.tip-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Articles Styles */
.articles-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.articles-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.articles-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.articles-grid {
    padding: 3rem 0;
}

.featured-article {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-article h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.article-meta .category {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.article-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.formula-box {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-details h4 {
    color: #3498db;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.article-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.article-details li {
    margin-bottom: 0.3rem;
    color: #555;
    font-size: 0.9rem;
}

.cta-calculator {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.cta-calculator h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-calculator p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }

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

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

    .result-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .result-actions,
    .calc-actions {
        flex-direction: column;
    }

    .features-grid,
    .tools-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .quick-calculator,
    .calculator-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .calculator-section {
        padding: 1rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}