/**
 * 7prom User Styles
 * WordPressテーマの色を継承するように設計
 */

/* アクセントカラーのみ定義（WordPress標準に合わせる） */
:root {
	--7prom-accent: #2271b1;
	--7prom-accent-hover: #135e96;
}

.sevenprom-mypage {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-mypage-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	position: relative;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-mypage-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: currentColor;
	opacity: 0.2;
}

.sevenprom-mypage-header h1 {
	margin: 0;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-user-info {
	text-align: right;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-user-info p {
	margin: 5px 0;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	position: relative;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-tabs::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: currentColor;
	opacity: 0.2;
}

.sevenprom-tabs a {
	padding: 10px 20px;
	text-decoration: none;
	opacity: 0.7;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.3s;
	position: relative;
	z-index: 1;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-tabs a:hover {
	opacity: 1;
	color: var(--7prom-accent);
}

.sevenprom-tabs a.active {
	opacity: 1;
	color: var(--7prom-accent);
	border-bottom-color: var(--7prom-accent);
	font-weight: 600;
}

.sevenprom-tab-content {
	min-height: 400px;
}

/* Dashboard */
.sevenprom-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.sevenprom-stat-card {
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-stat-card h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	opacity: 0.7;
	font-weight: normal;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-stat-card .stat-value {
	font-size: 32px;
	font-weight: bold;
	color: var(--7prom-accent);
	margin-bottom: 10px;
}

.sevenprom-stat-card .stat-warning {
	color: #d63638;
	font-size: 12px;
	margin: 5px 0 0 0;
}

/* Video List */
.sevenprom-video-list {
	list-style: none;
	padding: 0;
}

.sevenprom-video-list li {
	padding: 15px;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-video-list li:last-child {
	border-bottom: none;
}

.sevenprom-video-list .video-key {
	font-family: monospace;
	font-size: 12px;
	opacity: 0.7;
	padding: 4px 8px;
	border-radius: 3px;
	/* 色はWordPressテーマから継承 */
}

/* Video Table */
.sevenprom-video-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.sevenprom-video-table th,
.sevenprom-video-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.sevenprom-video-table th {
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-video-table code {
	opacity: 0.7;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
	/* 色はWordPressテーマから継承 */
}

/* Forms */
.sevenprom-video-form p,
.sevenprom-login-form p,
.sevenprom-register-form p {
	margin-bottom: 20px;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-video-form label,
.sevenprom-login-form label,
.sevenprom-register-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-video-form input[type="text"],
.sevenprom-video-form input[type="password"],
.sevenprom-video-form input[type="email"],
.sevenprom-video-form input[type="url"],
.sevenprom-video-form textarea,
.sevenprom-video-form select,
.sevenprom-login-form input[type="text"],
.sevenprom-login-form input[type="password"],
.sevenprom-register-form input[type="text"],
.sevenprom-register-form input[type="password"],
.sevenprom-register-form input[type="email"] {
	border: 1px solid currentColor;
	opacity: 0.3;
	padding: 8px 12px;
	border-radius: 4px;
	width: 100%;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-video-form input:focus,
.sevenprom-video-form textarea:focus,
.sevenprom-video-form select:focus,
.sevenprom-login-form input:focus,
.sevenprom-register-form input:focus {
	outline: none;
	border-color: var(--7prom-accent);
	opacity: 1;
}

.sevenprom-video-form .required,
.sevenprom-register-form .required {
	color: #d63638;
}

.sevenprom-video-form .description,
.sevenprom-upload-help {
	opacity: 0.7;
	font-size: 14px;
	margin-top: 5px;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-upload-help {
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 20px;
	margin-top: 30px;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-upload-help ol {
	margin-left: 20px;
}

/* Stats */
.sevenprom-stats-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.sevenprom-stats .stat-item {
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-stats .stat-item h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	opacity: 0.7;
	font-weight: normal;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-stats .stat-item .stat-value {
	font-size: 28px;
	font-weight: bold;
	color: var(--7prom-accent);
}

.sevenprom-stats .stat-progress {
	width: 100%;
	height: 8px;
	background: currentColor;
	opacity: 0.2;
	border-radius: 4px;
	margin-top: 10px;
	overflow: hidden;
}

.sevenprom-stats .stat-progress-bar {
	height: 100%;
	background: var(--7prom-accent);
	transition: width 0.3s;
}

.sevenprom-stats-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.sevenprom-stats-table th,
.sevenprom-stats-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.sevenprom-stats-table th {
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

/* Messages */
.sevenprom-message {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.sevenprom-message.success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.sevenprom-message.error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.sevenprom-message.warning {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	color: #856404;
}

.sevenprom-message.info {
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
}

/* Login/Register */
.sevenprom-login,
.sevenprom-register {
	max-width: 500px;
	margin: 0 auto;
	padding: 40px 20px;
}

.sevenprom-login h2,
.sevenprom-register h2 {
	text-align: center;
	margin-bottom: 30px;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-empty-state {
	text-align: center;
	padding: 60px 20px;
	opacity: 0.7;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-empty-state a {
	color: var(--7prom-accent);
	text-decoration: none;
}

.sevenprom-empty-state a:hover {
	text-decoration: underline;
}

/* Enhanced Video List */
.sevenprom-videos-enhanced {
	margin-top: 20px;
}

.sevenprom-videos-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.sevenprom-videos-header h2 {
	margin: 0;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-videos-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	/* 背景色はWordPressテーマから継承 */
}

.sevenprom-search-box {
	display: flex;
	gap: 10px;
	flex: 1;
	min-width: 300px;
}

.sevenprom-search-box input[type="text"] {
	border: 1px solid currentColor;
	opacity: 0.3;
	padding: 8px 12px;
	border-radius: 4px;
	flex: 1;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-search-box input[type="text"]:focus {
	outline: none;
	border-color: var(--7prom-accent);
	opacity: 1;
}

.sevenprom-search-box select {
	border: 1px solid currentColor;
	opacity: 0.3;
	padding: 8px 12px;
	border-radius: 4px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-search-box select:focus {
	border-color: var(--7prom-accent);
	opacity: 1;
}

.sevenprom-filter-tags,
.sevenprom-sort-controls {
	display: flex;
	gap: 10px;
	align-items: center;
}

.sevenprom-view-toggle {
	display: flex;
	gap: 5px;
}

.view-btn {
	border: 1px solid currentColor;
	opacity: 0.3;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.view-btn:hover {
	opacity: 0.5;
}

.view-btn.active {
	background: var(--7prom-accent);
	color: #fff;
	border-color: var(--7prom-accent);
	opacity: 1;
}

/* Grid View */
.sevenprom-videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.sevenprom-video-card {
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
	/* 背景色はWordPressテーマから継承 */
}

.sevenprom-video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-card-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	background: #000;
	overflow: hidden;
}

.video-card-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-thumbnail-placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.5;
	font-size: 48px;
	/* 色はWordPressテーマから継承 */
}

.video-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.sevenprom-video-card:hover .video-card-overlay {
	opacity: 1;
}

.video-card-status {
	position: absolute;
	top: 10px;
	right: 10px;
}

.status-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.status-badge.status-active {
	background: #d4edda;
	color: #155724;
}

.status-badge.status-sleep {
	background: #fff3cd;
	color: #856404;
}

.status-badge.status-deleted {
	background: #f8d7da;
	color: #721c24;
}

.video-card-content {
	padding: 15px;
	/* 色はWordPressテーマから継承 */
}

.video-card-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

.video-card-description {
	margin: 0 0 10px 0;
	opacity: 0.7;
	font-size: 14px;
	/* 色はWordPressテーマから継承 */
}

.video-card-meta {
	margin-top: 10px;
}

.video-card-key code {
	opacity: 0.7;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	/* 色はWordPressテーマから継承 */
}

.video-card-stats {
	display: flex;
	gap: 15px;
	margin: 10px 0;
	font-size: 12px;
	opacity: 0.7;
	/* 色はWordPressテーマから継承 */
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.video-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}

.tag-badge {
	background: rgba(34, 113, 177, 0.2);
	color: var(--7prom-accent);
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
}

.tag-more {
	opacity: 0.7;
	font-size: 12px;
	/* 色はWordPressテーマから継承 */
}

/* List View */
.sevenprom-videos-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.sevenprom-videos-table th,
.sevenprom-videos-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.sevenprom-videos-table th {
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

.video-thumbnail img {
	max-width: 120px;
	height: auto;
	border-radius: 4px;
}

.video-thumbnail-placeholder {
	width: 120px;
	height: 68px;
	opacity: 0.3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	/* 色はWordPressテーマから継承 */
}

.video-description {
	opacity: 0.7;
	font-size: 14px;
	margin-top: 5px;
	/* 色はWordPressテーマから継承 */
}

/* Upload Area */
.sevenprom-upload-area {
	border: 2px dashed currentColor;
	border-color: rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	padding: 60px 20px;
	text-align: center;
	transition: all 0.3s;
	margin-bottom: 20px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-upload-area.dragover {
	border-color: var(--7prom-accent);
	opacity: 1;
	background: rgba(34, 113, 177, 0.1);
}

.upload-area-content .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: var(--7prom-accent);
	margin-bottom: 20px;
}

.upload-area-content h3 {
	/* 色はWordPressテーマから継承 */
}

.upload-hint {
	margin-top: 10px;
	opacity: 0.7;
	font-size: 14px;
	/* 色はWordPressテーマから継承 */
}

/* Upload Progress */
.upload-progress-item {
	margin-bottom: 15px;
	padding: 15px;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.progress-item-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: currentColor;
	opacity: 0.2;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 5px;
}

.progress-bar-fill {
	height: 100%;
	background: var(--7prom-accent);
	transition: width 0.3s;
	width: 0%;
}

.progress-status {
	font-size: 12px;
	opacity: 0.7;
	/* 色はWordPressテーマから継承 */
}

/* Tag Input */
.tag-input-container {
	position: relative;
}

.selected-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 10px;
}

.tag-item {
	background: rgba(34, 113, 177, 0.2);
	color: var(--7prom-accent);
	padding: 5px 10px;
	border-radius: 12px;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.remove-tag {
	cursor: pointer;
	font-weight: bold;
}

.tag-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	border: 1px solid currentColor;
	opacity: 0.3;
	border-radius: 4px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 100;
	margin-top: 5px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	/* 背景色はWordPressテーマから継承 */
}

.tag-suggestion-item {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.tag-suggestion-item:hover {
	background: rgba(0, 0, 0, 0.05);
	/* 色はWordPressテーマから継承 */
}

/* Modals */
.sevenprom-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	overflow: auto;
	backdrop-filter: blur(2px);
}

/* Hide Elementor header/footer when modal is open */
body.sevenprom-modal-open {
	overflow: hidden;
}

/* Hide Elementor header and footer when modal is visible */
body.sevenprom-modal-open .elementor-location-header,
body.sevenprom-modal-open footer.elementor-location-footer,
body.sevenprom-modal-open header.elementor-location-header,
body.sevenprom-modal-open #elementor-header,
body.sevenprom-modal-open #elementor-footer,
body.sevenprom-modal-open .elementor-sticky__spacer,
body.sevenprom-modal-open [data-elementor-type="header"],
body.sevenprom-modal-open [data-elementor-type="footer"],
body.sevenprom-modal-open .elementor-section.elementor-sticky,
body.sevenprom-modal-open .elementor-sticky__effects--entered {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -1 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.sevenprom-modal-content {
	margin: 5% auto;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.sevenprom-modal-content.large {
	max-width: 900px;
}

/* 動画編集モーダルは幅を広げる */
.sevenprom-modal-content.video-edit-modal {
	max-width: 1200px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
}

.sevenprom-video-edit-form {
	padding: 0;
}

.sevenprom-video-edit-form h3 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
}

.sevenprom-video-edit-form form {
	margin-top: 0;
}

/* チャプターとバージョンのテーブル */
.chapters-table,
.versions-table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.chapters-table th,
.chapters-table td,
.versions-table th,
.versions-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
}

.chapters-table th,
.versions-table th {
	font-weight: 600;
	background: rgba(0, 0, 0, 0.03);
}

/* コピーボタンのスタイル改善 */
.copy-code {
	margin-left: 10px;
	white-space: nowrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.video-edit-form-wrapper {
		flex-direction: column;
		gap: 0;
	}
	
	.video-edit-tabs {
		flex-direction: row;
		overflow-x: auto;
		margin-bottom: 20px;
		border-right: none;
		border-bottom: 2px solid currentColor;
		border-bottom-color: rgba(0, 0, 0, 0.1);
		padding-right: 0;
		padding-bottom: 10px;
		min-width: 100%;
		flex-shrink: 1;
		-webkit-overflow-scrolling: touch;
	}
	
	.edit-tab-btn {
		border-left: none;
		border-bottom: 3px solid transparent;
		white-space: nowrap;
		margin-bottom: -2px;
		padding: 10px 16px;
	}
	
	.edit-tab-btn:hover {
		background: transparent;
	}
	
	.edit-tab-btn.active {
		border-left: none;
		border-bottom-color: var(--7prom-accent);
		background: transparent;
	}
	
	.video-edit-content-area {
		width: 100%;
	}
	
	.edit-form-section > div[style*="grid-template-columns"] {
		grid-template-columns: 1fr !important;
	}
}

/* スマホ対応 */
@media (max-width: 768px) {
	.sevenprom-modal-content {
		width: 95%;
		margin: 2% auto;
		padding: 20px;
		max-height: 95vh;
		overflow-y: auto;
	}
	
	.sevenprom-modal-content.video-edit-modal {
		width: 98%;
		max-width: 98%;
		padding: 15px;
	}
}

.sevenprom-modal-close {
	opacity: 0.7;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 15px;
	top: 15px;
	/* 色はWordPressテーマから継承 */
}

.sevenprom-modal-close:hover {
	opacity: 1;
	/* 色はWordPressテーマから継承 */
}

/* Analytics */
.analytics-period-selector {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.analytics-period-selector button,
.period-btn {
	border: 1px solid currentColor;
	opacity: 0.3;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.analytics-period-selector button:hover,
.period-btn:hover {
	opacity: 0.5;
}

.analytics-period-selector button.active,
.period-btn.active {
	background: var(--7prom-accent);
	color: #fff;
	border-color: var(--7prom-accent);
	opacity: 1;
}

.analytics-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.analytics-summary-item,
.summary-item {
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.analytics-summary-item h4,
.summary-item h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	opacity: 0.7;
	font-weight: normal;
	/* 色はWordPressテーマから継承 */
}

.analytics-summary-item .value,
.summary-value {
	font-size: 28px;
	font-weight: bold;
	color: var(--7prom-accent);
}

.chart-container,
.analytics-chart-container {
	margin: 30px 0;
	padding: 20px;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	/* 背景色はWordPressテーマから継承 */
}

.analytics-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.analytics-table th,
.analytics-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.analytics-table th {
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

/* Video Edit Form - PC: 左カラムメニュー、スマホ: 上部タブ */
.video-edit-form-wrapper {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.video-edit-tabs {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 200px;
	flex-shrink: 0;
	border-right: 2px solid currentColor;
	border-right-color: rgba(0, 0, 0, 0.1);
	padding-right: 20px;
}

.edit-tab-btn {
	padding: 12px 16px;
	background: transparent;
	border: none;
	border-left: 3px solid transparent;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: currentColor;
	opacity: 0.7;
	transition: all 0.3s;
	text-align: left;
	border-radius: 4px;
	position: relative;
}

.edit-tab-btn:hover {
	opacity: 1;
	color: var(--7prom-accent);
	background: rgba(34, 113, 177, 0.05);
}

.edit-tab-btn.active {
	opacity: 1;
	color: var(--7prom-accent);
	border-left-color: var(--7prom-accent);
	background: rgba(34, 113, 177, 0.1);
	font-weight: 600;
}

.video-edit-content-area {
	flex: 1;
	min-width: 0;
}

.edit-tab-content {
	display: none;
}

.edit-tab-content.active {
	display: block;
	animation: fadeIn 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.edit-form-section {
	padding: 20px 0;
}

.edit-form-section > p {
	margin-bottom: 20px;
}

.edit-form-section > p:last-child {
	margin-bottom: 0;
}

/* Video Versions */
.video-versions-section {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid currentColor;
	border-top-color: rgba(0, 0, 0, 0.1);
}

.video-versions-section h3 {
	/* 色はWordPressテーマから継承 */
}

.versions-table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.versions-table th,
.versions-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	/* 色はWordPressテーマから継承 */
}

.versions-table th {
	font-weight: 600;
	/* 色はWordPressテーマから継承 */
}

.current-version {
	color: #00a32a;
	font-weight: 600;
}

.add-version-section {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

/* Plan Settings */
.sevenprom-plan-settings {
	max-width: 900px;
}

.current-plan-info {
	margin-bottom: 40px;
}

.current-plan-info h3 {
	margin-bottom: 20px;
	/* 色はWordPressテーマから継承 */
}

.plan-card {
	border: 2px solid var(--7prom-accent);
	border-radius: 8px;
	padding: 30px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.plan-card.current {
	background: rgba(34, 113, 177, 0.1);
}

.plan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 20px;
	position: relative;
}

.plan-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: currentColor;
	opacity: 0.2;
}

.plan-header h4 {
	margin: 0;
	font-size: 24px;
	color: var(--7prom-accent);
}

.plan-price {
	font-size: 20px;
	font-weight: bold;
	color: var(--7prom-accent);
}

.plan-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.plan-features li {
	padding: 10px 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(0, 0, 0, 0.1);
	position: relative;
	padding-left: 30px;
	/* 色はWordPressテーマから継承 */
}

.plan-features li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #00a32a;
	font-weight: bold;
}

.plan-features li:last-child {
	border-bottom: none;
}

.plan-usage {
	margin-top: 20px;
	padding-top: 20px;
	position: relative;
	padding: 15px;
	border-radius: 4px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.plan-usage::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: currentColor;
	opacity: 0.2;
}

.plan-usage p {
	margin: 5px 0;
	/* 色はWordPressテーマから継承 */
}

.plan-usage .usage-progress {
	margin: 8px 0;
}

.plan-usage .progress-bar {
	width: 100%;
	height: 8px;
	background: currentColor;
	opacity: 0.2;
	border-radius: 4px;
	overflow: hidden;
}

.plan-usage .progress-bar-fill {
	height: 100%;
	background: var(--7prom-accent);
	transition: width 0.3s;
}

.plan-started {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid currentColor;
	border-top-color: rgba(0, 0, 0, 0.1);
	font-size: 12px;
	opacity: 0.7;
	/* 色はWordPressテーマから継承 */
}

.plan-change-section {
	margin-top: 40px;
}

.plan-change-section h3 {
	margin-bottom: 20px;
	/* 色はWordPressテーマから継承 */
}

.plan-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.plan-option {
	display: block;
	cursor: pointer;
}

.plan-option input[type="radio"] {
	display: none;
}

.plan-option-content {
	border: 2px solid currentColor;
	opacity: 0.3;
	border-radius: 8px;
	padding: 25px;
	transition: all 0.3s;
	position: relative;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

.plan-option:hover .plan-option-content {
	border-color: var(--7prom-accent);
	opacity: 0.5;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.plan-option input[type="radio"]:checked + .plan-option-content {
	border-color: var(--7prom-accent);
	background: rgba(34, 113, 177, 0.1);
	opacity: 1;
}

.plan-option.current .plan-option-content {
	border-color: #00a32a;
	background: rgba(0, 163, 42, 0.1);
	opacity: 1;
}

.plan-option-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.plan-option-header h4 {
	margin: 0;
	font-size: 20px;
	color: var(--7prom-accent);
}

.current-badge {
	display: inline-block;
	margin-top: 15px;
	padding: 5px 15px;
	background: #00a32a;
	color: #fff;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.warning-badge {
	display: inline-block;
	margin-top: 15px;
	padding: 5px 15px;
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffc107;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.plan-option.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.plan-option.disabled .plan-option-content {
	opacity: 0.3;
}

.plan-option.disabled:hover .plan-option-content {
	border-color: currentColor;
	box-shadow: none;
}

.plan-change-note {
	padding: 15px;
	background: rgba(255, 193, 7, 0.2);
	border: 1px solid #ffc107;
	border-radius: 4px;
	margin-bottom: 20px;
	/* 色はWordPressテーマから継承 */
}

.plan-expiry-info {
	margin-top: 30px;
	padding: 15px;
	border: 1px solid currentColor;
	border-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	/* 背景色とテキスト色はWordPressテーマから継承 */
}

/* Responsive */
@media (max-width: 768px) {
	.sevenprom-mypage-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.sevenprom-user-info {
		text-align: left;
		margin-top: 15px;
	}

	.sevenprom-tabs {
		flex-wrap: wrap;
	}

	.sevenprom-stats-grid,
	.sevenprom-stats-overview {
		grid-template-columns: 1fr;
	}

	.sevenprom-videos-grid {
		grid-template-columns: 1fr;
	}

	.sevenprom-videos-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.sevenprom-search-box {
		min-width: 100%;
	}
}
