.admin-btn.danger-btn {
    background-color: #e63946;
}

.admin-btn.danger-btn:hover {
    background-color: #c1121f;
}/* 注記ボックス */
.note-box {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.note-box h3 {
    color: #0c5460;
    margin-top: 0;
    margin-bottom: 15px;
}

.note-box ol {
    margin-left: 20px;
    padding-left: 0;
}

.note-box li {
    margin-bottom: 10px;
}

.note-box pre {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    overflow-x: auto;
}/* 警告ボックス */
.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.warning-box h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 15px;
}

.warning-box p {
    margin-bottom: 10px;
}/* 管理画面共通スタイル */
.admin-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.admin-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.admin-nav {
    margin-top: 20px;
    text-align: right;
}

.logout-btn {
    text-decoration: none;
    color: white;
    background-color: #e63946;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

.logout-btn:hover {
    background-color: #c1121f;
}

.admin-content {
    margin-bottom: 30px;
}

.admin-content h2 {
    color: #333;
    border-bottom: 2px solid #e63946;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.admin-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
}

/* ダッシュボードカード */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #e63946;
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    margin-bottom: 20px;
}

/* ボタンスタイル */
.admin-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-btn:hover {
    background-color: #45a049;
}

.admin-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.danger-btn {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.danger-btn:hover {
    background-color: #c1121f;
}

.cancel-btn {
    display: inline-block;
    background-color: #f2f2f2;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #e6e6e6;
}

/* 設定ページ */
.settings-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* スイッチ */
.switch-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.switch-group label:first-child {
    margin-right: 15px;
    min-width: 120px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-description {
    flex-basis: 100%;
    margin-top: 10px;
    margin-left: 120px;
    color: #666;
    font-size: 14px;
}

/* Twilio設定 */
.twilio-settings {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border-left: 4px solid #4CAF50;
}

.twilio-settings h4 {
    margin-top: 0;
    color: #333;
}

/* メッセージ */
.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .admin-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-nav a {
        display: block;
    }
    
    .switch-description {
        margin-left: 0;
    }
    
    .switch-group label:first-child {
        margin-bottom: 10px;
    }
}

/* ユーティリティ */
.hidden {
    display: none;
}

/* 設定フォームの追加スタイル */
.form-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.settings-section input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}