.navbar-nav .dropdown-menu .dropdown-item {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
    text-decoration: none !important;
}
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu .dropdown-item:active {
    text-decoration: none !important;
}
.navbar-nav .dropdown-menu .dropdown-item {
    font-family: 'Noto Sans KR', Arial, sans-serif !important;
    font-weight: 700 !important;
    color: #14532d !important;
}
.navbar-nav .dropdown-menu {
    background: #fff !important;
    box-shadow: 0 8px 32px 0 rgba(60,60,60,0.13) !important;
    border-radius: 1rem;
}
.navbar-nav .dropdown-menu {
    /* Mobile: static so it pushes content, desktop: absolute for floating */
    position: static;
    margin-top: 0;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08);
}
@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        min-width: 200px;
        z-index: 1000;
        margin-top: 0.2rem;
        display: none;
    }
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar-nav .dropdown.show .dropdown-menu,
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
}
/* Dropdown hover support for 건강 메뉴 (desktop only) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.2rem;
        min-width: 200px;
        z-index: 1000;
    }
}
.navbar-nav .dropdown .dropdown-toggle:after {
    margin-left: 0.3em;
}
/* Force navbar menu to horizontal alignment at the top */
.navbar-nav {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Ensure dropdown-menu is hidden by default and absolutely positioned */
.navbar-nav .dropdown {
    position: relative;
}
.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.2rem;
}
.navbar-nav .dropdown.show .dropdown-menu,
.navbar-nav .dropdown-menu.show {
    display: block;
}
@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Paperozi', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #327355 0%, #025930 50%, #014023 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

header h1 {
    font-family: 'Aggravo', 'Noto Sans KR', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Main Content */
main {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 1.5rem;
}

/* Counter Section */
.counter-section {
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.text-input-container {
    position: relative;
    margin-bottom: 2rem;
}

#textInput {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafbfc;
}

#textInput:focus {
    outline: none;
    border-color: #011C40;
    box-shadow: 0 0 0 3px rgba(1, 28, 64, 0.2);
    background: white;
}

#textInput::placeholder {
    color: #8899a6;
    font-style: italic;
}

.input-tools {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.btn {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #011C40;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 28, 64, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #327355 0%, #025930 100%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #011C40;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-label {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Tools Section */
.tools-section {
    margin-bottom: 3.5rem;
}

.tools-section h2 {
    font-family: 'Aggravo', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #025930;
    padding-bottom: 0.2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-card p {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #6c757d;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Goal Setting */
.goal-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#goalInput {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
}

#goalInput:focus {
    outline: none;
    border-color: #011C40;
    box-shadow: 0 0 0 2px rgba(1, 28, 64, 0.1);
}

#setGoalBtn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.goal-meter {
    position: relative;
    background: #e9ecef;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

#goalBar {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 12px;
}

#goalBar.over-limit {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

#goalText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

#goalStatus {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
}

/* SEO Meter */
.seo-meter {
    position: relative;
    background: #e9ecef;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.meter-bar {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.meter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

/* Info Section */
.info-section {
    margin-bottom: 3.5rem;
}

.info-section h2 {
    font-family: 'Aggravo', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #025930;
    padding-bottom: 0.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0.8rem;
    border-radius: 12px;
    border-left: 4px solid #025930;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.info-card p {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #6c757d;
    line-height: 1.6;
    font-weight: 400;
}

/* Tip Section */
.tip-section {
    margin-bottom: 3.5rem;
}

.tip-section h2 {
    font-family: 'Aggravo', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #025930;
    padding-bottom: 0.2rem;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header.active {
    background: #025930;
    color: white;
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-content.active {
    max-height: 300px;
}

.accordion-content p {
    padding: 1rem;
    margin: 0;
    color: #495057;
    line-height: 1.6;
    font-weight: 400;
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.features-section h2 {
    font-family: 'Aggravo', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #2c3e50;
    border-bottom: 2px solid #025930;
    padding-bottom: 0.2rem;
}

.features-list {
    display: grid;
    gap: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 60px;
    text-align: center;
}

.feature-item h4 {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-item p {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Footer */
footer {
    font-family: 'Paperozi', 'Noto Sans KR', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tools-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .input-tools {
        flex-direction: column;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    #textInput {
        min-height: 200px;
        padding: 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation for counting */
@keyframes countUp {
    from {
        transform: scale(1.2);
        color: #011C40;
    }
    to {
        transform: scale(1);
        color: #011C40;
    }
}

.stat-number.updated {
    animation: countUp 0.3s ease;
}

/* Success states for SEO meters */
.meter-bar.good {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.meter-bar.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.meter-bar.danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}