/* 기본 스타일 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 계산기 스타일 */
.description {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.description h1 {
    color: #1a237e;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.calculator {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.input-group label {
    display: inline-block;
    margin-bottom: 0;
    min-width: 100px;
    font-weight: 600;
    color: #1a237e;
}

.input-group input {
    width: 150px;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: right;
}

.input-group input:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.calculator button {
    width: 100%;
    max-width: 200px;
    margin: 10px auto 0;
    display: block;
    padding: 12px 20px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.calculator button:hover {
    background: #283593;
}

.reset-btn {
    background: #f8f9fa;
    color: #c62828;
    border: 2px solid #c62828;
}

.reset-btn:hover {
    background: #c62828;
    color: white;
}

.copy-btn {
    background: #f8f9fa;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.copy-btn:hover {
    background: #2e7d32;
    color: white;
}

/* 버튼에 아이콘 추가 */
.reset-btn::before {
    content: "🗑️";
}

.copy-btn::before {
    content: "📋";
}

.result {
    padding: 20px;
    margin: 25px auto;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    max-width: 600px;
    text-align: center;
}

.result h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.result p {
    margin: 10px 0;
    font-size: 1.1em;
}

.history-notice {
    color: #2e7d32;
    font-size: 0.95em !important;
    margin-top: 15px !important;
    padding: 8px;
    background-color: #e8f5e9;
    border-radius: 4px;
    display: inline-block;
}

/* 광고 컨테이너 스타일 */
.ad-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ad-content {
    text-align: center;
}

.ad-content h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.ad-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ad-space {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.ad-label {
    color: #999;
    font-size: 0.9em;
    margin: 0;
}

/* 기록 테이블 스타일 */
.history {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.history h3 {
    color: #1a237e;
    margin-bottom: 20px;
}

.history-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.history-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.history-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.history-actions button::before {
    font-size: 16px;
}

.history-table-container {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
}

#historyTable {
    width: 100%;
    border-collapse: collapse;
}

#historyTable th, #historyTable td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

#historyTable th {
    background-color: #1a237e;
    color: white;
    position: sticky;
    top: 0;
    font-weight: 600;
}

#historyTable tr:nth-child(even) {
    background-color: #f8f9fa;
}

#historyTable tr:hover {
    background-color: #e8eaf6;
}

#historyTable td:first-child {
    font-weight: bold;
    color: #1a237e;
}

/* LTL 가이드 스타일 */
.ltl-guide {
    margin-top: 40px;
    padding: 30px;
    background: #e8eaf6;
    border-radius: 12px;
    border-left: 4px solid #1a237e;
}

.ltl-guide h2 {
    color: #1a237e;
    margin-bottom: 25px;
}

.class-table {
    overflow-x: auto;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background-color: #1a237e;
    color: white;
    font-weight: 600;
}

.highlight {
    background-color: #e8eaf6 !important;
    font-weight: 600;
}

.notes {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid #1976d2;
}

.notes h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.official-sources {
    margin-top: 30px;
}

.official-sources h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.official-sources ul {
    list-style-type: none;
    padding-left: 0;
}

.official-sources a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.official-sources a:hover {
    color: #283593;
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #3949ab;
}

/* Privacy Policy Page Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.privacy-content section {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

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

.back-to-home {
    text-align: center;
    margin: 2rem 0;
}

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #3949ab;
}

/* Main Page Styles */
.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

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

.hero-content h2 {
    font-size: 2em;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #1a237e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.features {
    padding: 3rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

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

.how-it-works {
    padding: 3rem 0;
    background: #f8f9fa;
    margin: 2rem 0;
    border-radius: 12px;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1a237e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.benefits {
    padding: 3rem 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.benefits-list li {
    background: #e8eaf6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1em;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.cta-section h2 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1em;
}

/* SEO Articles Section */
.seo-articles {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.articles-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.articles-container > h2 {
    color: #1a237e;
    font-size: 2em;
    margin-bottom: 2rem;
    text-align: center;
}

.article-card {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1a237e;
}

.article-card h3 {
    color: #1a237e;
    font-size: 1.5em;
    margin-bottom: 1rem;
}

.article-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.article-card ul,
.article-card ol {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-card li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.formula-box {
    background: #e8eaf6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3949ab;
}

.formula-box p {
    margin: 0;
    font-size: 1.1em;
    color: #1a237e;
    text-align: center;
}

.nmfc-table {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nmfc-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.nmfc-table th {
    background-color: #1a237e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.nmfc-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.nmfc-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.nmfc-table tr:hover {
    background-color: #e8eaf6;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8em;
    }
    
    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .articles-container > h2 {
        font-size: 1.5em;
    }
    
    .nmfc-table {
        font-size: 0.9em;
    }
}