/* フロントエンド用CSS */

/* グローバルスタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ローディングアニメーション */
.als-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: als-spin 1s ease-in-out infinite;
}

@keyframes als-spin {
    to { transform: rotate(360deg); }
}

/* チャットバブル */
.als-chat-bubble-user {
    background: #007cba;
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 16px;
    margin-left: 40px;
    margin-bottom: 10px;
}

.als-chat-bubble-ai {
    background: #f1f3f4;
    color: #333;
    border-radius: 18px 18px 18px 4px;
    padding: 10px 16px;
    margin-right: 40px;
    margin-bottom: 10px;
}

/* コードエディタ */
.als-code-editor {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* ボタンスタイル */
.als-btn-primary {
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.als-btn-primary:hover {
    background: #059669;
}

/* カードスタイル */
.als-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .als-chat-bubble-user,
    .als-chat-bubble-ai {
        margin-left: 0;
        margin-right: 0;
    }
}

/* システム共通のグラデーション色 */
.bg-lms-gradient {
    background: linear-gradient(90deg, #4F45B6 0%, #8E44AD 100%);
}

.bg-lms-gradient-light {
    background: linear-gradient(90deg, rgba(79, 69, 182, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
}

.text-lms-primary {
    color: #4F45B6;
}

.border-lms-primary {
    border-color: #4F45B6;
}

/* ホバー時のグラデーション */
.hover-lms-gradient:hover {
    background: linear-gradient(90deg, #4F45B6 0%, #8E44AD 100%);
    color: white !important;
}

/* アクティブ時のグラデーション */
.active-lms-gradient {
    background: linear-gradient(90deg, rgba(79, 69, 182, 0.15) 0%, rgba(142, 68, 173, 0.15) 100%);
    color: #4F45B6;
}

.mb-8 {
    margin-bottom: 0.8em;
}