/*
Theme Name: AIXXX
Description: AIXXX is a Stable Diffusion prompt generation website with modern UI and responsive design.
Version: 1.0.0
Author: Your Name
Author URI: https://yourwebsite.com
Text Domain: aixxx
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: flex;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
#sidebar {
    width: 300px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: block;
    padding: 1rem;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Contents */
#contents {
    flex: 1;
    padding: 3rem;
    background: white;
    overflow-y: auto;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.site-description {
    color: #666;
    margin: 0.5rem 0 0 0;
}

/* Prompt Generation Form */
.prompt-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-bottom: 100px; /* フローティングボタンとの重複を避けるため */
}

/* フォームセクションの2カラムレイアウト */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.form-section.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section.two-column .form-group {
    margin-bottom: 1.5rem;
}

/* チェックボックスエリアを2カラムから除外 */
.form-section.two-column .form-group.checkbox-group {
    grid-column: 1 / -1;
}

/* チェックボックスグリッドのスタイル調整 */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-section.two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select.form-control {
    background: white;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: #34495e;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-label:hover {
    color: #667eea;
}

/* 身体的特徴チェックボックスグリッドスタイル */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background-color: #f0f8ff;
    border-color: #667eea;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.checkbox-item label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.prompt-section {
    margin-bottom: 2rem;
}

.prompt-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.prompt-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: #f8f9fa;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.copy-btn {
    background: #28a745;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background: #218838;
}

/* Dependencies Section */
.dependencies {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.dependencies h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.dependencies ul {
    list-style: none;
    margin: 0;
}

.dependencies li {
    padding: 0.25rem 0;
    color: #856404;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.style-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.style-card:hover {
    transform: translateY(-5px);
}

.style-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Examples */
.examples {
    margin-top: 2rem;
}

.example-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.example-item:hover {
    border-color: #667eea;
}

.example-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.prompt-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* About Content */
.about-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.about-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.about-content ul,
.about-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* LoRA Categories */
.lora-categories {
    margin-top: 2rem;
}

.lora-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lora-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.lora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lora-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.lora-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.lora-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lora-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.lora-version {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lora-description {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.lora-details {
    font-size: 0.9rem;
}

.lora-details > div {
    margin-bottom: 0.75rem;
}

.lora-details strong {
    color: #2c3e50;
}

.lora-file {
    color: #666;
}

.lora-weight {
    color: #28a745;
}

.lora-triggers ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.lora-triggers li {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

/* Checkpoint Info */
.checkpoint-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.checkpoint-info h4 {
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.checkpoint-details {
    font-size: 0.9rem;
}

.checkpoint-item {
    margin-bottom: 0.5rem;
    color: #1565c0;
}

.checkpoint-item strong {
    color: #0d47a1;
}

.checkpoint-item ul {
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0;
}

.checkpoint-item li {
    display: inline-block;
    background: #bbdefb;
    color: #1565c0;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-size: 0.8rem;
    border: 1px solid #90caf9;
}

/* Checkpoint Categories */
.checkpoint-categories {
    margin-top: 2rem;
}

.checkpoint-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.checkpoint-category h3 {
    color: #1565c0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #2196f3;
    padding-bottom: 0.5rem;
}

.checkpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checkpoint-card {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.checkpoint-card:hover {
    border-color: #2196f3;
    transform: translateY(-2px);
}

.checkpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checkpoint-header h4 {
    color: #1565c0;
    margin: 0;
    font-size: 1.2rem;
}

.checkpoint-version {
    background: #2196f3;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkpoint-description {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.checkpoint-details {
    font-size: 0.9rem;
}

.checkpoint-details > div {
    margin-bottom: 0.75rem;
}

.checkpoint-details strong {
    color: #1565c0;
}

.checkpoint-file {
    color: #666;
}

.checkpoint-resolution {
    color: #2e7d32;
}

.checkpoint-model {
    color: #f57c00;
}

.checkpoint-strengths ul,
.checkpoint-tags ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.checkpoint-strengths li,
.checkpoint-tags li {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-size: 0.8rem;
    border: 1px solid #bbdefb;
}

/* Form Text */
.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        margin: 10px;
    }
    
    #sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    #contents {
        padding: 1.5rem;
    }
    
    .prompt-form {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* マルチテキストページ用スタイル */
.multitext-content {
    max-width: 800px;
    margin: 0 auto;
}

.multitext-elements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.element-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.element-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.element-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.element-item p {
    color: #666;
    margin-bottom: 1rem;
}

.element-item ul {
    list-style: none;
    padding: 0;
}

.element-item li {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
}

.combination-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-combination {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.example-combination h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.example-combination p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* マルチテキスト選択ページ */
.multitext-selection {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin: 20px 0;
}

.multitext-selection .form-group {
    margin-bottom: 25px;
}

.multitext-selection label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 16px;
}

.prompt-display-area {
    margin-top: 20px;
}

.prompt-display-area label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 16px;
}

#multitext_prompts {
    width: 100%;
    min-height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    resize: vertical;
}

#multitext_prompts:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.prompt-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.copy-btn, .clear-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-btn {
    background: #28a745;
    color: white;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.clear-btn {
    background: #6c757d;
    color: white;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.copy-btn:active, .clear-btn:active {
    transform: translateY(0);
}

.save-btn {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.save-btn:hover {
    background: linear-gradient(45deg, #218838, #1e7e34);
    transform: translateY(-1px);
}

.save-btn:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .multitext-selection {
        padding: 20px;
    }
    
    .prompt-actions {
        flex-direction: column;
    }
    
    .copy-btn, .clear-btn {
        width: 100%;
    }
}

/* ポーズグループ分けのスタイル */
optgroup {
    font-weight: 600;
    color: #374151;
    background-color: #f3f4f6;
    padding: 8px 0;
}

optgroup option {
    font-weight: normal;
    color: #1f2937;
    background-color: white;
    padding: 4px 12px;
}

optgroup option:hover {
    background-color: #f9fafb;
}

/* グループラベルのスタイル */
optgroup[label] {
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

/* フローティングボタン */
.floating-buttons {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: flex !important;
    gap: 10px !important;
    visibility: visible !important;
}

.floating-btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    min-width: 200px;
    justify-content: center;
    position: relative !important;
}

.floating-save-btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #e9ecef, #dee2e6) !important;
    color: #6c757d !important;
    border: none !important;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    min-width: 100px;
    justify-content: center;
    position: relative !important;
}

.floating-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
    background: linear-gradient(45deg, #dee2e6, #ced4da);
}

.floating-clear-btn {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #e9ecef, #dee2e6) !important;
    color: #6c757d !important;
    border: none !important;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    min-width: 100px;
    justify-content: center;
    position: relative !important;
}

.floating-clear-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
    background: linear-gradient(45deg, #dee2e6, #ced4da);
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

.floating-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .floating-btn {
        width: 100%;
        min-width: auto;
        border-radius: 25px;
        padding: 12px 20px;
    }
    
    .floating-clear-btn {
        width: 100%;
        min-width: auto;
        height: auto;
        border-radius: 25px;
        padding: 12px 20px;
    }
}

/* プロンプト一覧ページ用スタイル */
.prompt-list-content {
    max-width: 1200px;
    margin: 0 auto;
}

.prompt-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カテゴリヘッダー */
.prompt-category-header {
    background: #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.prompt-category-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

/* カテゴリコンテンツ */
.prompt-category-content {
    margin-bottom: 0.5rem;
}

.prompt-category-content.open {
    /* max-heightはJSで設定 */
}

.prompt-category h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.25rem;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.prompt-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prompt-card:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prompt-header {
    margin-bottom: 0.5rem;
}

.prompt-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.prompt-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #495057;
    margin: 0;
    word-break: break-all;
    white-space: pre-wrap;
}

.prompt-content .copy-btn {
    align-self: flex-start;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-content .copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* 保存されたプロンプト表示用スタイル */
.saved-prompts-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.saved-prompts-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.saved-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.saved-prompt-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.saved-prompt-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saved-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.saved-prompt-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.saved-timestamp {
    color: #6c757d;
    font-size: 0.8rem;
}

.saved-prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* ジャンプメニュー */
.jump-menu {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jump-menu h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.jump-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.jump-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jump-menu-item:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.jump-menu-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
    .jump-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .jump-menu-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* トップへ戻るボタン */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    font-size: 0.8rem;
    font-weight: 600;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-to-top-icon {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.back-to-top-text {
    font-size: 0.7rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top-icon {
        font-size: 1rem;
    }
    
    .back-to-top-text {
        font-size: 0.6rem;
    }
}

/* 保存プロンプトページ用スタイル */
.empty-saved-prompts {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.empty-message h3 {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-message p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.saved-prompt-details {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.saved-prompt-info {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.saved-prompt-data h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.saved-prompt-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.saved-prompt-data li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.saved-prompt-data li:last-child {
    border-bottom: none;
}

.saved-prompt-data strong {
    color: #495057;
    font-weight: 600;
}

.saved-prompt-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.saved-prompt-text h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.prompt-text-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.prompt-text-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
}

.saved-prompt-generated {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.saved-prompt-generated h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.generated-prompt-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.generated-prompt-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
}

.saved-prompt-debug {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.saved-prompt-debug h5 {
    color: #dc3545;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.debug-display {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.debug-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #856404;
}

.debug-section {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.debug-section h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.debug-content h4 {
    color: #495057;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.debug-content pre {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-item {
    margin: 1rem 0;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.debug-item h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}