/* 2段階認証プラグイン CSS */

/* 待機画面 */
.tfa-waiting-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tfa-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.tfa-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
}

.tfa-box h1 {
    margin: 0 0 20px;
    color: #333;
    font-size: 28px;
}

.tfa-message {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* スピナー */
.tfa-spinner {
    width: 50px;
    height: 50px;
    margin: 30px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: tfa-spin 1s linear infinite;
}

@keyframes tfa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tfa-timer {
    font-size: 18px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 20px;
}

.tfa-note {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* エラーメッセージ */
.tfa-error,
.tfa-info {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tfa-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.tfa-info {
    background-color: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* ユーザー一覧テーブル */
.tfa-users-list-container {
    padding: 20px;
}

.tfa-users-list-container h2 {
    color: #333;
    margin-bottom: 20px;
}

.tfa-users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tfa-users-table thead {
    background-color: #f5f5f5;
}

.tfa-users-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.tfa-users-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tfa-user-row:hover {
    background-color: #fafafa;
}

.tfa-user-name {
    color: #333;
    font-weight: 500;
}

.tfa-toggle-cell {
    text-align: center;
}

/* トグルスイッチ */
.tfa-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.tfa-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tfa-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.tfa-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.tfa-toggle-input:checked + .tfa-toggle-slider {
    background-color: #667eea;
}

.tfa-toggle-input:checked + .tfa-toggle-slider:before {
    transform: translateX(26px);
}

.tfa-toggle-input:disabled + .tfa-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .tfa-box {
        padding: 30px 20px;
    }
    
    .tfa-box h1 {
        font-size: 24px;
    }
    
    .tfa-users-table {
        font-size: 14px;
    }
    
    .tfa-users-table th,
    .tfa-users-table td {
        padding: 10px;
    }
}
