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

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #E3F2FD;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1002;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1002;
}

header h1 a {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

header h1 a:hover {
    opacity: 0.9;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Header Navigation */
.header-nav {
    width: 100%;
    margin-top: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    display: block;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 0;
}

.calculator-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

/* Calculator Layout - Desktop Side by Side */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Input Section - Left Side */
.input-section {
    display: flex;
    flex-direction: column;
}

.calculator-description {
    background: linear-gradient(135deg, var(--primary-light) 0%, #BBDEFB 100%);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculator-description h1 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calculator-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.input-header {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.column-header {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.column-header:first-child {
    width: 2rem;
    text-align: center;
}

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

.input-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.row-number {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    width: 2rem;
    text-align: center;
}

.grade-input,
.weight-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
}

.grade-input:focus,
.weight-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.add-row-btn {
    padding: 0.4rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-row-btn:hover {
    background: #BBDEFB;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.add-row-container {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-items: center;
}

.add-row-container .add-row-btn {
    grid-column: 2 / 4;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: #BBDEFB;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-danger:hover {
    background: #D32F2F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-purple {
    background: #9C27B0;
    color: white;
}

.btn-purple:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Removed btn-arithmetic-mean - replaced with btn-add-value and btn-calculate-mean */

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Results Section - Right Side */
.results-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #81C784;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.result-line {
    text-align: center;
    line-height: 1.8;
}

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

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 0.5rem;
}

.result-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.reset-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
}

.copy-results-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.copy-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.copy-results-btn.copy-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.copy-results-btn .check-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-45deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-notification-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.copy-notification-warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.copy-notification-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Content Section */
.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.faq-section {
    margin-top: 3rem;
    padding-top: 0;
    border-top: none;
    background: transparent;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.faq-section h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-dark);
}

.faq-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 2rem;
    overflow: visible;
}

.faq-question {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
    margin-bottom: 0.75rem;
    padding: 0;
    font-weight: 600;
    display: block;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0;
    margin: 0;
    display: block;
}

@media (max-width: 768px) {
    .faq-items-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .faq-item {
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.formula {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #263238 0%, #1a2328 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: white;
}

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

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

.footer-section a {
    color: #B0BEC5;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Circle Calculator Styles */
.circle-calculator-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    background: #F5F5F5;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.circle-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.circle-calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator-input-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.calculator-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.calculator-select:hover {
    border-color: var(--primary-color);
}

.calculator-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.calculator-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-with-unit .calculator-input {
    flex: 1;
}

.unit-select {
    min-width: 80px;
}

.btn-copy-result {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 36px;
    height: 36px;
}

.btn-copy-result:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-copy-result:focus,
.btn-copy-result:active,
.btn-copy-result:visited {
    outline: none !important;
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-copy-result:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.btn-copy-result.copy-success {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

.btn-copy-result svg {
    width: 16px;
    height: 16px;
}

.circle-calculator-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.clear-circle-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.clear-circle-btn:focus,
.clear-circle-btn:active,
.clear-circle-btn:visited {
    outline: none !important;
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    box-shadow: none !important;
    border: none !important;
}

.clear-circle-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.calculator-results {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Average Calculator Styles */
.average-calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.average-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.average-section h2 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.average-controls-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.reset-average-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.reset-average-btn:hover {
    background: linear-gradient(135deg, #EE5A6F 0%, #DC4C64 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.reset-average-btn:focus,
.reset-average-btn:active,
.reset-average-btn:visited {
    outline: none !important;
    background: linear-gradient(135deg, #EE5A6F 0%, #DC4C64 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
    transform: translateY(0) !important;
}

.reset-average-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
}

.individual-values-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.value-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.value-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.value-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.average-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bulk-paste-area {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.bulk-paste-area:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #ffebee;
    border-radius: 4px;
}

.instruction-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.options-group {
    margin-bottom: 1rem;
}

.option-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Results Section */
.average-results-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.result-card-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
}

.result-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.result-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.btn-copy-small {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
}

.btn-copy-small:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-copy-small:active {
    background: #388e3c;
    transform: translateY(0);
}

.btn-copy-small:focus,
.btn-copy-small:visited {
    outline: none !important;
    background: var(--success-color) !important;
    color: white !important;
    box-shadow: none !important;
}

.btn-copy-small:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

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

.data-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Points to Percentage Calculator Styles */
.points-percentage-calculator {
    background: #F5F5F5;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.points-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.points-input-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.points-input-section .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.points-input-section label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.points-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.clear-points-btn {
    padding: 0.875rem 2rem;
}

.clear-points-btn:focus,
.clear-points-btn:active,
.clear-points-btn:visited {
    outline: none !important;
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    box-shadow: none !important;
}

.clear-points-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.points-result-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.result-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.result-display .result-label {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.result-display .result-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .points-input-fields-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .points-action-buttons {
        flex-direction: column;
    }
    
    .points-action-buttons .btn {
        width: 100%;
    }
}

/* Percentage Calculator Styles */
.percentage-calculator-container {
    background: #F5F5F5;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.percentage-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.percentage-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.percentage-input-section .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.percentage-input-section label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.input-with-symbol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.input-symbol {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    min-width: 20px;
}

.calculate-percentage-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.calculate-percentage-btn:focus,
.calculate-percentage-btn:active,
.calculate-percentage-btn:visited {
    outline: none !important;
    box-shadow: none !important;
}

.calculate-percentage-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.percentage-result-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.percentage-result-section .result-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-decoration: underline;
}

.percentage-result-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.percentage-result-text .result-percentage,
.percentage-result-text .result-number {
    font-weight: 700;
    color: var(--text-primary);
}

.percentage-result-text .result-value {
    font-weight: 700;
    color: #F44336;
}

@media (max-width: 768px) {
    .percentage-inputs-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .percentage-input-section {
        gap: 1rem;
    }
    
    .calculate-percentage-btn {
        width: 100%;
    }
}


/* Attendance Calculator Styles */
.attendance-calculator-container {
    background: #F5F5F5;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.attendance-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.attendance-inputs-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.attendance-input-section .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attendance-input-section label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.add-subject-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    align-self: flex-start;
}

.attendance-results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subject-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.subject-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.subject-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 150px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.attendance-percentage {
    font-size: 1.1rem;
    font-weight: 700;
}

.attendance-excellent {
    color: #4CAF50;
}

.attendance-good {
    color: #2196F3;
}

.attendance-warning {
    color: #FF9800;
}

.attendance-low {
    color: #F44336;
}

.feedback-emoji {
    font-size: 1.5rem;
}

.delete-subject-btn {
    background: #F44336;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.delete-subject-btn:hover {
    background: #D32F2F;
    transform: translateY(-1px);
}

.delete-subject-btn:focus,
.delete-subject-btn:active,
.delete-subject-btn:visited {
    outline: none !important;
    background: #F44336 !important;
    color: white !important;
    box-shadow: none !important;
}

.delete-subject-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.average-attendance-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.average-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    justify-content: center;
}

.average-label {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.average-value {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.attendance-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.copy-attendance-btn,
.clear-attendance-btn {
    flex: 1;
    padding: 0.875rem 2rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    font-weight: 500;
}

.copy-attendance-btn:hover,
.clear-attendance-btn:hover {
    background: #BBDEFB;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-attendance-btn:focus,
.copy-attendance-btn:active,
.copy-attendance-btn:visited,
.clear-attendance-btn:focus,
.clear-attendance-btn:active,
.clear-attendance-btn:visited {
    outline: none !important;
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.copy-attendance-btn:focus-visible,
.clear-attendance-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .attendance-inputs-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .attendance-action-buttons {
        flex-direction: column;
    }
    
    .attendance-action-buttons .btn {
        width: 100%;
    }
    
    .subject-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-label {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .average-calculator-container {
        grid-template-columns: 1fr;
    }
    
    .average-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .result-value {
        text-align: left;
    }
}

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

.result-header label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0;
}

.result-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.result-input {
    background: #F5F5F5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .circle-calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .circle-diagram {
        justify-self: center;
        max-width: 200px;
    }
    
    .circle-diagram svg {
        width: 100%;
        height: auto;
    }
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.footer-widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.footer-widget h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-widget-list li {
    margin: 0;
}

.footer-widget-list a {
    display: block;
    padding: 0.5rem 0;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: none;
}

.footer-widget-list a:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateX(5px);
    border: none;
    box-shadow: none;
}

.footer-widget-list a.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    box-shadow: none;
}

/* Social Icons Section */
.footer-social-section {
    text-align: center;
    padding: 0;
    border-top: none;
    margin-top: 2rem;
    background: transparent;
    border-radius: 0;
    grid-column: 1 / -1;
}

.footer-social-section h3 {
    display: none;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.3rem;
    font-weight: 700;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    header h1 {
        font-size: 1.5rem;
        z-index: 1002;
        position: relative;
    }
    
    header h1 a {
        color: white !important;
    }

    .header-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: max-height 0.3s ease-in-out;
        margin-top: 0;
        padding: 0 1.5rem;
    }

    .header-nav.active {
        max-height: calc(100vh - 80px);
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        padding: 1rem 0;
        margin: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        display: block;
    }

    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .calculator-wrapper {
        padding: 1.5rem;
    }

    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .input-header {
        gap: 0.5rem;
    }

    .input-row {
        gap: 0.5rem;
    }

    .row-number {
        width: 1.5rem;
        font-size: 0.9rem;
    }

    .grade-input,
    .weight-input {
        padding: 0.75rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .add-row-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem;
        font-size: 1.25rem;
    }

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

    .result-label {
        font-size: 0.9rem;
    }
    
    .result-line {
        text-align: center;
    }

    .reset-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .copy-results-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .content-section {
        padding: 1.5rem;
    }
    
    .faq-section {
        margin-left: 0;
        margin-right: 0;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .faq-item {
        margin-bottom: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
        text-align: center;
    }
    
    .footer-social-section {
        grid-column: 1;
        margin-top: 1.5rem;
    }

    .footer-widget h3 {
        font-size: 1rem;
        margin-bottom: 0.875rem;
        text-align: center;
    }

    .footer-widget-list {
        align-items: center;
    }

    .footer-widget-list a {
        font-size: 0.85rem;
    }

    .footer-social-icons {
        justify-content: center;
        gap: 1rem;
    }

    .footer-social-icons a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 1rem;
    }
    
    .faq-section {
        margin-left: 0;
        margin-right: 0;
    }

    .input-header {
        font-size: 0.9rem;
    }

    .grade-input,
    .weight-input {
        padding: 0.625rem;
        font-size: 0.9rem;
        min-height: 40px;
    }

    .add-row-btn {
        min-height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

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

/* Print Styles */
@media print {
    header,
    footer,
    .add-row-btn,
    .reset-btn,
    .copy-results-btn,
    .clear-boxes-btn {
        display: none;
    }

    .calculator-wrapper {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ============================================
   Arithmetic Mean Calculator Styles
   ============================================ */

/* Removed arithmetic-mean-title styles - using default h1 styling */

.arithmetic-mean-calculator {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.arithmetic-mean-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.arithmetic-mean-header {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.header-cell {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.arithmetic-mean-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arithmetic-mean-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.row-cell {
    display: flex;
    align-items: center;
}

.row-value-input,
.row-weight-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
}

.row-value-input:focus,
.row-weight-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.delete-row-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 80px;
}

.arithmetic-mean-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.arithmetic-mean-actions .btn-add-value,
.arithmetic-mean-actions .btn-calculate-mean {
    flex: 1;
    min-width: 150px;
}

.btn-add-value {
    background: #4CAF50;
    color: white;
}

.btn-add-value:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-calculate-mean {
    background: #FF9800;
    color: white;
}

.btn-calculate-mean:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.calculate-mean-btn {
    flex: 1;
    min-width: 200px;
}

.arithmetic-mean-result-section {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.arithmetic-mean-result-section .result-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.arithmetic-mean-result-section .result-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.arithmetic-mean-result-section .result-value-blue {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.arithmetic-mean-result-section .result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.arithmetic-mean-result-section .result-calculation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    word-break: break-word;
}

/* Mobile Responsive for Arithmetic Mean Calculator */
@media (max-width: 768px) {
    .arithmetic-mean-calculator {
        padding: 1.5rem;
    }

    .arithmetic-mean-header {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .header-cell {
        font-size: 0.9rem;
    }

    .arithmetic-mean-row {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.75rem;
    }

    .row-value-input,
    .row-weight-input {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .delete-row-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 70px;
    }

    .arithmetic-mean-actions {
        flex-direction: column;
    }

    .arithmetic-mean-actions .btn-add-value,
    .arithmetic-mean-actions .btn-calculate-mean {
        width: 100%;
        min-width: unset;
    }

    .calculate-mean-btn {
        width: 100%;
        min-width: unset;
    }

    .arithmetic-mean-result-section {
        padding: 0.875rem 1rem;
    }

    .arithmetic-mean-result-section .result-display {
        gap: 0.4rem 0.75rem;
    }

    .arithmetic-mean-result-section .result-label {
        font-size: 0.85rem;
    }

    .arithmetic-mean-result-section .result-value-blue {
        font-size: 1.1rem;
    }

    .arithmetic-mean-result-section .result-value {
        font-size: 1.1rem;
    }

    .arithmetic-mean-result-section .result-calculation {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .arithmetic-mean-calculator {
        padding: 1rem;
    }

    .arithmetic-mean-header {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .arithmetic-mean-row {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.5rem;
    }

    .row-value-input,
    .row-weight-input {
        padding: 0.625rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .delete-row-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        min-width: 60px;
    }

    .arithmetic-mean-result-section {
        padding: 0.75rem;
    }

    .arithmetic-mean-result-section .result-display {
        gap: 0.35rem 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .arithmetic-mean-result-section .result-label {
        font-size: 0.8rem;
    }

    .arithmetic-mean-result-section .result-value-blue {
        font-size: 1rem;
    }

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

    .arithmetic-mean-result-section .result-calculation {
        font-size: 0.8rem;
    }
}
