/* プレビュー */
#katsutoshi-preview {
    background: #fff;
    border: 2px solid #ae0000;
    border-left: 5px solid #ae0000;
    margin: 20px 0;
    border-radius: 4px;
}

/* CSVインポート機能のスタイル */
.import-section, .export-section {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 4px;
}

.import-section h3, .export-section h3 {
    margin-top: 0;
    color: #ae0000;
}

#csv-file {
    margin-bottom: 10px;
    padding: 5px;
}

#import-preview {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

#preview-content {
    font-size: 14px;
}

#import-preview h4 {
    margin-top: 0;
    color: #ae0000;
}

#import-preview .button {
    margin-right: 10px;
}
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
}

#katsutoshi-app {
    max-width: 600px;
    margin: 0 auto;
}

#katsutoshi-button, #katsutoshi-reset {
    font-size: 40px !important;
    padding: 10px 20px;
    margin: 10px;
    background: #ae0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#katsutoshi-button:hover, #katsutoshi-reset:hover {
    background: #8b0000;
}

#katsutoshi-lucky {
    font-size: 40px !important;
    margin: 15px 0;
    font-weight: bold;
    color: #ae0000;
}

#katsutoshi-img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

#katsutoshi-message {
    font-size: 16px !important;
    line-height: 1.6;
    padding: 20px 30px;
    background: #fff;/* 管理画面のスタイル */
#katsutoshi-admin-tabs .tab-content {
    display: none;
    padding: 20px 0;
}

#katsutoshi-admin-tabs .tab-content.active {
    display: block;
}

/* メッセージ管理 */
.message-add-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.message-add-form h3 {
    margin-top: 0;
}

.message-add-form textarea {
    width: 100%;
    margin-bottom: 10px;
}

.messages-list {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.message-item:last-child {
    border-bottom: none;
}

.message-number {
    font-weight: bold;
    min-width: 30px;
    padding-top: 5px;
}

.message-content {
    flex: 1;
}

.message-content textarea {
    width: 100%;
    resize: vertical;
}

.message-actions {
    min-width: 80px;
    padding-top: 5px;
}

/* 運勢レベル管理 */
.lucky-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.lucky-item label {
    min-width: 80px;
}

.lucky-item input {
    flex: 1;
    max-width: 300px;
}

/* 画像管理 */
.image-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.image-item label {
    min-width: 80px;
    padding-top: 5px;
}

.image-item input {
    flex: 1;
    max-width: 400px;
}

.image-preview {
    min-width: 120px;
    text-align: center;
}

.image-preview img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* プレビュー */
#katsutoshi-preview {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
}

#katsutoshi-app {
    max-width: 600px;
    margin: 0 auto;
}

#katsutoshi-title {
    font-size: 50px !important;
    font-style: oblique;
    text-align: center;
    margin-bottom: 20px;
}

#katsutoshi-button, #katsutoshi-reset {
    font-size: 40px !important;
    padding: 10px 20px;
    margin: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#katsutoshi-button:hover, #katsutoshi-reset:hover {
    background: #005a87;
}

#katsutoshi-lucky {
    font-size: 40px !important;
    margin: 15px 0;
    font-weight: bold;
    color: #d63638;
}

#katsutoshi-img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#katsutoshi-message {
    font-size: 16px !important;
    line-height: 1.6;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
    border-radius: 4px;
}

/* ボタンスタイルの調整 */
.button.delete-message, .button.delete-lucky, .button.delete-image {
    background: #d63638;
    color: white;
    border-color: #d63638;
}

.button.delete-message:hover, .button.delete-lucky:hover, .button.delete-image:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .message-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-number {
        min-width: auto;
    }
    
    .image-item {
        flex-direction: column;
    }
    
    .lucky-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lucky-item label {
        min-width: auto;
    }
}

/* 成功・エラーメッセージのスタイル */
.notice {
    margin: 15px 0;
    padding: 10px 15px;
    border-left: 4px solid;
    background: #fff;
}

.notice.notice-success {
    border-left-color: #46b450;
    background: #f0fff4;
}

.notice.notice-error {
    border-left-color: #d63638;
    background: #fff5f5;
}