/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding-top: 70px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #666;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 7px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.nav-link.active {
    background: #1a1a1a;
    color: #fff;
}

.nav-link i {
    font-size: 1rem;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ===== Dropdown Menu ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.nav-dropdown-menu li a.active {
    background: #f0f0f0;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-dropdown-menu li a i {
    width: 18px;
    text-align: center;
    color: #888;
}

/* Mobile Navigation (includes tablet) */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }

    /* Mobile Dropdown */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        border-radius: 8px;
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .nav-dropdown-menu li a {
        justify-content: center;
    }
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 40px 20px;
    color: #1a1a1a;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header h1 i {
    margin-right: 10px;
}

.header p {
    font-size: 1.1rem;
    color: #666;
}

/* ===== Input Section ===== */
.input-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#titleInput {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

#titleInput:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.category-select {
    padding: 18px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    background: #fff;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
    min-width: 150px;
}

.category-select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.btn-generate {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #333;
}

.btn-generate i {
    margin-right: 8px;
}

/* ===== Template Gallery ===== */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

/* ===== Template Card ===== */
.template-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.template-preview {
    padding: 30px 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.template-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.template-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-view-code {
    background: #f0f0f0;
    color: #333;
}

.btn-view-code:hover {
    background: #e0e0e0;
}

.btn-copy-code {
    background: #1a1a1a;
    color: #fff;
}

.btn-copy-code:hover {
    background: #333;
    transform: scale(1.02);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: #4caf50;
    font-size: 1.2rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.modal-header h3 i {
    margin-right: 10px;
    color: #1a1a1a;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 25px;
}

.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.tab-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.code-content {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    max-height: 300px;
    overflow: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

.btn-copy {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-copy:hover {
    background: #333;
    transform: scale(1.02);
}

.btn-copy i {
    margin-right: 8px;
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #1a1a1a;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 1rem;
    color: #888;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .input-section {
        padding: 20px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    #titleInput {
        min-width: 100%;
    }

    .btn-generate {
        width: 100%;
    }

    .template-gallery {
        grid-template-columns: 1fr;
    }

    .template-info {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .template-name {
        text-align: center;
    }

    .template-actions {
        justify-content: center;
    }

    .code-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        text-align: center;
    }

    .modal-content {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .template-preview {
        padding: 20px 15px;
    }

    .btn-action {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* ===== Markdown Converter Styles ===== */
.converter-section {
    margin-bottom: 40px;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.converter-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    color: #666;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.btn-panel {
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
    background: #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-panel:hover {
    background: #e0e0e0;
}

.btn-copy-html {
    background: #1a1a1a;
    color: #fff;
}

.btn-copy-html:hover {
    background: #333;
}

#markdownInput {
    flex: 1;
    min-height: 400px;
    padding: 20px;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', 'Noto Sans KR', monospace;
    border: none;
    outline: none;
    resize: none;
    line-height: 1.7;
    color: #333;
}

#markdownInput::placeholder {
    color: #aaa;
}

.code-output {
    flex: 1;
    min-height: 400px;
    padding: 20px;
    background: #1e1e1e;
    overflow: auto;
}

.code-output pre {
    margin: 0;
}

.code-output code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Preview Section */
.preview-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-content {
    padding: 30px;
    min-height: 200px;
    line-height: 1.8;
}

.preview-placeholder {
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
}

/* Preview Content Styles */
.preview-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.preview-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 18px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.preview-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.preview-content h4, .preview-content h5, .preview-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 0 8px 0;
}

.preview-content p {
    margin: 10px 0;
}

.preview-content ul, .preview-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.preview-content li {
    margin: 5px 0;
}

.preview-content blockquote {
    margin: 15px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 4px solid #1a1a1a;
    color: #555;
    font-style: italic;
}

.preview-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d63384;
}

.preview-content pre {
    margin: 15px 0;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow-x: auto;
}

.preview-content pre code {
    background: transparent;
    color: #d4d4d4;
    padding: 0;
}

.preview-content a {
    color: #2196f3;
    text-decoration: none;
}

.preview-content a:hover {
    text-decoration: underline;
}

.preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.preview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.preview-content th, .preview-content td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.preview-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.preview-content hr {
    margin: 25px 0;
    border: none;
    border-top: 2px solid #eee;
}

/* Cheatsheet Section */
.cheatsheet-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.cheatsheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cheatsheet-header:hover {
    background: #f0f0f0;
}

.cheatsheet-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cheatsheet-arrow {
    transition: transform 0.3s ease;
    color: #666;
}

.cheatsheet-header.active .cheatsheet-arrow {
    transform: rotate(180deg);
}

.cheatsheet-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cheatsheet-content.active {
    max-height: 500px;
}

.cheatsheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
}

.cheatsheet-item {
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
}

.cheatsheet-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.cheatsheet-item code {
    display: block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    margin: 5px 0;
    color: #555;
    border: 1px solid #eee;
}

/* Responsive - Markdown Converter */
@media (max-width: 992px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }

    #markdownInput,
    .code-output {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cheatsheet-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cheatsheet-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== File Rename Tool Styles ===== */
.rename-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Upload Section */
.upload-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #1a1a1a;
    background: #fafafa;
}

.upload-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #1a1a1a;
}

.upload-area h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.btn-upload {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-upload:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-upload i {
    margin-right: 8px;
}

.file-count {
    text-align: center;
    padding: 15px;
    font-size: 0.95rem;
    color: #666;
}

.file-count span {
    font-weight: 700;
    color: #1a1a1a;
}

/* Rules Section */
.rules-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #666;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.rule-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.rule-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #f0f0f0;
    border-bottom: 1px solid #eee;
}

.rule-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-header h4 i {
    font-size: 0.9rem;
    color: #666;
}

/* Toggle Switch */
.rule-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.rule-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.rule-toggle input:checked + .toggle-slider {
    background: #1a1a1a;
}

.rule-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.rule-body {
    padding: 18px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #1a1a1a;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

/* Preview Section - Rename */
.rename-preview {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.preview-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.preview-table th,
.preview-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.preview-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.preview-table tbody tr:hover {
    background: #fafafa;
}

.col-checkbox {
    width: 40px;
    text-align: center;
}

.col-number {
    width: 50px;
    text-align: center;
    color: #888;
}

.col-original {
    min-width: 200px;
}

.col-arrow {
    width: 50px;
    text-align: center;
    color: #1a1a1a;
}

.col-new {
    min-width: 200px;
}

.col-action {
    width: 60px;
    text-align: center;
}

.file-name {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.file-name.original {
    color: #666;
}

.file-name.new {
    color: #1a1a1a;
    font-weight: 500;
}

.file-name.changed {
    color: #4caf50;
}

.file-name.error {
    color: #f44336;
}

.btn-remove {
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #999;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    color: #f44336;
    background: #fff5f5;
}

.empty-state-small {
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
}

.empty-state-small i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-small p {
    font-size: 0.9rem;
}

/* Result Section */
.result-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.result-content {
    text-align: center;
    padding: 20px;
}

.result-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-message i {
    color: #4caf50;
    font-size: 1.3rem;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive - Rename Tool */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .preview-actions {
        width: 100%;
    }

    .preview-actions button {
        flex: 1;
        justify-content: center;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .preview-table {
        font-size: 0.8rem;
    }

    .preview-table th,
    .preview-table td {
        padding: 10px 8px;
    }

    .col-original,
    .col-new {
        min-width: 150px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-area h3 {
        font-size: 1rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Image Converter Styles ===== */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Options Section */
.options-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.option-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.option-header {
    padding: 15px 18px;
    background: #f0f0f0;
    border-bottom: 1px solid #eee;
}

.option-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-header h4 i {
    color: #666;
}

.option-body {
    padding: 18px;
}

.option-hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Quality Slider */
.quality-slider {
    margin-bottom: 10px;
}

.quality-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.quality-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.quality-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

/* Color Options */
.color-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.color-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.color-picker {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Image Preview Section */
.image-preview-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.image-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 20px 20px;
}

.image-info {
    padding: 12px;
}

.image-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.image-size {
    font-size: 0.75rem;
    color: #888;
}

.image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-card:hover .image-remove {
    opacity: 1;
}

.image-card {
    position: relative;
}

/* Result Section */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.result-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.result-info {
    padding: 15px;
}

.result-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-sizes {
    font-size: 0.75rem;
    color: #888;
}

.result-sizes .original {
    text-decoration: line-through;
    margin-right: 5px;
}

.result-sizes .converted {
    color: #4caf50;
    font-weight: 500;
}

.size-reduction {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 4px;
    font-weight: 500;
}

.size-reduction.increase {
    background: #fff3e0;
    color: #ff9800;
}

.btn-download-single {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-download-single:hover {
    background: #333;
}

/* Info Section */
.info-section {
    margin-top: 10px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 i {
    color: #2196f3;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li strong {
    color: #333;
}

/* Progress Bar */
.progress-container {
    margin-top: 15px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1a1a1a;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive - Image Converter */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .color-options {
        gap: 10px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   웹 속도 측정 스타일
   ========================================== */

.speed-test-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.speed-input-group {
    margin-bottom: 20px;
}

.speed-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.url-input-wrapper {
    display: flex;
    gap: 15px;
}

.url-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.url-input-wrapper input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.url-input-wrapper select {
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    min-width: 140px;
}

.speed-options {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.speed-options .option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-options .option-group label {
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.speed-options select {
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

.speed-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.speed-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.speed-actions .btn-primary,
.speed-actions .btn-secondary {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.speed-actions .btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.speed-actions .btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.speed-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.speed-actions .btn-secondary:hover {
    background: #e0e0e0;
}

/* 진행 상태 */
.speed-progress {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.speed-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a, #444);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.speed-progress .progress-text {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
}

/* 결과 요약 */
.speed-summary {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.speed-summary h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* 등급 표시 */
.speed-grade {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.grade-badge {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    background: #ccc;
}

.grade-badge.grade-a {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.grade-badge.grade-b {
    background: linear-gradient(135deg, #8bc34a, #9ccc65);
}

.grade-badge.grade-c {
    background: linear-gradient(135deg, #ffc107, #ffca28);
}

.grade-badge.grade-d {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.grade-badge.grade-f {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.grade-text {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* 상세 결과 테이블 */
.speed-results,
.bulk-results {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.speed-results h2,
.bulk-results h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results-table th,
.results-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.results-table td {
    color: #555;
}

.results-table tbody tr:hover {
    background: #fafafa;
}

.results-table .status-success {
    color: #4caf50;
    font-weight: 500;
}

.results-table .status-error {
    color: #f44336;
    font-weight: 500;
}

.results-table .url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 대량 테스트 */
.bulk-test-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.bulk-test-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-input-group {
    margin-bottom: 20px;
}

.bulk-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.bulk-input-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Noto Sans KR', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.bulk-input-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.bulk-summary {
    margin-top: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.bulk-summary p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.bulk-summary strong {
    color: #333;
}

/* 도움말 섹션 */
.help-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.help-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-content {
    display: grid;
    gap: 20px;
}

.help-item {
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.help-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.grade-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grade-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
}

.grade-list .grade-badge {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 6px;
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* 반응형 - 속도 측정 */
@media (max-width: 768px) {
    .url-input-wrapper {
        flex-direction: column;
    }

    .url-input-wrapper select {
        min-width: 100%;
    }

    .speed-options {
        gap: 15px;
    }

    .speed-actions {
        flex-direction: column;
    }

    .speed-actions .btn-primary,
    .speed-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .speed-grade {
        flex-direction: column;
        text-align: center;
    }

    .bulk-summary {
        flex-direction: column;
        gap: 10px;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 20px 15px;
    }

    .summary-value {
        font-size: 1.5rem;
    }
}

/* ==========================================
   네트워크 속도 테스트 스타일
   ========================================== */

.network-test-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.network-test-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.network-test-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.test-server-select,
.custom-server-input {
    flex: 1;
    min-width: 200px;
}

.test-server-select label,
.custom-server-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.test-server-select select,
.custom-server-input input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s ease;
}

.test-server-select select:focus,
.custom-server-input input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.btn-large {
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
}

/* 속도 게이지 */
.speed-gauges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gauge-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.gauge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gauge-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1a1a1a, #444);
    color: #fff;
}

.gauge-icon.ping {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.gauge-icon.download {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.gauge-icon.upload {
    background: linear-gradient(135deg, #4caf50, #81c784);
}

.gauge-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 15px;
}

.gauge-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.gauge-fill.ping-fill {
    background: linear-gradient(90deg, #9c27b0, #ba68c8);
}

.gauge-fill.download-fill {
    background: linear-gradient(90deg, #2196f3, #64b5f6);
}

.gauge-fill.upload-fill {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

/* 속도 그래프 */
.speed-chart-container,
.resource-chart-container {
    background: #fafafa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #eee;
}

.speed-chart-container h3,
.resource-chart-container h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#speedChart,
#resourceChart {
    max-height: 300px;
}

/* 네트워크 결과 요약 */
.network-summary {
    margin-top: 30px;
}

.network-summary h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-result-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.network-result-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.network-result-card .result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px;
    background: #1a1a1a;
    color: #fff;
}

.network-result-card .result-icon.download {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
}

.network-result-card .result-icon.upload {
    background: linear-gradient(135deg, #4caf50, #81c784);
}

.result-data {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

.result-unit {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.result-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.result-detail {
    font-size: 0.8rem;
    color: #999;
}

/* 정보 리스트 */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a1a1a;
}

/* 측정 중 애니메이션 */
@keyframes speedPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.testing .gauge-value {
    animation: speedPulse 1s infinite;
}

@keyframes barFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.testing .gauge-fill {
    background-size: 200% 100%;
    animation: barFlow 1.5s linear infinite;
}

/* 반응형 - 네트워크 테스트 */
@media (max-width: 992px) {
    .network-result-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .speed-gauges {
        grid-template-columns: 1fr;
    }

    .gauge-card {
        padding: 25px 20px;
    }

    .gauge-value {
        font-size: 1.8rem;
    }

    .network-result-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .network-test-controls {
        flex-direction: column;
    }

    .test-server-select,
    .custom-server-input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .network-result-cards {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 1.5rem;
    }
}

/* ==========================================
   푸터 스타일
   ========================================== */

.footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a i {
    font-size: 0.85rem;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
    margin: 5px 0;
}

.footer-legal-links {
    margin-top: 10px !important;
}

.footer-legal-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #fff;
}

/* 푸터 반응형 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }
}

/* ==========================================
   유튜브 썸네일 추출기 스타일
   ========================================== */

.youtube-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* URL 입력 섹션 */
.youtube-input-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.youtube-input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.youtube-input-wrapper input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.youtube-input-wrapper input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

.youtube-input-wrapper input::placeholder {
    color: #aaa;
}

/* URL 형식 태그 */
.url-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.format-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.format-label i {
    margin-right: 5px;
}

.format-tag {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 에러 메시지 */
.error-message {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 16px 20px;
    color: #c62828;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.error-message i {
    font-size: 1.2rem;
}

/* 결과 섹션 */
.youtube-result {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.youtube-result .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.youtube-result .section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Video ID 배지 */
.video-id-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
}

.video-id-badge .badge-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.video-id-badge code {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Consolas', 'Monaco', monospace;
}

.btn-icon {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

/* 썸네일 그리드 */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.thumbnail-card {
    background: #f8f9fa;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.thumbnail-card.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.thumbnail-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #e9ecef;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumbnail-card:hover .thumbnail-image {
    transform: scale(1.08);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-card:hover .thumbnail-overlay {
    opacity: 1;
}

.btn-preview {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-preview:hover {
    background: #fff;
    transform: scale(1.1);
}

.unavailable-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.thumbnail-card.unavailable .unavailable-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thumbnail-card.unavailable .thumbnail-overlay {
    display: none;
}

.thumbnail-info {
    padding: 18px 20px 12px;
}

.thumbnail-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.thumbnail-info .resolution {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff0000;
    margin-bottom: 4px;
}

.thumbnail-info .description {
    font-size: 0.85rem;
    color: #888;
}

.thumbnail-actions {
    padding: 0 20px 18px;
    display: flex;
    gap: 10px;
}

.thumbnail-actions .btn-thumb {
    flex: 1;
    padding: 12px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thumbnail-actions .btn-download {
    background: #1a1a1a;
    color: #fff;
}

.thumbnail-actions .btn-download:hover {
    background: #333;
    transform: translateY(-2px);
}

.thumbnail-actions .btn-copy-url {
    background: #e9ecef;
    color: #555;
}

.thumbnail-actions .btn-copy-url:hover {
    background: #ddd;
    transform: translateY(-2px);
}

/* 사용법 가이드 섹션 */
.guide-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.guide-section .section-header {
    margin-bottom: 25px;
}

.guide-section .section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.guide-step:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.step-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* 미리보기 모달 */
.youtube-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    box-shadow: none;
}

.preview-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.preview-modal-content .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-modal-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 유튜브 썸네일 반응형 */
@media (max-width: 768px) {
    .youtube-input-wrapper {
        flex-direction: column;
    }

    .youtube-input-wrapper .btn-generate {
        width: 100%;
    }

    .url-formats {
        justify-content: center;
    }

    .youtube-result .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .video-id-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   Robots.txt 생성기 스타일
   ========================================== */

.robots-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.robots-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.robots-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.robots-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* 라디오 옵션 그룹 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: #f0f0f0;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-text strong {
    color: #1a1a1a;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.radio-text small {
    font-size: 0.85rem;
    color: #888;
}

/* 토글 스위치 */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .toggle-slider {
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch .toggle-slider::before {
    display: none;
}

.toggle-switch .toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #1a1a1a;
}

.toggle-switch input:checked + .toggle-slider::after {
    left: 25px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

/* 규칙 블록 */
.rules-block {
    margin-bottom: 25px;
}

.rules-block:last-child {
    margin-bottom: 0;
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rules-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-header h4 i {
    color: #888;
}

.btn-add {
    background: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-item {
    display: flex;
    gap: 10px;
}

.rule-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', monospace;
    transition: all 0.3s ease;
}

.rule-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.btn-remove {
    background: #fff5f5;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #e53935;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #ffebee;
}

.rules-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* 봇 그리드 */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bot-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.bot-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.bot-icon-fa {
    font-size: 1.2rem;
    color: #555;
}

.bot-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bot-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* AI 크롤러 정보 */
.ai-crawlers-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ai-crawlers-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-crawler-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 입력 필드 with 라벨 */
.input-with-label {
    margin-bottom: 15px;
}

.input-with-label label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.input-with-label .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-with-label .form-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.btn-add-sitemap {
    background: #f0f0f0;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-sitemap:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.sitemap-item {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.sitemap-item .form-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sitemap-item .form-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* robots.txt 미리보기 */
.robots-preview-section .preview-actions {
    display: flex;
    gap: 10px;
}

.robots-preview {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px 25px;
    overflow-x: auto;
}

.robots-preview pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Robots.txt 반응형 */
@media (max-width: 768px) {
    .robots-section {
        padding: 20px;
    }

    .robots-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-option {
        padding: 12px 15px;
    }

    .bot-grid {
        grid-template-columns: 1fr;
    }

    .robots-preview-section .preview-actions {
        width: 100%;
    }

    .robots-preview-section .preview-actions .btn-secondary,
    .robots-preview-section .preview-actions .btn-primary {
        flex: 1;
    }
}

/* ==========================================
   SEO 검사기 스타일
   ========================================== */

.seo-checker-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 입력 섹션 */
.seo-input-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.seo-input-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.seo-input-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.btn-sm {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
}

.textarea-wrapper {
    flex: 1;
    margin-bottom: 20px;
}

.textarea-wrapper textarea {
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding: 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.textarea-wrapper textarea::placeholder {
    color: #aaa;
}

.input-actions {
    display: flex;
    gap: 12px;
}

.input-actions .btn-primary,
.input-actions .btn-secondary {
    padding: 14px 24px;
    font-size: 1rem;
}

.input-actions .btn-primary {
    flex: 1;
}

/* 결과 섹션 */
.seo-result-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.seo-result-section .section-header {
    margin-bottom: 20px;
}

.seo-result-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* 결과 대기 화면 */
.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
    padding: 60px 20px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.result-placeholder p {
    font-size: 1rem;
}

/* 점수 카드 */
.score-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 25px;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle .score-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.score-circle .score-progress {
    fill: none;
    stroke: #4caf50;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.score-circle .score-progress.score-good {
    stroke: #4caf50;
}

.score-circle .score-progress.score-average {
    stroke: #ff9800;
}

.score-circle .score-progress.score-poor {
    stroke: #f44336;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value span {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
}

.score-value small {
    font-size: 0.9rem;
    color: #888;
    display: block;
}

.score-info {
    flex: 1;
}

.score-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.score-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.score-stats {
    display: flex;
    gap: 20px;
}

.score-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.score-stats .stat.pass {
    color: #4caf50;
}

.score-stats .stat.warn {
    color: #ff9800;
}

.score-stats .stat.fail {
    color: #f44336;
}

/* 검사 결과 카드 */
.check-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.check-cards::-webkit-scrollbar {
    width: 6px;
}

.check-cards::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.check-cards::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.check-cards::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.check-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.check-card:hover {
    background: #f0f0f0;
}

.check-card.status-pass {
    border-left-color: #4caf50;
}

.check-card.status-warn {
    border-left-color: #ff9800;
}

.check-card.status-fail {
    border-left-color: #f44336;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.check-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1a1a1a;
}

.check-title i {
    font-size: 1rem;
    color: #666;
}

.check-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-status.pass {
    background: #e8f5e9;
    color: #2e7d32;
}

.check-status.warn {
    background: #fff3e0;
    color: #ef6c00;
}

.check-status.fail {
    background: #ffebee;
    color: #c62828;
}

.check-message {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.check-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.check-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.check-details ul li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-details ul li i {
    font-size: 0.7rem;
    color: #888;
}

/* 키워드 섹션 */
.keyword-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.keyword-section .section-title {
    margin-bottom: 15px;
}

.keyword-section .section-title h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.keyword-item .keyword-text {
    font-weight: 600;
    color: #1a1a1a;
}

.keyword-item .keyword-count {
    background: #1a1a1a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* SEO 검사기 반응형 */
@media (max-width: 1200px) {
    .seo-checker-container {
        grid-template-columns: 1fr;
    }

    .textarea-wrapper textarea {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .seo-input-section,
    .seo-result-section {
        padding: 20px;
    }

    .seo-input-section .section-header,
    .seo-result-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .score-stats {
        justify-content: center;
    }

    .input-actions {
        flex-direction: column;
    }

    .input-actions .btn-primary,
    .input-actions .btn-secondary {
        width: 100%;
    }

    .check-cards {
        max-height: none;
        padding-right: 0;
    }

    .keyword-list {
        justify-content: center;
    }
}

/* ==========================================
   Sitemap.xml 생성기 스타일
   ========================================== */

.sitemap-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sitemap-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sitemap-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sitemap-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* URL 목록 */
.url-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.url-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.url-item:hover {
    border-color: #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.url-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f0f0f0;
    border-bottom: 1px solid #e8e8e8;
}

.url-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-remove-url {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-url:hover {
    background: #ffebee;
    color: #e53935;
}

.url-item-body {
    padding: 18px;
}

.url-field {
    margin-bottom: 15px;
}

.url-field:last-child {
    margin-bottom: 0;
}

.url-field-full {
    width: 100%;
}

.url-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.url-field label i {
    margin-right: 6px;
    color: #888;
}

.url-field input[type="url"],
.url-field input[type="date"],
.url-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.url-field input[type="url"]:focus,
.url-field input[type="date"]:focus,
.url-field select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.url-field input.error {
    border-color: #e53935;
    background: #fff5f5;
}

.url-field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.date-input-wrapper {
    display: flex;
    gap: 8px;
}

.date-input-wrapper input {
    flex: 1;
}

.btn-today {
    width: 44px;
    height: 44px;
    border: 2px solid #e8e8e8;
    background: #fff;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-today:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* 대량 추가 섹션 */
.bulk-add-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e8e8e8;
}

.bulk-add-section .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bulk-add-section .section-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.bulk-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e0e0e0;
}

.bulk-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bulk-content textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.bulk-options {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.bulk-options .option-group {
    flex: 1;
    min-width: 150px;
}

.bulk-options .option-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.bulk-options .option-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.bulk-options .btn-primary {
    padding: 10px 20px;
    white-space: nowrap;
}

/* 액션 섹션 */
.action-section {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-section .btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Sitemap 미리보기 */
.sitemap-preview-section .preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.url-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.sitemap-preview {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px 25px;
    overflow-x: auto;
}

.sitemap-preview pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Sitemap 반응형 */
@media (max-width: 992px) {
    .url-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sitemap-section {
        padding: 20px;
    }

    .sitemap-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .url-field-row {
        grid-template-columns: 1fr;
    }

    .bulk-options {
        flex-direction: column;
    }

    .bulk-options .option-group {
        width: 100%;
    }

    .bulk-options .btn-primary {
        width: 100%;
    }

    .action-section {
        flex-direction: column;
    }

    .action-section .btn-secondary,
    .action-section .btn-primary {
        width: 100%;
    }

    .sitemap-preview-section .preview-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .url-count {
        width: 100%;
        text-align: center;
    }

    .sitemap-preview-section .preview-actions .btn-secondary,
    .sitemap-preview-section .preview-actions .btn-primary {
        flex: 1;
    }
}

/* ==========================================
   문장 가독성 분석기 스타일
   ========================================== */

.readability-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.readability-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.readability-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.readability-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.readability-section .header-actions {
    display: flex;
    gap: 10px;
}

/* 입력 통계 */
.input-stats {
    display: flex;
    gap: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-stats span {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-stats span i {
    color: #888;
}

.input-stats span strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* 점수 카드들 */
.score-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.score-card-large {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 점수 게이지 */
.score-gauge {
    position: relative;
    width: 180px;
    height: 100px;
    margin-bottom: 20px;
}

.score-gauge svg {
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: #4caf50;
    stroke-width: 8;
    stroke-linecap: round;
    transition: all 1s ease;
}

.score-display {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.score-display .score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.score-display .score-label {
    font-size: 0.9rem;
    color: #888;
    display: block;
}

.score-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.score-grade {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.score-grade.excellent { color: #2e7d32; }
.score-grade.good { color: #4caf50; }
.score-grade.average { color: #ff9800; }
.score-grade.warning { color: #f57c00; }
.score-grade.poor { color: #f44336; }

.score-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 통계 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

/* 문장 분석 */
.sentence-analysis {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.sentence-analysis .section-header {
    margin-bottom: 20px;
}

.sentence-analysis .section-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    background: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #ccc;
}

.filter-btn.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.sentence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.sentence-list::-webkit-scrollbar {
    width: 6px;
}

.sentence-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.sentence-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sentence-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid #4caf50;
    transition: all 0.3s ease;
}

.sentence-item:hover {
    background: #f0f0f0;
}

.sentence-item.complexity-medium {
    border-left-color: #ff9800;
}

.sentence-item.complexity-high {
    border-left-color: #f44336;
}

.sentence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sentence-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
}

.sentence-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-complexity-low {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-complexity-medium {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-complexity-high {
    background: #ffebee;
    color: #c62828;
}

.sentence-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sentence-stats {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #888;
}

.sentence-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sentence-stats i {
    font-size: 0.75rem;
}

/* 서브 리스트 스타일 */
.info-card .sub-list {
    margin-top: 8px;
    margin-left: 15px;
    padding-left: 0;
}

.info-card .sub-list li {
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: none;
}

/* 가독성 분석기 반응형 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .score-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .readability-section {
        padding: 20px;
    }

    .readability-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .readability-section .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .input-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sentence-analysis .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .sentence-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sentence-list {
        max-height: none;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .score-gauge {
        width: 150px;
        height: 85px;
    }

    .score-display .score-number {
        font-size: 2rem;
    }
}

/* ==========================================
   UTM 생성기 스타일
   ========================================== */

.utm-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.utm-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.utm-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.utm-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* UTM 입력 그룹 */
.utm-input-group {
    margin-bottom: 15px;
}

.utm-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.utm-input-group .required {
    color: #e53935;
}

.utm-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.utm-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.utm-input::placeholder {
    color: #aaa;
}

.input-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
    margin-bottom: 0;
}

/* UTM 파라미터 그리드 */
.utm-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.utm-param-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.utm-param-card:hover {
    border-color: #ccc;
}

.utm-param-card.required-param {
    border-left: 3px solid #1a1a1a;
}

.param-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.param-header label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.param-header .required {
    color: #e53935;
}

.param-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
}

.param-badge.optional {
    background: #e0e0e0;
    color: #666;
}

.utm-param-card .utm-input {
    margin-bottom: 10px;
}

.param-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* 퀵 태그 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-tag:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.quick-tag.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* 선택 파라미터 섹션 */
.optional-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.optional-section .section-header {
    margin-bottom: 0;
}

.optional-section .section-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.btn-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle:hover {
    background: #e0e0e0;
}

.optional-params {
    margin-top: 20px;
}

.optional-params .utm-params-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* 결과 섹션 */
.result-url-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.url-display {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #1a1a1a;
    word-break: break-all;
    line-height: 1.6;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.url-actions {
    display: flex;
    gap: 10px;
}

.btn-copy, .btn-open {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy {
    background: #1a1a1a;
    color: #fff;
}

.btn-copy:hover {
    background: #333;
}

.btn-open {
    background: #e0e0e0;
    color: #333;
}

.btn-open:hover {
    background: #d0d0d0;
}

/* URL 분석 */
.url-breakdown {
    margin-bottom: 25px;
}

.url-breakdown h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.breakdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-label i {
    color: #888;
    width: 16px;
}

.breakdown-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 단축 URL 섹션 */
.shorten-section {
    padding: 20px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1px solid #cce5ff;
}

.shorten-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shorten-section p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.shorten-links {
    display: flex;
    gap: 10px;
}

.shorten-link {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1565c0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shorten-link:hover {
    background: #e3f2fd;
}

/* 히스토리 섹션 */
.history-section {
    margin-top: 25px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #ccc;
}

.history-main {
    flex: 1;
    min-width: 0;
}

.history-url {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    word-break: break-all;
    margin-bottom: 8px;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.history-date {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-params {
    display: flex;
    gap: 6px;
}

.param-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    background: #e0e0e0;
    border-radius: 10px;
    color: #555;
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.history-actions .btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-actions .btn-icon:hover {
    background: #1a1a1a;
    color: #fff;
}

/* UTM 생성기 반응형 */
@media (max-width: 992px) {
    .utm-params-grid {
        grid-template-columns: 1fr;
    }

    .optional-params .utm-params-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .utm-section {
        padding: 20px;
    }

    .url-actions {
        flex-direction: column;
    }

    .shorten-links {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .history-actions {
        margin-left: 0;
        width: 100%;
    }

    .history-actions .btn-icon {
        flex: 1;
    }
}

/* ==========================================
   Lazy Loading 이미지 코드 생성기
   ========================================== */

.lazy-generator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lazy-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lazy-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lazy-section h2 i {
    color: #667eea;
}

/* 입력 영역 */
.input-area textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-area textarea:focus {
    outline: none;
    border-color: #667eea;
}

.input-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-hint i {
    color: #667eea;
}

/* 옵션 그리드 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.option-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.option-card:hover {
    background: #f0f0f0;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 8px;
}

.option-toggle input[type="checkbox"] {
    display: none;
}

.option-toggle .toggle-slider {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.option-toggle .toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.option-toggle input:checked + .toggle-slider {
    background: #667eea;
}

.option-toggle input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.option-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-label i {
    color: #667eea;
}

.option-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    padding-left: 56px;
}

/* Srcset 상세 옵션 */
.srcset-options {
    margin-top: 20px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 12px;
    border: 1px solid #e0e8ff;
}

.srcset-options h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srcset-options h3 i {
    color: #667eea;
}

.srcset-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #e8ecff;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #667eea;
}

.srcset-naming {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.srcset-naming label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.srcset-naming input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    width: 200px;
}

.srcset-naming input:focus {
    outline: none;
    border-color: #667eea;
}

.pattern-hint {
    font-size: 0.8rem;
    color: #888;
}

/* 생성 버튼 영역 */
.generate-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-generate {
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    padding: 14px 30px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: #e0e0e0;
}

/* 결과 영역 */
.result-area {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #16162a;
    border-bottom: 1px solid #2a2a4a;
}

.result-count {
    font-size: 0.85rem;
    color: #aaa;
}

.btn-copy {
    padding: 8px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    background: #5a6fd6;
}

.btn-copy.copied {
    background: #4caf50;
}

.result-code {
    padding: 20px;
    margin: 0;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 미리보기 비교 */
.preview-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.preview-box {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.preview-box h4 {
    padding: 12px 16px;
    margin: 0;
    background: #e8e8e8;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.preview-box pre {
    padding: 16px;
    margin: 0;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.preview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    color: #667eea;
    font-size: 1.5rem;
}

/* 정보 카드 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.info-section .info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.info-section .info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-section .info-card h4 i {
    color: #667eea;
}

.info-section .info-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Lazy Loading 생성기 반응형 */
@media (max-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lazy-section {
        padding: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-desc {
        padding-left: 0;
        margin-top: 8px;
    }

    .srcset-naming {
        flex-direction: column;
        align-items: flex-start;
    }

    .srcset-naming input {
        width: 100%;
    }

    .generate-section {
        flex-direction: column;
    }

    .btn-generate,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .preview-comparison {
        grid-template-columns: 1fr;
    }

    .preview-arrow {
        padding: 10px 0;
        transform: rotate(90deg);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 코드 비교 그리드 */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.comparison-box {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-box h4 {
    padding: 12px 16px;
    margin: 0;
    background: #e8e8e8;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-box h4 i {
    color: #667eea;
}

.comparison-box .robots-preview {
    border-radius: 0;
}

.comparison-box .robots-preview pre {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    color: #667eea;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-arrow {
        padding: 10px 0;
        transform: rotate(90deg);
    }
}

/* ==========================================
   나무위키 변환기/에디터 스타일
   ========================================== */

/* 코드 입력 텍스트에어리어 */
.code-textarea {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 나무위키 미리보기 */
.namuwiki-preview {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
    line-height: 1.8;
}

.namuwiki-preview h1,
.namuwiki-preview h2,
.namuwiki-preview h3,
.namuwiki-preview h4,
.namuwiki-preview h5,
.namuwiki-preview h6 {
    margin: 20px 0 10px 0;
    color: #333;
}

.namuwiki-preview h1 { font-size: 1.8rem; border-bottom: 2px solid #667eea; padding-bottom: 5px; }
.namuwiki-preview h2 { font-size: 1.5rem; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.namuwiki-preview h3 { font-size: 1.3rem; }
.namuwiki-preview h4 { font-size: 1.1rem; }

.namuwiki-preview blockquote {
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 10px 0;
    color: #666;
}

.namuwiki-preview a {
    color: #667eea;
    text-decoration: none;
}

.namuwiki-preview a:hover {
    text-decoration: underline;
}

/* 문법 비교 테이블 */
.syntax-comparison-table {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.comparison-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
}

/* 나무위키 에디터 */
.namuwiki-editor-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.namuwiki-editor-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.namuwiki-editor-container.fullscreen .editor-main {
    flex: 1;
}

.namuwiki-editor-container.fullscreen .editor-textarea,
.namuwiki-editor-container.fullscreen .editor-preview {
    height: calc(100vh - 180px);
}

/* 에디터 툴바 */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 4px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 4px;
}

.toolbar-spacer {
    flex: 1;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.toolbar-btn:active {
    background: #ddd;
}

.toolbar-btn strong {
    font-size: 0.75rem;
}

/* 에디터 메인 영역 */
.editor-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.editor-input-area,
.editor-preview-area {
    display: flex;
    flex-direction: column;
}

.editor-input-area {
    border-right: 1px solid #e0e0e0;
}

.editor-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.editor-panel-header i {
    margin-right: 6px;
}

.char-count {
    font-weight: 400;
    color: #888;
}

.editor-textarea {
    flex: 1;
    width: 100%;
    padding: 16px;
    border: none;
    resize: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    outline: none;
}

.editor-preview {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    line-height: 1.8;
}

.editor-preview .preview-placeholder {
    color: #aaa;
    font-style: italic;
}

.editor-preview h1,
.editor-preview h2,
.editor-preview h3 {
    margin: 15px 0 10px 0;
}

.editor-preview h1 { font-size: 1.6rem; border-bottom: 2px solid #667eea; padding-bottom: 5px; }
.editor-preview h2 { font-size: 1.3rem; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.editor-preview h3 { font-size: 1.1rem; }

.editor-preview blockquote {
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 10px 0;
    color: #666;
    background: #f9f9f9;
    padding: 10px 15px;
}

.editor-preview a {
    color: #667eea;
}

.editor-preview .namu-table {
    border-collapse: collapse;
    margin: 10px 0;
}

.editor-preview .namu-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.editor-preview .code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.editor-preview .video-placeholder {
    background: #ff0000;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.editor-preview .footnote {
    color: #667eea;
    cursor: help;
}

/* 에디터 액션 버튼 */
.editor-actions {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.action-group {
    display: flex;
    gap: 10px;
}

/* 단축키 그리드 */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shortcut-item kbd {
    background: #667eea;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
}

.shortcut-item span {
    color: #666;
    font-size: 0.85rem;
}

/* 모달 스몰 */
.modal-sm .modal-content {
    max-width: 400px;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* 색상 팔레트 */
.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.color-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #333;
}

/* 토글 스위치 스몰 */
.toggle-sm {
    transform: scale(0.8);
    transform-origin: right center;
}

.toggle-sm .toggle-label {
    font-size: 0.8rem;
}

/* 에디터 반응형 */
@media (max-width: 992px) {
    .editor-main {
        grid-template-columns: 1fr;
    }

    .editor-input-area {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .editor-textarea,
    .editor-preview {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .editor-toolbar {
        padding: 10px;
        gap: 4px;
    }

    .toolbar-btn {
        width: 32px;
        height: 32px;
    }

    .toolbar-divider {
        display: none;
    }

    .editor-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-group {
        width: 100%;
    }

    .action-group .btn-secondary,
    .action-group .btn-primary {
        flex: 1;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .color-palette {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Legal Pages Styles (Privacy, Terms, About, Contact) ===== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.legal-intro {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #1a1a1a;
}

.legal-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.legal-date i {
    margin-right: 8px;
    color: #1a1a1a;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section-number {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-right: 10px;
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.legal-section p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section ul li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-section ul li strong {
    color: #333;
}

.legal-section a {
    color: #2196f3;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Legal Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.legal-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.legal-table td {
    color: #555;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}

.info-box h4 i {
    margin-right: 8px;
}

.info-box p {
    color: #1976d2;
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box p {
    color: #2e7d32;
    margin: 0;
    font-weight: 500;
}

.highlight-box i {
    margin-right: 10px;
    color: #43a047;
}

/* Contact Box */
.contact-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.contact-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.contact-box h4 i {
    margin-right: 8px;
    color: #1a1a1a;
}

.contact-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-box ul li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

/* Legal Footer */
.legal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: center;
    color: #666;
}

/* Service List */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-item h4 i {
    margin-right: 8px;
    color: #666;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ===== About Page Styles ===== */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.hero-icon i {
    font-size: 3rem;
    color: #fff;
}

.about-hero h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.about-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h2 i {
    color: #667eea;
}

/* Mission Values */
.mission-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-item {
    text-align: center;
    padding: 25px 15px;
    background: #f9f9f9;
    border-radius: 12px;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.value-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #667eea;
    text-decoration: none;
}

.service-link:hover {
    color: #764ba2;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.tech-item i {
    font-size: 1.3rem;
    color: #666;
}

/* Contact Info (About Page) */
.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #1a1a1a;
    border-radius: 10px;
    font-size: 1.1rem;
}

.contact-email i {
    color: #fff;
}

.contact-email a {
    color: #fff;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 20px;
}

/* ===== Contact Page Styles ===== */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.contact-methods,
.contact-faq {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-methods h2,
.contact-faq h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-methods h2 i {
    color: #667eea;
}

.contact-faq h2 i {
    color: #ff9800;
}

/* Method Cards */
.method-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
}

.method-card:last-child {
    margin-bottom: 0;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.method-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.method-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.method-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2196f3;
    text-decoration: none;
    margin-bottom: 8px;
}

.method-link:hover {
    text-decoration: underline;
}

.response-time,
.bug-info,
.feature-info {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

.response-time i,
.bug-info i,
.feature-info i {
    margin-right: 5px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 18px;
}

.faq-question,
.faq-answer {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-question i {
    color: #667eea;
    font-weight: 700;
}

.faq-answer {
    color: #555;
}

.faq-answer i {
    color: #4caf50;
    font-weight: 700;
}

/* Contact Tips */
.contact-tips {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.contact-tips h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-tips h2 i {
    color: #4caf50;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.tip-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.tip-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.tip-item p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Contact Form */
.contact-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-section h2 i {
    color: #667eea;
}

.form-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Noto Sans KR', sans-serif;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.btn-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 0.9rem;
}

.form-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #fff;
    margin-top: 20px;
    animation: slideDown 0.5s ease;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.form-success h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.form-success p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Hours */
.contact-hours {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
}

.hours-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hours-content > i {
    font-size: 3rem;
    opacity: 0.8;
}

.hours-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hours-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hours-content p:last-child {
    margin-bottom: 0;
}

/* Legal Pages Responsive */
@media (max-width: 992px) {
    .mission-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 35px 25px;
    }

    .about-hero h2 {
        font-size: 1.4rem;
    }

    .about-section {
        padding: 25px;
    }

    .mission-values {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-methods,
    .contact-faq,
    .contact-form-section {
        padding: 25px;
    }

    .method-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        gap: 18px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .hours-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 20px;
    }

    .mission-values {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        flex-direction: column;
    }

    .tech-item {
        justify-content: center;
    }
}

/* ===== SEO Content Section (Blog-like) ===== */
.seo-content-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.seo-content-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-content-section h2 i {
    color: #667eea;
}

.seo-content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #667eea;
}

.seo-content-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    margin: 20px 0 12px 0;
}

.seo-content-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.seo-content-section ul,
.seo-content-section ol {
    margin: 15px 0 20px 0;
    padding-left: 25px;
}

.seo-content-section li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.seo-content-section li strong {
    color: #333;
}

/* SEO Highlight Box */
.seo-highlight {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: 5px solid #667eea;
}

.seo-highlight h4 {
    color: #1a1a1a;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-highlight h4 i {
    color: #667eea;
}

.seo-highlight p {
    margin-bottom: 0;
}

/* SEO Tips Box */
.seo-tips {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.seo-tips h4 {
    color: #2e7d32;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-tips h4 i {
    color: #43a047;
}

.seo-tips ul {
    margin-bottom: 0;
}

.seo-tips li {
    color: #2e7d32;
}

/* SEO Warning Box */
.seo-warning {
    background: #fff3e0;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.seo-warning h4 {
    color: #e65100;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-warning h4 i {
    color: #ff9800;
}

.seo-warning p,
.seo-warning li {
    color: #bf360c;
}

/* SEO Features Grid */
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.seo-feature-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.seo-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.seo-feature-card .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.seo-feature-card .feature-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.seo-feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.seo-feature-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* SEO Steps */
.seo-steps {
    counter-reset: step-counter;
    margin: 25px 0;
}

.seo-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

.seo-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.seo-step-content h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.seo-step-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* SEO FAQ */
.seo-faq {
    margin: 25px 0;
}

.seo-faq-item {
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.seo-faq-question {
    padding: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.seo-faq-question:hover {
    background: #f0f0f0;
}

.seo-faq-question i {
    transition: transform 0.3s ease;
    color: #666;
}

.seo-faq-item.active .seo-faq-question i {
    transform: rotate(180deg);
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.seo-faq-item.active .seo-faq-answer {
    max-height: 500px;
}

.seo-faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
}

/* SEO Table */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.seo-table th,
.seo-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #eee;
}

.seo-table th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
}

.seo-table tr:nth-child(even) {
    background: #f9f9f9;
}

.seo-table tr:hover {
    background: #f0f0f0;
}

/* SEO Keywords */
.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.seo-keyword {
    padding: 8px 16px;
    background: #e8eaf6;
    color: #3f51b5;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* SEO Content Responsive */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 25px;
    }

    .seo-content-section h2 {
        font-size: 1.3rem;
    }

    .seo-content-section h3 {
        font-size: 1.1rem;
    }

    .seo-features-grid {
        grid-template-columns: 1fr;
    }

    .seo-step {
        flex-direction: column;
        text-align: center;
    }

    .seo-step::before {
        margin: 0 auto;
    }

    .seo-table {
        font-size: 0.8rem;
    }

    .seo-table th,
    .seo-table td {
        padding: 10px 8px;
    }
}

/* ===== Hidden Social Links (SEO용 숨김 소셜 링크) ===== */
.footer-social-links {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-social-links a {
    color: inherit;
    text-decoration: none;
}

.footer-social-links span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Language Selector (다국어 선택 UI) ===== */
.nav-lang-selector {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-dropdown-toggle i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.lang-dropdown-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    margin: 0;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.lang-dropdown-menu a:hover {
    background: rgba(0, 123, 255, 0.08);
}

.lang-dropdown-menu a.active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-weight: 600;
}

.lang-dropdown-menu .flag {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .nav-lang-selector {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
    
    .lang-dropdown-toggle {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .lang-dropdown-menu {
        right: 0;
        min-width: 140px;
    }
}

/* ===== Related Tools Section ===== */
.related-tools-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-tools-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-tools-section h2 i {
    color: #007bff;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.related-tool-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-tool-card:hover {
    background: #fff;
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.related-tool-card .tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.related-tool-card h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0;
}

.related-tool-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.all-tools-link {
    text-align: center;
    margin-top: 20px;
}

.btn-all-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-all-tools:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .related-tools-section {
        padding: 25px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Operator Info (About Page) ===== */
.operator-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-label i {
    color: #007bff;
}

.info-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.info-value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.operator-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    color: #1565c0;
    line-height: 1.6;
}

.operator-note i {
    margin-right: 5px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .operator-info {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 카카오 광고 영역 가운데 정렬 ===== */
.kakao-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    padding: 0 20px;
}

.kakao_ad_area {
    margin: 0 auto;
    text-align: center;
}

