/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.home-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) translateX(-5px);
    color: white;
}

.home-link i {
    font-size: 0.9rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 180px;
}

.logo i {
    color: #ffd700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

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

.hero .container {
    display: block;
    text-align: center;
}

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.cta-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.hero-image {
    display: none;
}

.hero-image i {
    font-size: 8rem;
    color: #ffd700;
    opacity: 0.8;
}

/* Calculator Section */
.calculator-section {
    background: #f8fafc;
    padding: 60px 0;
    min-height: calc(100vh - 120px);
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-description {
    font-size: 1.1rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Calculator Box */
.calculator-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Instruction Bar */
.instruction-bar {
    background: #4a90c2;
    color: white;
    padding: 15px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-bar i {
    font-size: 0.9rem;
}

/* Date Inputs */
.date-inputs {
    padding: 30px;
    background: #f7f9fc;
}

.date-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.date-row:last-child {
    margin-bottom: 0;
}

.date-label {
    font-weight: 600;
    color: #2d3748;
    min-width: 140px;
    font-size: 0.95rem;
}

.date-selectors {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.date-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.date-select:focus {
    outline: none;
    border-color: #4a90c2;
    box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.1);
}

.date-select option {
    padding: 5px;
}

.calendar-btn {
    background: #e2e8f0;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
}

.calendar-btn:hover {
    background: #cbd5e0;
    border-color: #cbd5e0;
}

.calendar-btn i {
    font-size: 0.9rem;
}

/* Calculate Section */
.calculate-section {
    background: white;
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.calculate-button {
    background: #68a85a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.calculate-button:hover {
    background: #5a9548;
}

.calculate-button i {
    font-size: 0.9rem;
}

/* Result Section */
.result-section {
    background: white;
    border-top: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.result-header {
    background: #5a9548;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-header i {
    font-size: 0.9rem;
}

.result-content {
    padding: 25px;
    text-align: left;
}

.age-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.age-list {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3748;
}

.age-list .age-line {
    margin-bottom: 8px;
}

.age-list .age-line:last-child {
    margin-bottom: 0;
}

.age-list .main-age {
    font-weight: 600;
    color: #1a365d;
}

.age-list .alternative-age {
    color: #4a5568;
}



/* Error Messages */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #e53e3e;
}

.error-message i {
    font-size: 1.1rem;
}

/* Info Section */
.info-section {
    background: white;
    padding: 60px 0;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

.info-content p {
    margin-bottom: 20px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .calculator-description {
        font-size: 1rem;
    }
    
    .date-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .date-label {
        min-width: auto;
    }
    
    .date-selectors {
        width: 100%;
    }
    
    .date-inputs {
        padding: 20px;
    }
    
    .calculate-section {
        padding: 20px;
    }
    
    .result-content {
        padding: 20px;
    }
    

}

@media (max-width: 480px) {
    .date-selectors {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .date-select {
        flex: 1;
        min-width: 80px;
    }
    
    .calendar-btn {
        flex-shrink: 0;
    }
    

    
    .instruction-bar {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 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-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.calculate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.input-field:focus,
.calculate-button:focus,
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-button {
        display: none;
    }
    
    .calculator-section {
        page-break-inside: avoid;
    }
}

/* Golf Handicap Calculator Specific Styles */
.golf-calculator-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.info-toggle {
    margin-top: 1rem;
}

.info-toggle-btn {
    background: #2e5396;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.info-toggle-btn:hover {
    background: #1e3976;
}

.calculator-subtitle {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.calculator-description {
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 500;
    font-size: 1rem;
}

/* Course Handicap Form Styles */
.course-handicap-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: start;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row label {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.form-row input {
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 0.6rem;
    font-size: 0.9rem;
    color: #1a202c;
    font-weight: 500;
}

.form-row input:focus {
    outline: none;
    border-color: #2e5396;
    box-shadow: 0 0 0 2px rgba(46, 83, 150, 0.2);
}

.form-buttons {
    grid-column: span 2;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.calculate-btn {
    background: #8db543;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background: #7ba838;
}

.clear-btn {
    background: #999;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #777;
}

.result-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px;
}

.result-value {
    color: #27ae60;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Index Handicap Table Styles */
.handicap-table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.handicap-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 500;
}

.handicap-table th {
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #ddd;
    color: #1a202c;
    background: #e2e8f0;
}

.handicap-table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: center;
    color: #2d3748;
    font-weight: 500;
}

/* Column Color Coding */
.course-rating-col,
.handicap-table td:nth-child(2) {
    background-color: #b8d3f0 !important;
}

.slope-rating-col,
.handicap-table td:nth-child(3) {
    background-color: #c8e6c9 !important;
}

.score-18-col,
.handicap-table td:nth-child(4) {
    background-color: #ffcc80 !important;
}

.score-9-col,
.handicap-table td:nth-child(5) {
    background-color: #e1bee7 !important;
}

.pca-col,
.handicap-table td:nth-child(6) {
    background-color: #fff59d !important;
}

.round-cell {
    font-weight: 600;
    color: #1a202c !important;
    background: #f7fafc !important;
}

.handicap-table input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.4rem;
    text-align: center;
    font-size: 0.9rem;
    color: #1a202c;
    font-weight: 600;
}

.handicap-table input:focus {
    outline: 2px solid #2e5396;
    border-radius: 3px;
}

.remove-round-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-round-btn:hover {
    background: #c0392b;
}

.table-actions {
    margin: 1rem 0;
    text-align: center;
}

.add-round-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.add-round-btn:hover {
    background: #2980b9;
}

.result-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.result-details h4 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.result-details h5 {
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
}

.calculation-method {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.calculation-method i {
    color: #3498db;
}

.round-input h4 {
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-round {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-round:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: scale(1.05);
}

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

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.add-round-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-round-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.handicap-display {
    text-align: center;
    margin: 2rem 0;
}

.handicap-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.handicap-number {
    font-size: 3rem;
    font-weight: 700;
    color: #27ae60;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.handicap-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.score-differentials {
    margin: 2rem 0;
}

.score-differentials h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.differentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.differential-item {
    display: grid;
    grid-template-columns: 1fr 80px 100px 80px 30px;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.differential-item.used {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.differential-item.not-used {
    opacity: 0.6;
}

.differential-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.diff-round {
    font-weight: 500;
    color: #ffffff;
}

.diff-score {
    text-align: center;
    color: #3498db;
    font-weight: 600;
}

.diff-rating {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.diff-value {
    text-align: center;
    color: #27ae60;
    font-weight: 600;
}

.differential-item i.fa-check {
    color: #27ae60;
    font-size: 1rem;
}

.calculation-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.calculation-note i {
    color: #3498db;
}

.info-panel {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-panel h3 {
    color: #3498db;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-panel li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.5rem;
}

.info-panel li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

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

.guide-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.guide-question {
    color: #2b6cb0;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-answer {
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    color: #c05621;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-answer {
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease;
}

.error-message i {
    font-size: 1.1rem;
}

/* Animation for golf calculator */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for golf calculator */
@media (max-width: 1024px) {
    .handicap-table-container {
        font-size: 0.8rem;
    }
    
    .handicap-table th,
    .handicap-table td {
        padding: 0.4rem 0.3rem;
    }
    
    .handicap-table input {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .course-handicap-form {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .handicap-table-container {
        font-size: 0.75rem;
    }
    
    .handicap-table th,
    .handicap-table td {
        padding: 0.3rem 0.2rem;
    }
    
    .handicap-table {
        min-width: 600px;
    }
    
    .remove-round-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
        .calculator-card {
        padding: 2rem;
    }

    .calculator-subtitle {
        font-size: 1.1rem;
    }

    .result-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .golf-calculator-header {
        margin-bottom: 1rem;
    }
    
    .info-toggle-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .calculator-description {
        font-size: 0.9rem;
        line-height: 1.9;
        margin-bottom: 1.75rem;
    }
    
    .handicap-table {
        min-width: 500px;
        font-size: 0.7rem;
    }
    
    .handicap-table th {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .handicap-table td {
        padding: 0.2rem 0.1rem;
    }
    
    .handicap-table input {
        padding: 0.2rem;
        font-size: 0.7rem;
    }
    
    .form-row input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calculate-btn,
    .clear-btn,
    .add-round-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Age Calculator Specific Styles */
.age-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.age-calculator-header .section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

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

.age-result-display {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

.result-title {
    color: #27ae60;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.primary-age-result {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.age-summary {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.age-context {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

.detailed-age-results {
    display: grid;
    gap: 2rem;
}

.age-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.age-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.age-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.age-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.age-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-counts {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

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

.total-item strong {
    color: #ffffff;
    font-weight: 600;
}

.total-item span {
    color: #f39c12;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.info-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
    margin-top: 3rem;
}

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

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.info-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #f39c12;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.examples-section {
    padding: 4rem 0;
}

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

.example-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.example-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.example-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.example-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Age Calculator Mobile Responsive */
@media (max-width: 768px) {
    .form-row-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .age-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .age-value {
        font-size: 1.5rem;
    }
    
    .age-summary {
        font-size: 1.5rem;
    }
    
    .age-result-display {
        padding: 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .age-breakdown {
        grid-template-columns: 1fr;
    }
    
    .age-value {
        font-size: 1.3rem;
    }
    
    .age-summary {
        font-size: 1.3rem;
    }
    
    .total-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .age-result-display {
        padding: 1rem;
    }
}

/* Grade Calculator Specific Styles */

/* Grade Calculator Section */
.grade-calculator-content {
    background: white;
    padding: 30px;
}

.assignments-table {
    margin-bottom: 30px;
}

.grade-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grade-table th {
    background: #4a90c2;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.grade-table th .optional {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
}

.grade-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

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

.grade-table tr:nth-child(even) {
    background: #f8fafc;
}

.assignment-input,
.grade-input,
.weight-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.assignment-input:focus,
.grade-input:focus,
.weight-input:focus {
    outline: none;
    border-color: #4a90c2;
    box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.1);
}



.weight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weight-input-wrapper .weight-input {
    flex: 1;
    min-width: 60px;
}

.weight-symbol {
    color: #4a5568;
    font-weight: 500;
}

.add-row-btn {
    background: none;
    border: 2px dashed #cbd5e0;
    color: #4a90c2;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.add-row-btn:hover {
    background: #ebf4ff;
    border-color: #4a90c2;
}

.add-row-btn i {
    font-size: 0.8rem;
}

/* Final Grade Planning */
.final-grade-planning {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.planning-title {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.planning-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.planning-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planning-input-group label {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.input-with-help {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-help input {
    flex: 1;
}

.help-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.help-btn:hover {
    background: #cbd5e0;
}

.input-with-symbol {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-with-symbol input {
    flex: 1;
}

.input-symbol {
    color: #4a5568;
    font-weight: 500;
}

/* Calculate Section */
.calculate-section {
    text-align: center;
    margin-bottom: 30px;
}

.clear-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.2s ease;
}

.clear-button:hover {
    background: #cbd5e0;
}

/* Grade Results */
.result-section .result-content {
    text-align: left;
}

.average-grade-display {
    margin-bottom: 25px;
    padding: 0 5px;
}

.average-grade-display h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0;
    font-weight: 400;
}

.grade-result {
    color: #2f855a;
    font-weight: 600;
}

.result-table-wrapper {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    background: #2d3748;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.result-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

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

.result-table tr:nth-child(even) {
    background: #f8fafc;
}

.result-table .total-row {
    background: #f1f5f9;
}

.result-table .total-row td {
    font-weight: 500;
    border-top: 2px solid #cbd5e0;
}

.result-table .average-row {
    background: #e6f3ff;
}

.result-table .average-row td {
    font-weight: 600;
    color: #2b6cb0;
}

.print-section {
    margin-top: 15px;
    text-align: left;
}

.print-link {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.print-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

.print-link i {
    font-size: 0.8rem;
}

.goal-planning {
    background: #ebf4ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.goal-planning h4 {
    color: #2b6cb0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.goal-planning p {
    margin-bottom: 8px;
    color: #2d3748;
}

.required-grade {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.required-label {
    font-weight: 500;
    color: #2d3748;
}

.required-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b6cb0;
}

.warning {
    background: #fed7d7;
    color: #c53030;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.success {
    background: #c6f6d5;
    color: #2f855a;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Final Grade Calculator */
.final-calculator-section {
    background: #f8fafc;
    padding: 60px 0;
}

.final-calculator-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.final-inputs {
    padding: 30px;
    background: #f7f9fc;
}

.final-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.final-input-row:last-child {
    margin-bottom: 0;
}

.final-input-row label {
    font-weight: 500;
    color: #2d3748;
    min-width: 160px;
    font-size: 0.95rem;
}

.final-input-row input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.final-input-row input:focus {
    outline: none;
    border-color: #4a90c2;
    box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.1);
}

.final-calculate-section {
    background: white;
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.final-result {
    padding: 25px 30px;
    text-align: center;
}

.final-result h4 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.final-grade-display {
    margin-bottom: 20px;
}

.required-final {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-right: 10px;
}

.required-letter {
    font-size: 1.3rem;
    color: #4a5568;
    font-weight: 500;
}

.final-details {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.final-details p {
    margin-bottom: 8px;
    color: #2d3748;
}

.final-details p:last-child {
    margin-bottom: 0;
}

.easy {
    background: #c6f6d5;
    color: #2f855a;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.moderate {
    background: #faf089;
    color: #744210;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.challenging {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

/* Grade Scale Section */
.grade-scale-section {
    background: white;
    padding: 60px 0;
}

.grade-scale-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.scale-description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.grade-scale-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.scale-table {
    width: 100%;
    border-collapse: collapse;
}

.scale-table th {
    background: #4a90c2;
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.scale-table td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
}

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

.scale-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Grading History Section */
.grading-history {
    margin-top: 50px;
    text-align: left;
}

.grading-history h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 35px;
}

.grading-history h3:first-child {
    margin-top: 0;
}

.grading-history p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: justify;
}

/* Responsive Design for Grade Calculator */
@media (max-width: 768px) {
    .planning-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .final-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .final-input-row label {
        min-width: auto;
    }
    

    
         .result-table th,
     .result-table td {
         padding: 8px 10px;
         font-size: 0.9rem;
     }
     
     .average-grade-display h3 {
         font-size: 1.1rem;
     }
    
    .required-grade {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .final-grade-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .grade-calculator-content {
        padding: 20px;
    }
    
    .final-grade-planning {
        padding: 20px;
    }
    
    .final-inputs {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .grade-table th,
    .grade-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .assignment-input,
    .grade-input,
    .weight-input {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .required-final {
        font-size: 2rem;
    }
    
    .scale-table th,
    .scale-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .grading-history {
        margin-top: 30px;
    }
    
    .grading-history h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .grading-history p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }
}

/* Air Fryer Calculator Specific Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
    padding: 2.5rem;
}

.calculator-form {
    padding: 3rem;
}

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

.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    min-width: 120px;
}

.input-field::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.unit-selector {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.unit-selector:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.unit-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.unit-text {
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: #e2e8f0;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.calculate-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.calculate-button i {
    font-size: 1rem;
}

/* Results Container */
.results-container {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(52, 152, 219, 0.05));
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 3rem;
    animation: fadeInUp 0.5s ease;
}

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

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1.5rem;
}

.results-table {
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.comparison-table td {
    padding: 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.comparison-table .air-fry-row td {
    background: #f0fff4;
    color: #27ae60;
    font-weight: 600;
}

.conversion-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
}

.summary-text strong {
    color: #27ae60;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    background: #f8fafc;
    padding: 4rem 0;
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    color: #667eea;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-question i {
    color: #ffd700;
    font-size: 1.2rem;
}

.faq-answer {
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.faq-answer strong {
    color: #667eea;
    font-weight: 600;
}

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

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

.tip-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.tip-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Air Fryer Calculator */
@media (max-width: 768px) {
    .calculator-form,
    .results-container {
        padding: 2rem 1.5rem;
    }

    .input-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .input-field {
        font-size: 1.1rem;
        padding: 0.875rem 1rem;
    }

    .calculate-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .calculator-form,
    .results-container {
        padding: 1.5rem 1rem;
    }

    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem;
    }

    .input-field {
        padding: 1rem;
        text-align: center;
        font-size: 1.1rem;
    }

    .unit-selector,
    .unit-text {
        width: 100%;
        padding: 0.875rem;
        text-align: center;
    }

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

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

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }
}

/* Simplified Result Table Styles (参考图一的样式) */
.handicap-statement {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    text-align: left;
}

.handicap-number {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.3rem;
}

.calculation-basis {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: left;
}

.simple-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.simple-result-table th {
    background: #2e5396;
    color: white;
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.simple-result-table td {
    padding: 0.7rem 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
}

.simple-result-table tr:nth-child(even) td {
    background: #f8fafc;
}

.simple-result-table tr:hover td {
    background: #e6f3ff;
}

/* Result display specific styles */
.result-display .result-header {
    background: #68a85a;
    color: white;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px 8px 0 0;
}

.result-display .result-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Mobile responsive for simplified table */
@media (max-width: 768px) {
    .simple-result-table th,
    .simple-result-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .handicap-statement {
        font-size: 1.1rem;
    }
    
    .handicap-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .simple-result-table {
        font-size: 0.7rem;
    }
    
    .simple-result-table th,
    .simple-result-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .handicap-statement {
        font-size: 1rem;
    }
}

/* Related Calculators Section */
.related-calculators-section {
    background: #f8fafc;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.related-calculators-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.related-calculator-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-calculator-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-calculator-card:hover::before {
    opacity: 1;
}

.related-calculator-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
    position: relative;
}

.related-calculator-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.related-calculator-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.related-calculator-card:hover .related-calculator-title {
    color: #667eea;
}

.related-calculator-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.related-calculator-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.related-calculator-card:hover .related-calculator-arrow {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .related-calculators-section {
        padding: 2rem 0;
    }
    
    .related-calculator-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .related-calculator-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .related-calculator-title {
        font-size: 1.1rem;
    }
    
    .related-calculator-description {
        font-size: 0.9rem;
    }
    
    .related-calculator-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .related-calculator-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .related-calculator-arrow {
        transform: rotate(90deg);
    }
    
    .related-calculator-card:hover .related-calculator-arrow {
        transform: rotate(90deg) translateY(5px);
    }
}

/* Cash Back Calculator Specific Styles */
.calculator-box .input-group {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-box .input-row {
    margin-bottom: 1.5rem;
}

.calculator-box .input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.calculator-box .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.calculator-box .input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculator-box .calculate-section {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.reset-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-button:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.clear-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-button:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.example-button {
    background: #f0f7ff;
    color: #3182ce;
    border: 2px solid #3182ce;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.example-button:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-2px);
}

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

.result-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item.highlight {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.result-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-value.cash-back {
    color: #38a169;
}

.result-value.net-cost {
    color: #2d3748;
}

.result-item.highlight .result-value {
    color: white;
}

/* Percent Error Calculator Result Styles */
.main-result {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.result-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
}

.result-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
}

.calculation-steps h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.formula-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.step-text {
    font-weight: 500;
    color: #2d3748;
}

.step-equal {
    font-weight: 500;
    color: #2d3748;
    margin: 0 0.25rem;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 0.5rem;
}

.numerator {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #2d3748;
    font-size: 0.95rem;
}

.denominator {
    padding-top: 0.25rem;
    font-size: 0.95rem;
}

.step-result {
    font-weight: 500;
    color: #2d3748;
}

.formula-box {
    background: #f0f7ff;
    border: 2px solid #bee3f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.1rem;
    color: #2b6cb0;
}

.faq-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #4299e1;
}

.faq-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .calculator-box .input-group {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calculator-box .calculate-section {
        padding: 0 1rem 1rem 1rem;
        flex-direction: column;
        align-items: center;
    }

    .reset-button,
    .clear-button,
    .example-button {
        width: 100%;
        justify-content: center;
    }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .result-value {
        font-size: 1.25rem;
    }

    .formula-box {
        font-size: 1rem;
        padding: 1rem;
    }

    /* Percent Error Calculator Mobile Styles */
    .step-line {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .fraction {
        margin: 0.25rem;
    }

    .numerator, .denominator {
        font-size: 0.9rem;
    }

    .formula-steps {
        gap: 1rem;
    }
}

/* Mmol/L to mg/dl Calculator Specific Styles */
.conversion-note {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2b6cb0;
}

.conversion-note i {
    color: #4299e1;
    margin-top: 0.1rem;
}

.glucose-interpretation {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-left: 4px solid;
}

.glucose-interpretation.glucose-low {
    border-left-color: #e53e3e;
    color: #e53e3e;
    background: rgba(245, 101, 101, 0.1);
}

.glucose-interpretation.glucose-normal {
    border-left-color: #38a169;
    color: #38a169;
    background: rgba(56, 161, 105, 0.1);
}

.glucose-interpretation.glucose-prediabetes {
    border-left-color: #d69e2e;
    color: #d69e2e;
    background: rgba(214, 158, 46, 0.1);
}

.glucose-interpretation.glucose-diabetes {
    border-left-color: #dd6b20;
    color: #dd6b20;
    background: rgba(221, 107, 32, 0.1);
}

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

.example-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
}

.example-card h4 {
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

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

.result-value.mmol-result {
    color: #4299e1;
}

.result-value.mgdl-result {
    color: #38a169;
}

.example-message {
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid rgba(56, 161, 105, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #38a169;
    font-size: 0.9rem;
    animation: fadeInUp 0.3s ease;
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .conversion-note {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .glucose-interpretation {
        margin-top: 0;
    }
}

/* 在文件末尾添加新的样式 */

/* Confidence Interval Calculator Specific Styles */
.confidence-interval-display {
    margin: 1.5rem 0;
}

.interval-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.interval-main-result {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-family: Arial, sans-serif;
}

.error-bar-section {
    margin-top: 1.5rem;
}

.error-bar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.error-bar-container {
    margin: 1rem 0;
}

.error-bar {
    position: relative;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.error-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.error-bar-center {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #e53e3e;
    transform: translateX(-50%);
    z-index: 10;
}

.error-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

.step-formula, .step-calculation, .step-result {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    text-align: center;
}

.step-formula {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    font-weight: 600;
}

.step-calculation {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.step-result {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    font-weight: 600;
}

.fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.numerator {
    display: block;
    font-size: 0.9em;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 2px;
}

.denominator {
    display: block;
    font-size: 0.9em;
    padding-top: 2px;
}

.formula-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.select-field {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-field:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 置信水平相关样式 */
.confidence-levels {
    margin: 1.5rem 0;
}

.confidence-item {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.confidence-item strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

/* 示例计算样式 */
.example-calculation {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-step {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.example-step strong {
    color: #2d3748;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* 信息列表样式 */
.info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.info-list li {
    margin: 0.75rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #38a169;
    font-weight: bold;
    font-size: 1rem;
}

/* 公式部分样式增强 */
.formula-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #2d3748;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    margin: 0.5rem 0;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .interval-main-result {
        font-size: 1.1rem;
        padding: 0.75rem;
        word-break: break-all;
    }
    
    .error-bar-container {
        margin: 0.75rem 0;
    }
    
    .error-bar {
        height: 16px;
    }
    
    .error-bar-labels {
        font-size: 0.8rem;
    }
    
    .step-formula, .step-calculation, .step-result {
        font-size: 0.95rem;
        padding: 0.4rem;
        margin: 0.5rem 0;
    }
    
    .fraction {
        margin: 0 0.1rem;
    }
    
    .numerator, .denominator {
        font-size: 0.8em;
    }
    
    .example-step {
        font-size: 0.85rem;
    }
    
    .formula {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .confidence-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .interval-range {
        font-size: 1.3rem;
    }
    
    .confidence-statement {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .example-calculation {
        padding: 1rem;
    }
    
    .example-step {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .info-list li {
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }
    
    .formula-section {
        padding: 1rem;
    }
} 