/* フロントエンド用スタイル */

/* 完了ボタンエリア */
.lpt-complete-button-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/* 完了状態 */
.lpt-completed-status {
    margin-bottom: 15px;
    font-size: 18px;
    color: #4caf50;
    font-weight: bold;
}

.lpt-checkmark {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
}

.lpt-completed-date {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

/* ボタンスタイル */
.lpt-mark-complete-btn,
.lpt-mark-incomplete-btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lpt-mark-complete-btn {
    background: #4caf50;
    color: white;
}

.lpt-mark-complete-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lpt-mark-incomplete-btn {
    background: #f44336;
    color: white;
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 20px;
}

.lpt-mark-incomplete-btn:hover {
    background: #da190b;
}

/* 次のレッスン */
.lpt-next-lesson {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.lpt-next-lesson-link {
    display: inline-block;
    padding: 10px 20px;
    background: #2196f3;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lpt-next-lesson-link:hover {
    background: #0b7dda;
}

/* コース完了メッセージ */
.lpt-course-completed {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 5px;
    font-size: 18px;
    color: #856404;
}

/* メッセージ表示エリア */
.lpt-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.lpt-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lpt-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レッスンがブロックされている場合 */
.lpt-lesson-blocked {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 30px 0;
}

.lpt-lock-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.lpt-lesson-blocked h3 {
    color: #333;
    margin-bottom: 15px;
}

.lpt-lesson-blocked p {
    color: #666;
    margin-bottom: 10px;
}

.lpt-previous-lesson-link {
    display: inline-block;
    padding: 12px 24px;
    background: #2196f3;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.lpt-previous-lesson-link:hover {
    background: #0b7dda;
}

/* ウィジェットスタイル */
.lpt-sidebar-widget,
.lpt-dashboard-widget {
    font-size: 14px;
}

.lpt-widget-section {
    margin-bottom: 20px;
}

.lpt-widget-subtitle {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 進捗バー */
.lpt-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lpt-progress-bar-small {
    height: 8px;
    margin-bottom: 5px;
}

.lpt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    transition: width 0.5s ease;
}

.lpt-progress-text {
    font-size: 12px;
    color: #666;
}

/* カテゴリアイテム */
.lpt-category-item {
    margin-bottom: 15px;
    padding-left: calc(var(--lpt-category-depth, 0) * 16px);
}

.lpt-category-item[style*="--lpt-category-depth:0"] {
    padding-left: 0;
}

.lpt-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.lpt-category-name {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.lpt-category-name:hover {
    color: #2196f3;
}

.lpt-category-count {
    font-size: 12px;
    color: #666;
}

/* 次のレッスン
.lpt-next-lesson-link {
    display: block;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.lpt-next-lesson-link:hover {
    background: #e0e0e0;
} */

.lpt-lesson-category {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* ダッシュボードウィジェット専用 */
.lpt-dashboard-widget .lpt-overall-progress {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.lpt-dashboard-widget h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: bold;
}

.lpt-dashboard-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lpt-dashboard-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lpt-dashboard-widget li:last-child {
    border-bottom: none;
}

.lpt-completion-date {
    font-size: 11px;
    color: #999;
}

/* ローディング状態 */
.lpt-mark-complete-btn:disabled,
.lpt-mark-incomplete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lpt-login-required,
.lpt-front-login-box {
    max-width: 520px;
    margin: 24px auto;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
}

.lpt-login-required h3,
.lpt-front-login-box h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.lpt-login-required .login-username,
.lpt-login-required .login-password,
.lpt-front-login-box .login-username,
.lpt-front-login-box .login-password,
.lpt-front-login-box .login-remember {
    margin-bottom: 12px;
}

.lpt-login-required input[type="text"],
.lpt-login-required input[type="password"],
.lpt-front-login-box input[type="text"],
.lpt-front-login-box input[type="password"] {
    width: 100%;
}

.lpt-login-required .login-submit,
.lpt-front-login-box .login-submit {
    margin-top: 8px;
}

.lpt-logout-link {
    display: inline-block;
    padding: 8px 14px;
    background: #333;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
}