/* ネットワークシミュレータ - ダイアログスタイル */

/* オーバーレイ */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

/* デバイス設定ダイアログ */
.device-config-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
    display: none;
}

.dialog-header {
    background: #2196f3;
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
    text-align: center;
}

.dialog-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dialog-content::-webkit-scrollbar {
    width: 8px;
}

.dialog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.lan-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.lan-section-header {
    background: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.lan-section-content {
    padding: 16px;
}

/* ISP設定セクション */
.isp-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.isp-section-header {
    background: #f5f5f5;
    padding: 12px 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.isp-section-header:before {
    content: '🌐';
    margin-right: 8px;
}

.isp-section-content {
    padding: 16px;
    background: #fafafa;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.dialog-buttons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.dialog-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dialog-button.primary {
    background: #2196f3;
    color: white;
}

.dialog-button.secondary {
    background: #e0e0e0;
    color: #333;
}

.dialog-button:hover {
    opacity: 0.8;
}