/* ==========================================================================
   サイト内リンクチェッカー 専用スタイル
   ========================================================================== */

/* --- 入力エリア --- */
.link-checker-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#siteUrl {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
}

#startCheckBtn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
#startCheckBtn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}


/* --- 結果表示エリア --- */
.results-area.hidden {
    display: none;
}

.status-panel {
    display: flex;
    justify-content: space-around;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}
.progress-bar {
    width: 0%;
    height: 10px;
    background-color: #4caf50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.log-output {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 8px;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 13px;
}
#logContainer {
    margin: 0;
}

.error-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
}
.error-summary.hidden { display: none; }
.error-summary h3 { margin-top: 0; color: #d8000c; }
.error-summary ul { padding-left: 20px; margin-bottom: 0; }
.error-summary li { margin-bottom: 5px; }
.error-summary a { color: #d8000c; }


/* --- ダークモード対応 --- */
.dark-mode #siteUrl {
    background-color: #252526;
    border-color: #555;
    color: #e0e0e0;
}
.dark-mode .status-panel {
    background-color: #252627;
}
.dark-mode .progress-bar-container {
    background-color: #444;
}
.dark-mode .error-summary {
    background-color: #4d2b2b;
    border-color: #8b4545;
}
.dark-mode .error-summary h3,
.dark-mode .error-summary a {
    color: #ffc9c9;
}

.log-output .ok { color: #4caf50; }
.log-output .error { color: #f44336; }