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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #FFFFFF;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
}

.btn-primary {
    background-color: #1e40af;
    color: #FFFFFF;
    font-weight: 700;
    border: 2px solid #1e40af;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #1f2937;
    border: 2px solid #374151;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #374151;
    color: #FFFFFF;
    border-color: #374151;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004B87;
    margin: 0;
    line-height: 1.2;
}

.logo p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004B87;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-items {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-items li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #004B87;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #004B87;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > .nav-link {
    cursor: pointer;
}

.dropdown > .nav-link::after {
    content: '';
    border: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #004B87;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: #F8F9FA;
    color: #004B87;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333333;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #FFFFFF;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
}

.mobile-nav-list {
    list-style: none;
    margin-top: 60px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Mobile Dropdown Styles */
.mobile-nav-dropdown {
    margin-bottom: 20px;
}

.mobile-nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 0;
    cursor: pointer;
}

.mobile-nav-dropdown-toggle::after {
    content: '';
    border: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.mobile-nav-dropdown.open .mobile-nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.mobile-nav-dropdown.open .mobile-nav-dropdown-menu {
    max-height: 300px;
}

.mobile-nav-dropdown-item {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #004B87 0%, #0066CC 100%);
    color: #FFFFFF;
    padding: 80px 0;
}

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

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

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Banner */
.info-banner {
    background-color: #F8F9FA;
    border-left: 4px solid #E10019;
    padding: 16px 0;
}

.info-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Sections */
section {
    padding: 60px 0;
}

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

.section-title {
    color: #004B87;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    background-color: #F8F9FA;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form,
.calculator-result {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculator-form h3,
.calculator-result h3 {
    color: #004B87;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E0E0E0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #004B87;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Result Styles */
.result-content {
    min-height: 200px;
}

.result-placeholder {
    color: #4a4a4a;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.result-summary {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.result-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004B87;
    margin-bottom: 8px;
}

.result-details {
    margin-top: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E0E0E0;
}

.result-row:last-child {
    border-bottom: none;
    font-weight: 600;
    background-color: #F8F9FA;
    margin: 12px -8px -8px;
    padding: 12px 8px;
    border-radius: 4px;
}

/* Tariff Tables */
.tariff-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.tariff-table-wrapper {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tariff-table-wrapper h3 {
    background-color: #004B87;
    color: #FFFFFF;
    padding: 20px;
    margin: 0;
}

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

.tariff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tariff-table th,
.tariff-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.tariff-table th {
    background-color: #F8F9FA;
    font-weight: 600;
    color: #004B87;
    position: sticky;
    top: 0;
}

.tariff-table tr:hover {
    background-color: #F8F9FA;
}

.tariff-table td:first-child {
    font-weight: 600;
    background-color: #F8F9FA;
}

.tariff-table td:not(:first-child) {
    text-align: right;
    font-family: monospace;
}

/* Info Cards */
.tariff-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #004B87;
    margin-bottom: 12px;
}

.info-card p {
    margin: 0;
    color: #4a4a4a;
}

/* Information Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card-large {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #004B87;
}

.info-card-large h3 {
    color: #004B87;
    margin-bottom: 16px;
}

.info-card-large p {
    color: #666666;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #004B87;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .calculator-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculator-form,
    .calculator-result {
        padding: 20px;
    }

    .tariff-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tariff-table {
        font-size: 0.8rem;
    }

    .tariff-table th,
    .tariff-table td {
        padding: 8px 12px;
    }

    section {
        padding: 40px 0;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }

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

    .calculator-form,
    .calculator-result {
        padding: 16px;
    }

    .info-card,
    .info-card-large {
        padding: 20px;
    }

    .tariff-table-wrapper h3 {
        padding: 16px;
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #004B87;
    outline-offset: 2px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #F8F9FA;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #666666;
    font-weight: 600;
}

.breadcrumb-list a {
    color: #004B87;
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background-color: #F8F9FA;
    padding: 40px 0;
    border-bottom: 1px solid #E0E0E0;
}

.page-title {
    color: #004B87;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0;
}

/* Calculator Tools Grid */
.calculator-tools {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E0E0E0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tool-card {
    display: block;
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #004B87;
}

.tool-card svg {
    margin-bottom: 12px;
}

.tool-card h3 {
    color: #004B87;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.tool-card p {
    color: #4a4a4a;
    margin: 0;
    font-size: 0.95rem;
}

/* Vacation Calculator Specific */
.vacation-info {
    margin-top: 40px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Additional Tables */
.additional-tables {
    margin-top: 60px;
}

.table-section {
    margin-bottom: 40px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.info-table th {
    background-color: #004B87;
    color: #FFFFFF;
    font-weight: 600;
}

.info-table tr:hover {
    background-color: #F8F9FA;
}

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

/* Comparison Tool */
.comparison-tool {
    margin-top: 60px;
    padding: 40px;
    background-color: #F8F9FA;
    border-radius: 8px;
    text-align: center;
}

.quick-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.link {
    color: #004B87;
    text-decoration: underline;
    font-weight: 600;
}

.link:hover {
    color: #00365f;
}

/* SEO Content */
.seo-content {
    background-color: #F8F9FA;
    padding: 60px 0;
}

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

.seo-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seo-card h2 {
    color: #004B87;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.seo-card p {
    color: #4a4a4a;
    margin: 0;
    line-height: 1.6;
}

.seo-card ul {
    color: #4a4a4a;
    margin: 16px 0 0 20px;
    line-height: 1.6;
}

/* Stage Calculator Specific */
.stage-info {
    margin-top: 40px;
}

.stage-timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: #E0E0E0;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #004B87;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    color: #004B87;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #4a4a4a;
    margin: 0;
}

/* Stage Result Specific */
.salary-progression {
    background-color: #F8F9FA;
    border-radius: 4px;
    padding: 16px;
}

.progression-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E0E0E0;
}

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

.progression-row.current {
    background-color: #E8F4FD;
    margin: 0 -8px;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
}

.salary-increase {
    margin-top: 16px;
    padding: 12px;
    background-color: #E8F5E8;
    border-radius: 4px;
    color: #2D5A2D;
    text-align: center;
}

.vacation-details {
    background-color: #F8F9FA;
    border-radius: 4px;
    padding: 16px;
}

.detail-item {
    margin-bottom: 8px;
    color: #666666;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.form-help {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 4px;
    display: block;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        margin-bottom: 20px;
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
        margin-right: 16px;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 15px;
        top: 32px;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-tool {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .progression-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Comparison Calculator Specific */
.comparison-setup {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.comparison-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.selector-group {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #E0E0E0;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004B87;
    color: #FFFFFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 40px;
}

.common-settings {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.comparison-results {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.comparison-overview {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-summary h3 {
    color: #004B87;
    margin-bottom: 20px;
}

.difference-highlight {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.difference-highlight.positive {
    background-color: #E8F5E8;
    border-left: 4px solid #28a745;
}

.difference-highlight.negative {
    background-color: #FDF2F2;
    border-left: 4px solid #dc3545;
}

.difference-amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.difference-highlight.positive .difference-amount,
.difference-highlight.positive .difference-percentage {
    color: #28a745;
}

.difference-highlight.negative .difference-amount,
.difference-highlight.negative .difference-percentage {
    color: #dc3545;
}

.difference-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 8px;
}

.difference-period {
    display: block;
    font-size: 0.9rem;
    color: #666666;
    margin-top: 4px;
}

.annual-difference {
    font-size: 1.1rem;
    color: #666666;
}

.position-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.position-card {
    background-color: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #E0E0E0;
}

.position-card h3 {
    color: #004B87;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E0E0E0;
}

.salary-breakdown {
    margin-bottom: 20px;
}

.salary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E0E0E0;
}

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

.salary-row.total {
    background-color: #E8F4FD;
    margin: 12px -12px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.career-info {
    border-top: 2px solid #E0E0E0;
    padding-top: 16px;
}

.career-info h4 {
    color: #004B87;
    margin-bottom: 12px;
    font-size: 1rem;
}

.career-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.comparison-analysis {
    background-color: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comparison-analysis h3 {
    color: #004B87;
    margin-bottom: 16px;
}

.recommendation {
    margin: 0;
    padding: 16px;
    border-radius: 4px;
    line-height: 1.6;
}

.recommendation.positive {
    background-color: #E8F5E8;
    border-left: 4px solid #28a745;
    color: #2D5A2D;
}

.recommendation.negative {
    background-color: #FDF2F2;
    border-left: 4px solid #dc3545;
    color: #5A2D2D;
}

.recommendation.neutral {
    background-color: #E8F4FD;
    border-left: 4px solid #004B87;
    color: #2D4A5A;
}

/* Quick Presets */
.quick-presets {
    margin-top: 40px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.preset-card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.preset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #004B87;
}

.preset-card h3 {
    color: #004B87;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.preset-card p {
    color: #4a4a4a;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments for comparison calculator */
@media (max-width: 768px) {
    .comparison-selectors {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .position-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .difference-amount {
        font-size: 1.5rem;
    }
    
    .presets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .comparison-setup,
    .comparison-results {
        padding: 20px;
    }
    
    .position-card {
        padding: 16px;
    }
    
    .salary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Legal Pages Specific */
.legal-section {
    padding: 60px 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #004B87;
}

.legal-card h2 {
    color: #004B87;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-card h3 {
    color: #004B87;
    margin-bottom: 16px;
    margin-top: 24px;
    font-size: 1.25rem;
}

.legal-card p {
    color: #4a4a4a;
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-card ul {
    color: #4a4a4a;
    margin: 16px 0 16px 20px;
    line-height: 1.6;
}

.legal-card li {
    margin-bottom: 8px;
}

.legal-card a {
    color: #004B87;
    text-decoration: underline;
}

.legal-card a:hover {
    color: #00365f;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-info h3 {
    margin-top: 0;
}

.back-navigation {
    text-align: center;
    margin-top: 40px;
}

/* Information Page Specific */
.information-section {
    padding: 60px 0;
}

.info-card-large {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #004B87;
    margin-bottom: 30px;
}

.info-card-large h2 {
    color: #004B87;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.info-card-large p {
    color: #4a4a4a;
    margin-bottom: 16px;
    line-height: 1.6;
}

.info-card-large ul {
    color: #4a4a4a;
    margin: 16px 0 16px 20px;
    line-height: 1.6;
}

.info-card-large li {
    margin-bottom: 8px;
}

.quick-access {
    background-color: #F8F9FA;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.quick-access h2 {
    color: #004B87;
    margin-bottom: 20px;
}

.quick-access .quick-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-card,
    .info-card-large {
        padding: 20px;
    }
    
    .quick-access {
        padding: 24px;
    }
    
    .quick-access .quick-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .legal-section,
    .information-section {
        padding: 40px 0;
    }
    
    .legal-card,
    .info-card-large {
        padding: 16px;
    }
    
    .legal-card h2,
    .info-card-large h2 {
        font-size: 1.3rem;
    }
    
    .legal-card h3,
    .info-card-large h3 {
        font-size: 1.1rem;
    }
}

/* Preferences Section Styles */
.preferences-section {
    background-color: #F8F9FA;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
}

.preferences-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #004B87;
    font-size: 1.25rem;
    font-weight: 600;
}

.preferences-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid #004B87;
    background-color: transparent;
    color: #004B87;
    transition: all 0.3s ease;
}

.preferences-toggle:hover {
    background-color: #004B87;
    color: #FFFFFF;
}

.preferences-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.preferences-content {
    padding: 24px;
}

.save-profile-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-save-controls {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.profile-save-controls .form-input {
    flex: 1;
    max-width: 300px;
}

.profiles-list {
    margin-top: 20px;
}

.no-profiles {
    text-align: center;
    padding: 32px 20px;
    color: #666;
    font-style: italic;
}

.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.profile-item:hover {
    border-color: #004B87;
    box-shadow: 0 2px 8px rgba(0, 75, 135, 0.1);
}

.profile-item.active {
    border-color: #004B87;
    background-color: #F0F7FF;
}

.profile-item.active::before {
    content: '✓';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #004B87;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    word-break: break-word;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
}

.profile-date {
    font-size: 0.8rem;
}

.profile-preview {
    color: #004B87;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.apply-profile-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.delete-profile-btn {
    padding: 8px;
    min-width: auto;
    border-color: #dc3545;
    color: #dc3545;
}

.delete-profile-btn:hover {
    background-color: #dc3545;
    color: #FFFFFF;
}

.preferences-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.preferences-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.preferences-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.preferences-message.info {
    background-color: #cce8ff;
    color: #004085;
    border: 1px solid #a6d8ff;
}

/* Button variants for preferences */
.btn-outline {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* Responsive adjustments for preferences */
@media (max-width: 768px) {
    .preferences-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .preferences-header h3 {
        font-size: 1.1rem;
    }
    
    .profile-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .profile-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .profile-save-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-save-controls .form-input {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .preferences-content {
        padding: 16px;
    }
    
    .preferences-header {
        padding: 16px;
    }
    
    .profile-details {
        font-size: 0.8rem;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .apply-profile-btn,
    .delete-profile-btn {
        width: 100%;
        justify-content: center;
    }
}



/* Job Actions */
.job-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.job-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.job-actions .btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    font-weight: 700;
}

.job-actions .btn:not(.active) {
    background: white;
    color: #1f2937;
    border-color: #374151;
    font-weight: 600;
}

.job-actions .btn:not(.active):hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #f8fafc;
}

/* Job Creation Form */
.job-create-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.job-create-form h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

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

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.create-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.create-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
}

.create-actions .btn-primary {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    font-weight: 700;
}

.create-actions .btn-primary:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.create-actions .btn-outline {
    background: white;
    color: #1e40af;
    border-color: #1e40af;
    font-weight: 600;
}

.create-actions .btn-outline:hover {
    background: #1e40af;
    color: white;
    font-weight: 700;
}

.create-actions .btn-secondary {
    background: #374151;
    color: white;
    border-color: #374151;
    font-weight: 600;
}

.create-actions .btn-secondary:hover {
    background: #1f2937;
    border-color: #1f2937;
}

/* Job Preview Modal */
.job-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.job-preview-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.job-preview-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-preview-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-preview {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-preview:hover {
    background: #f3f4f6;
}

.job-preview-body {
    padding: 1.5rem;
}

/* Success Message */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.success-message.error {
    background: #fecaca;
    color: #991b1b;
}

.success-message.info {
    background: #dbeafe;
    color: #1e40af;
}

.success-message.show {
    display: flex;
}

/* User Type Selection */
.user-type-selector {
    margin-bottom: 3rem;
}

.user-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.user-type-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-type-card.active::before,
.user-type-card:hover::before {
    transform: scaleX(1);
}

.user-type-card.active {
    border-color: #1e40af;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.user-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    color: white;
}

.user-type-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.user-type-card p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-features span {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
}

/* User Sections */
.user-section {
    display: none;
}

.user-section.active {
    display: block;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-btn.active {
    background: #1e40af;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

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

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

/* Employer Styles */
.employer-welcome {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.employer-welcome h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.employer-welcome p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.employer-job-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 12px;
    color: white;
}

.stat-content h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.stat-content p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    color: white;
}

.tool-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.insight-card h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.chart-bar {
    margin-bottom: 1rem;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e40af;
}

.metric-unit {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-change.positive {
    color: #059669;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.insights-tips {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tip-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-content h5 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tip-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.job-management-placeholder {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.placeholder-content svg {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.placeholder-content h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Responsive Design for Job Creation */
@media (max-width: 768px) {
    .user-type-cards {
        grid-template-columns: 1fr;
    }
    
    .section-tabs {
        padding: 0.25rem;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .create-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .create-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .job-preview-modal {
        padding: 0.5rem;
    }
    
    .job-preview-content {
        max-height: 95vh;
    }
    
    .job-preview-header {
        padding: 1rem;
    }
    
    .job-preview-body {
        padding: 1rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #002855;
    color: #FFFFFF;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #E6F2FF;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #CCE5FF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-section a:hover,
.footer-section a:focus {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #0066CC;
    padding-top: 20px;
    text-align: center;
    color: #CCE5FF;
    font-weight: 400;
}

/* Enhanced Mobile Optimizations for Tariff Tables */
@media (max-width: 768px) {
    .tariff-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .tariff-table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .tariff-table th,
    .tariff-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }

    .group-col {
        position: sticky;
        left: 0;
        background-color: #F8F9FA;
        z-index: 2;
        border-right: 2px solid #004B87;
    }

    .group-cell {
        background-color: #F8F9FA;
        font-weight: 600;
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .page-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .tariff-info {
        flex-direction: column;
        gap: 8px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

@media (max-width: 480px) {
    .tariff-table {
        font-size: 0.8rem;
    }

    .tariff-table th,
    .tariff-table td {
        padding: 10px 6px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .table-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .table-date,
    .table-note {
        font-size: 0.85rem;
    }

    .tariff-additional {
        margin: 30px 0;
    }

    .additional-info {
        padding: 20px;
    }

    .additional-info h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .additional-info ul {
        margin-left: 0;
        padding-left: 20px;
    }

    .additional-info li {
        margin-bottom: 8px;
        line-height: 1.5;
    }
}

/* Enhanced Contrast and Readability */
.tariff-table th {
    background-color: #004B87;
    color: #FFFFFF;
    font-weight: 600;
    text-align: center;
    border: 1px solid #FFFFFF;
}

.tariff-table td {
    border: 1px solid #E0E0E0;
    text-align: center;
    background-color: #FFFFFF;
}

.tariff-table tbody tr:nth-child(even) {
    background-color: #F8F9FA;
}

.tariff-table tbody tr:nth-child(even) td {
    background-color: #F8F9FA;
}

.tariff-table tbody tr:hover {
    background-color: #E6F2FF;
}

.tariff-table tbody tr:hover td {
    background-color: #E6F2FF;
}

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

.group-cell {
    font-weight: 700;
    color: #FFFFFF !important;
    background-color: #004B87 !important;
    border: 1px solid #FFFFFF !important;
}

.tariff-table tbody tr:nth-child(even) .group-cell {
    background-color: #004B87 !important;
    color: #FFFFFF !important;
}

.tariff-table tbody tr:hover .group-cell {
    background-color: #003366 !important;
    color: #FFFFFF !important;
}

/* Table responsiveness improvements */
.table-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Content readability improvements */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    color: #004B87;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #E10019;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #004B87;
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.content-main p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #333;
}

.feature-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #444;
}

/* Info boxes with better contrast */
.info-box {
    background-color: #F0F7FF;
    border: 1px solid #B8D4F0;
    border-left: 4px solid #004B87;
    padding: 20px;
    border-radius: 0 6px 6px 0;
}

.info-box h4 {
    color: #004B87;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.5;
}

/* Tariff Cards Grid */
.tariff-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tariff-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0;
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 75, 135, 0.15);
}

.tariff-card-header {
    background: linear-gradient(135deg, #004B87 0%, #0066CC 100%);
    color: #FFFFFF;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tariff-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
}

.tariff-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tariff-card-content {
    padding: 24px;
}

.tariff-card-content p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #333;
}

.tariff-card-content p strong {
    color: #004B87;
    font-weight: 600;
}

.tariff-examples {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 0;
}

.tariff-examples li {
    padding: 6px 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.tariff-examples li::before {
    content: '•';
    color: #004B87;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tariff-card-footer {
    padding: 0 24px 24px;
}

.tariff-card-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Comparison Table */
.comparison-table-container {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    min-width: 800px;
}

.comparison-table thead th {
    background-color: #004B87;
    color: #FFFFFF;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #FFFFFF;
}

.comparison-table tbody td {
    padding: 14px 12px;
    border: 1px solid #E0E0E0;
    color: #333;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #F8F9FA;
}

.comparison-table tbody tr:hover {
    background-color: #E6F2FF;
}

/* Mobile optimizations for tariff cards */
@media (max-width: 768px) {
    .tariff-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tariff-card-header {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .tariff-card-content {
        padding: 20px;
    }
    
    .tariff-card-footer {
        padding: 0 20px 20px;
    }
    
    .comparison-table-container {
        margin: 20px -16px;
        border-radius: 0;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tariff-cards-grid {
        gap: 16px;
    }
    
    .tariff-card-header h3 {
        font-size: 1.1rem;
    }
    
    .tariff-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .tariff-card-content {
        padding: 16px;
    }
    
    .tariff-card-footer {
        padding: 0 16px 16px;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #FFFFFF;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .tariff-table th {
        border: 2px solid #FFFFFF;
    }
    
    .tariff-table td {
        border: 1px solid #000000;
    }
    
    .tariff-card {
        border-width: 2px;
    }
    
    .comparison-table thead th {
        border: 2px solid #FFFFFF;
    }
    
    .comparison-table tbody td {
        border: 1px solid #000000;
    }
    
    .footer {
        background-color: #000000;
    }
    
    .footer-section a {
        color: #FFFFFF;
    }
}

/* Job Search Styles */
.job-search-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.job-search-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-results {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-header {
    padding: 20px 30px;
    background: #34495e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    margin: 0;
    font-size: 24px;
}

.results-count {
    font-size: 16px;
    opacity: 0.9;
}

.job-list {
    padding: 0;
}

.job-card {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.job-card:hover {
    background-color: #f8f9fa;
}

.job-card:last-child {
    border-bottom: none;
}

.job-header {
    margin-bottom: 15px;
}

.job-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.job-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #3498db;
}

.job-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #7f8c8d;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-company {
    font-weight: 600;
    color: #34495e;
}

.job-description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.job-salary {
    background: #e8f5e8;
    color: #27ae60;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
}

.job-tariff {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.job-source,
.job-date {
    font-size: 13px;
    color: #95a5a6;
}

.popular-categories {
    margin-top: 50px;
}

.popular-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

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

.category-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.category-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.category-card p {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.job-sources {
    margin-top: 50px;
}

.job-sources h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

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

.source-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.source-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.source-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.no-results h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.search-suggestions {
    text-align: left;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.search-suggestions ul {
    padding-left: 20px;
}

.search-suggestions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-content h3 {
    color: #e53e3e;
    margin: 0 0 10px 0;
}

.error-content p {
    color: #2d3748;
    margin: 0 0 15px 0;
}

/* Job Update Controls */
.job-update-controls {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.update-info {
    color: #7f8c8d;
    font-size: 14px;
}

.update-actions {
    display: flex;
    gap: 10px;
}

#refresh-jobs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

#refresh-jobs-btn:hover {
    background: #3498db;
    color: white;
}

#refresh-jobs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#refresh-jobs-btn svg {
    transition: transform 0.3s ease;
}

#refresh-jobs-btn.refreshing svg {
    animation: spin 1s linear infinite;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        gap: 15px;
    }
    
    .nav-items.active {
        display: flex;
    }
    
    .nav-items li {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 20px;
        background: #f8f9fa;
        border-radius: 0;
    }
    
    .job-update-controls {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .update-info {
        margin-bottom: 10px;
    }
}

/* Update Success Message */
.update-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 15px;
    animation: slideIn 0.3s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #155724;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
