* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
	min-height: 100vh;
	color: white;
	padding: 20px;
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.header {
	text-align: center;
	margin-bottom: 40px;
	padding: 20px;
}

.header h1 {
	font-size: 2.5rem;
	background: linear-gradient(to right, #fb923c, #fbbf24);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 10px;
}

.header p {
	color: #94a3b8;
	font-size: 1rem;
}

.badge {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	margin: 5px;
}

.badge.new {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.card {
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card h2 {
	font-size: 1.4rem;
	margin-bottom: 20px;
	color: #fb923c;
}

.card h3 {
	font-size: 1.1rem;
	margin-bottom: 15px;
	margin-top: 20px;
	color: #fbbf24;
}

.form-group {
	margin-bottom: 20px;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.character-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 8px;
	color: #cbd5e1;
	font-size: 0.9rem;
	font-weight: 500;
}

label small {
	color: #94a3b8;
	font-weight: 400;
}

input, select, textarea {
	width: 100%;
	padding: 12px;
	background: #0f172a;
	border: 2px solid #334155;
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: #fb923c;
}

textarea {
	resize: vertical;
	font-family: inherit;
}

.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.radio-option {
	flex: 1;
	min-width: 150px;
}

.radio-option input[type="radio"] {
	display: none;
}

.radio-option label {
	display: block;
	padding: 12px 20px;
	background: #0f172a;
	border: 2px solid #334155;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s;
	margin-bottom: 0;
}

.radio-option input[type="radio"]:checked + label {
	background: rgba(251, 146, 60, 0.2);
	border-color: #fb923c;
	color: #fb923c;
}

.radio-option label:hover {
	border-color: #fb923c;
}

.btn {
	padding: 15px 30px;
	font-size: 1.1rem;
	font-weight: 600;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s;
	width: 100%;
	margin-bottom: 20px;
}

.btn-primary {
	background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6);
}

.btn-copy {
	background: #334155;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s;
	margin-top: 10px;
}

.btn-copy:hover {
	background: #475569;
}

.output-box {
	background: #0f172a;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #475569;
	margin-top: 15px;
	max-height: 400px;
	overflow-y: auto;
	white-space: pre-wrap;
	line-height: 1.8;
	color: #e2e8f0;
}

.prompt-box {
	background: #1e293b;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #fb923c;
	white-space: pre-wrap;
	line-height: 1.8;
	color: #cbd5e1;
	font-size: 0.95rem;
}

.chapter-section {
	background: #0f172a;
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	border: 1px solid #334155;
}

.chapter-section h3 {
	color: #fbbf24;
	margin-bottom: 15px;
}

.time-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.time-tab {
	padding: 10px 20px;
	background: #1e293b;
	border: 2px solid #334155;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 0.9rem;
}

.time-tab:hover {
	border-color: #fb923c;
}

.time-tab.active {
	background: rgba(251, 146, 60, 0.2);
	border-color: #fb923c;
	color: #fb923c;
}

#output {
	display: none;
}

.info-box {
	background: rgba(251, 146, 60, 0.1);
	border: 1px solid #fb923c;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
}

.info-box p {
	color: #fbbf24;
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 5px;
}

.warning-box {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid #ef4444;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
}

.warning-box p {
	color: #fca5a5;
	font-size: 0.9rem;
	line-height: 1.6;
}
