* {
	margin:0;
	padding:0;
	box-sizing:border-box;
}
body {
	font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
	line-height:1.6;
	color:#333;
	background-color:#f8f9fa;
	padding-top:80px;
}
.container {
	max-width:1200px;
	margin:0 auto;
	padding:0 20px;
}
.modern-header {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	z-index:1000;
	background:rgba(255,255,255,0.95);
	backdrop-filter:blur(10px);
	border-bottom:1px solid rgba(0,0,0,0.1);
	box-shadow:0 2px 20px rgba(0,0,0,0.08);
	transition:all 0.3s ease;
}
.header-content {
	display:flex;
	align-items:center;
	justify-content:space-between;
	padding:1rem 0;
}
.logo-section {
	flex:1;
	display:flex;
	justify-content:flex-start;
}
.logo-link {
	display:flex;
	align-items:center;
	text-decoration:none;
	color:inherit;
	transition:opacity 0.3s ease;
}
.logo-link:hover {
	opacity:0.8;
}
.logo-icon {
	width:32px;
	height:32px;
	color:#007bff;
	margin-right:0.75rem;
}
.logo-text {
	display:flex;
	align-items:baseline;
}
.logo-title {
	font-size:1.25rem;
	font-weight:700;
	color:#007bff;
	letter-spacing:-0.025em;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
@media (max-width:768px) {
	.logo-title {
	font-size:1.05rem;
	letter-spacing:-0.01em;
}
}@media (max-width:375px) {
	.logo-title {
	font-size:0.95rem;
}
}
.logo-suffix {
	font-size:1.25rem;
	font-weight:700;
	color:white;
	background:#007bff;
	padding:0 0.5rem;
	border-radius:4px;
	margin-left:0.25rem;
}
.main-nav {
	flex:1;
	display:flex;
	justify-content:center;
}
.nav-list {
	display:flex;
	list-style:none;
	gap:0.5rem;
	align-items:center;
}
.nav-link {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	height:40px;
	padding:0 1rem;
	font-size:0.875rem;
	font-weight:500;
	color:#6b7280;
	text-decoration:none;
	border-radius:6px;
	transition:all 0.2s ease;
	white-space:nowrap;
}
.nav-link:hover {
	background-color:#f3f4f6;
	color:#374151;
}
.nav-link-active {
	background-color:#eff6ff;
	color:#4c51bf;
	font-weight:600;
}
.header-controls {
	flex:1;
	display:flex;
	justify-content:flex-end;
	align-items:center;
}
.language-dropdown {
	position:relative;
	display:inline-block;
}
.language-toggle {
	display:flex;
	align-items:center;
	gap:0.5rem;
	padding:0.5rem 1rem;
	background:white;
	border:1px solid #e1e5e9;
	border-radius:0.5rem;
	cursor:pointer;
	transition:all 0.3s ease;
	font-weight:600;
	font-size:0.875rem;
}
.language-toggle:hover {
	border-color:#667eea;
	background:#f8f9fa;
}
.dropdown-icon {
	width:16px;
	height:16px;
	transition:transform 0.3s ease;
}
.language-dropdown.active .dropdown-icon {
	transform:rotate(180deg);
}
.language-dropdown-content {
	display:none;
	position:absolute;
	top:100%;
	right:0;
	margin-top:0.5rem;
	background:white;
	border:1px solid #e1e5e9;
	border-radius:0.75rem;
	box-shadow:0 4px 6px rgba(0,0,0,0.1);
	z-index:1000;
	min-width:350px;
	padding:0.5rem;
}
.language-dropdown.active .language-dropdown-content {
	display:block;
}
.language-grid-dropdown {
	display:grid;
	grid-template-columns:repeat(2,1fr);
	gap:0.25rem;
}
.language-item {
	display:block;
	text-decoration:none;
	cursor:pointer;
	padding:0.4rem;
	text-align:center;
	border-radius:0.375rem;
	transition:all 0.2s ease;
	min-width:35px;
	color:inherit;
}
.language-item:hover {
	background:#f8f9fa;
}
.language-code {
	font-size:0.875rem;
	font-weight:600;
	color:#495057;
}
.language-code.active {
	color:#667eea;
	background:#f0f2ff;
	padding:0.25rem 0.5rem;
	border-radius:0.25rem;
}
.language-select {
	padding:0.5rem 1rem;
	font-size:0.875rem;
	font-weight:500;
	color:#6b7280;
	background:transparent;
	border:1px solid transparent;
	border-radius:6px;
	cursor:pointer;
	transition:all 0.2s ease;
}
.language-select:hover {
	background-color:#f3f4f6;
	color:#374151;
}
.language-select:focus {
	outline:none;
	border-color:#007bff;
	box-shadow:0 0 0 3px rgba(0,123,255,0.1);
}
.mobile-menu-toggle {
	display:none;
	background:none;
	border:none;
	cursor:pointer;
	padding:0.5rem;
	color:#6b7280;
}
.mobile-menu-toggle svg {
	width:24px;
	height:24px;
}
@media (max-width:768px) {
	.header-content {
	flex-direction:row;
	justify-content:space-between;
	align-items:center;
}
.mobile-menu-toggle {
	display:block;
	order:-1;
}
.main-nav {
	position:absolute;
	top:100%;
	left:0;
	right:0;
	background:white;
	box-shadow:0 4px 6px rgba(0,0,0,0.1);
	transform:translateY(-100%);
	opacity:0;
	visibility:hidden;
	transition:all 0.3s ease;
	z-index:1000;
}
.main-nav.active {
	transform:translateY(0);
	opacity:1;
	visibility:visible;
}
.nav-list {
	flex-direction:column;
	padding:1rem;
	gap:0;
}
.nav-link {
	width:100%;
	justify-content:flex-start;
	border-radius:0;
	border-bottom:1px solid #f3f4f6;
}
.nav-link:last-child {
	border-bottom:none;
}
.logo-section {
	flex:1;
}
}@media (max-width:480px) {
	.header-content {
	padding:0 0;
}
.logo-text {
	font-size:1.25rem;
}
.logo-suffix {
	font-size:0.875rem;
}
}.header {
	display:none;
}
.nav {
	display:none;
}
.main {
	padding:1rem 0;
	min-height:calc(100vh - 200px);
}
.page-header {
	text-align:center;
	margin-bottom:2rem;
}
.main-content {
	padding:1rem 0;
}
.hero-section {
	text-align:center;
	padding:2rem 0;
	background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
	color:white;
	border-radius:1rem;
	margin-bottom:1rem;
}
.hero-title {
	font-size:3rem;
	margin-bottom:1rem;
	font-weight:700;
}
.hero-description {
	font-size:1.25rem;
	margin-bottom:2rem;
	opacity:0.9;
}
.cta-button {
	display:inline-block;
	padding:1rem 2rem;
	background:white;
	color:#667eea;
	text-decoration:none;
	border-radius:0.5rem;
	font-weight:600;
	transition:transform 0.3s ease;
}
.cta-button:hover {
	transform:translateY(-2px);
}
.features-section {
	margin-bottom:3rem;
}
.section-title {
	text-align:center;
	font-size:2.5rem;
	margin-bottom:2rem;
	color:#333;
}
.features-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(380px,1fr));
	gap:2rem;
}
.feature-card {
	background:white;
	border-radius:1rem;
	padding:2rem;
	box-shadow:0 4px 6px rgba(0,0,0,0.1);
	transition:transform 0.3s ease,box-shadow 0.3s ease;
}
.feature-card:hover {
	transform:translateY(-5px);
	box-shadow:0 8px 25px rgba(0,0,0,0.15);
}
.card-icon {
	width:60px;
	height:60px;
	margin-bottom:1rem;
	color:#667eea;
}
.card-icon svg {
	width:100%;
	height:100%;
}
.card-title {
	font-size:1.5rem;
	margin-bottom:1rem;
	color:#333;
}
.card-description {
	color:#666;
	margin-bottom:1.5rem;
	line-height:1.6;
}
.card-link {
	display:inline-block;
	padding:0.75rem 1.5rem;
	background:#4c51bf;
	color:white;
	text-decoration:none;
	border-radius:0.5rem;
	transition:background-color 0.3s ease;
}
.card-link:hover {
	background:#764ba2;
}
.detailed-features {
	background:#f8f9fa;
	border-radius:1rem;
}
.feature-details {
	display:grid;
	gap:2rem;
}
.detail-item {
	background:white;
	padding:2rem;
	border-radius:0.5rem;
	box-shadow:0 2px 4px rgba(0,0,0,0.1);
}
.detail-item h3 {
	color:#667eea;
	margin-bottom:1rem;
}
.detail-item ul {
	margin-top:1rem;
	padding-left:1.5rem;
}
.detail-item li {
	margin-bottom:0.5rem;
	color:#666;
}
@media (max-width:768px) {
	.hero-title {
	font-size:2rem;
}
.hero-description {
	font-size:1rem;
}
.features-grid {
	grid-template-columns:1fr;
}
.language-toggle {
	padding:0.375rem 0.75rem;
	font-size:0.8rem;
}
.language-dropdown-content {
	right:0;
	left:auto;
	min-width:200px;
}
.language-grid-dropdown {
	gap:0.125rem;
}
.language-item {
	padding:0;
	min-width:30px;
	text-decoration:none;
	color:inherit;
}
.language-code {
	font-size:0.8rem;
}
}.page-header h2 {
	font-size:2rem;
	color:#333;
	margin-bottom:0.5rem;
}
.page-header p {
	color:#666;
	font-size:1.1rem;
}
.generator-container {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:2rem;
	background:white;
	padding:1rem;
	border-radius:8px;
	box-shadow:0 2px 10px rgba(0,0,0,0.1);
}
.editor-panel {
	display:flex;
	flex-direction:column;
	gap:1.5rem;
}
.settings-section,.markdown-settings-section,.html-settings-section,.text-settings-section,.actions-section {
	background:#f8f9fa;
	padding:1.5rem;
	border-radius:6px;
	border:1px solid #e9ecef;
}
.settings-section h3,.markdown-settings-section h3,.html-settings-section h3,.text-settings-section h3 {
	margin-bottom:1rem;
	color:#495057;
	font-size:1.1rem;
}
.settings-grid {
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
	gap:1rem;
}
.setting-group {
	display:flex;
	flex-direction:column;
	gap:0.5rem;
}
.setting-group label {
	font-weight:500;
	color:#495057;
	font-size:0.9rem;
}
.setting-group input,.setting-group select {
	padding:8px 12px;
	border:1px solid #ced4da;
	border-radius:4px;
	font-size:0.9rem;
	transition:border-color 0.3s;
}
.setting-group input:focus,.setting-group select:focus {
	outline:none;
	border-color:#007bff;
	box-shadow:0 0 0 2px rgba(0,123,255,0.25);
}
.setting-group input[type="checkbox"] {
	width:auto;
	margin-right:8px;
}
.btn {
	padding:10px 16px;
	border:none;
	border-radius:4px;
	font-size:1rem;
	font-weight:600;
	cursor:pointer;
	transition:all 0.3s;
	text-decoration:none;
	display:inline-block;
	text-align:center;
}
.btn-primary {
	background-color:#0069d9;
	color:#fff;
}
.btn-primary:hover {
	background-color:#004085;
}
.btn-secondary {
	background-color:#495057;
	color:#fff;
}
.btn-secondary:hover {
	background-color:#343a40;
}
.btn-outline {
	background-color:transparent;
	color:#0056b3;
	border:1px solid #0056b3;
}
.btn-outline:hover {
	background-color:#0056b3;
	color:#fff;
}
.btn-danger {
	background-color:#c82333;
	color:#fff;
}
.btn-danger:hover {
	background-color:#a71d2a;
}
.action-buttons {
	display:flex;
	flex-wrap:wrap;
	gap:0.5rem;
}
.action-buttons .btn {
	font-size:0.8rem;
	padding:8px 12px;
}
.table-editor {
	background:white;
	border:1px solid #e9ecef;
	border-radius:6px;
	padding:1rem;
}
#table-container {
	overflow-x:auto;
}
.editable-table {
	width:100%;
	border-collapse:collapse;
	margin-top:1rem;
}
.editable-table th,.editable-table td {
	border:1px solid #dee2e6;
	padding:8px 12px;
	text-align:left;
}
.editable-table th {
	background-color:#e9ecef;
	font-weight:600;
}
.editable-table input {
	width:100%;
	border:none;
	background:transparent;
	padding:4px;
	font-size:0.9rem;
}
.editable-table input:focus {
	outline:2px solid #007bff;
	outline-offset:-2px;
}
.output-panel {
	display:flex;
	flex-direction:column;
	gap:1rem;
}
.output-header {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding-bottom:1rem;
	border-bottom:1px solid #e9ecef;
}
.output-header h3 {
	color:#495057;
	font-size:1.1rem;
}
.output-actions {
	display:flex;
	gap:0.5rem;
}
.output-actions .btn {
	font-size:0.8rem;
	padding:8px 12px;
}
.output-content {
	flex:1;
	background:#f8f9fa;
	border:1px solid #e9ecef;
	border-radius:6px;
	overflow:hidden;
}
.output-text {
	margin:0;
	padding:1rem;
	background:#f8f9fa;
	font-family:'Monaco','Menlo','Ubuntu Mono',monospace;
	font-size:0.8rem;
	line-height:1.4;
	overflow-x:auto;
	white-space:pre;
	min-height:200px;
}
.preview-section {
	background:white;
	border:1px solid #e9ecef;
	border-radius:6px;
	padding:1rem;
	margin-top:1rem;
}
.preview-section h4 {
	margin-bottom:1rem;
	color:#495057;
	font-size:1rem;
}
.markdown-preview table,.html-preview table {
	width:100%;
	border-collapse:collapse;
	margin-top:0.5rem;
}
.markdown-preview th,.markdown-preview td,.html-preview th,.html-preview td {
	border:1px solid #dee2e6;
	padding:8px 12px;
	text-align:left;
}
.markdown-preview th,.html-preview th {
	background-color:#e9ecef;
	font-weight:600;
}
.footer {
	background:#f8f9fa;
	border-top:1px solid #e9ecef;
	padding:2rem 0;
	text-align:center;
	color:#37393b;
	margin-top:2rem;
}
.latex-settings-section {
	background:#f8f9fa;
	padding:1.5rem;
	border-radius:6px;
	border:1px solid #e9ecef;
}
.latex-settings-section h3 {
	margin-bottom:1rem;
	color:#495057;
	font-size:1.1rem;
}
.latex-style-options {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:1rem;
}
.latex-caption-group {
	grid-column:1 / -1;
}
.latex-caption-group input[type="text"] {
	width:100%;
	padding:8px 12px;
	border:1px solid #ced4da;
	border-radius:4px;
	font-size:0.9rem;
	margin-top:0.5rem;
}
.latex-output {
	background:#2d3748;
	color:#e2e8f0;
	font-family:'Monaco','Menlo','Ubuntu Mono',monospace;
	font-size:0.8rem;
	line-height:1.5;
	padding:1.5rem;
	border-radius:6px;
	overflow-x:auto;
	white-space:pre;
	min-height:300px;
}
.latex-output .latex-keyword {
	color:#90cdf4;
}
.latex-output .latex-command {
	color:#fbb6ce;
}
.latex-output .latex-argument {
	color:#9ae6b4;
}
.latex-preview {
	background:white;
	border:1px solid #e9ecef;
	border-radius:6px;
	padding:1rem;
	margin-top:1rem;
}
.latex-preview h4 {
	margin-bottom:1rem;
	color:#495057;
	font-size:1rem;
}
.latex-preview-box {
	background:#f8f9fa;
	border:1px solid #dee2e6;
	border-radius:4px;
	padding:1rem;
	font-family:serif;
	line-height:1.6;
}
.latex-preview-box .latex-table {
	margin:1rem 0;
	border-collapse:collapse;
	width:100%;
}
.latex-preview-box .latex-table th,.latex-preview-box .latex-table td {
	border:1px solid #dee2e6;
	padding:8px 12px;
	text-align:center;
}
.latex-preview-box .latex-table th {
	background-color:#e9ecef;
	font-weight:bold;
}
@media (max-width:768px) {
	.container {
	padding:0 5px;
}
.header .container {
	flex-direction:column;
	gap:1rem;
}
.nav-list {
	flex-direction:column;
}
.nav-link {
	border-right:none;
	border-bottom:1px solid rgba(255,255,255,0.2);
}
.nav-item:last-child .nav-link {
	border-bottom:none;
}
.generator-container {
	grid-template-columns:1fr;
	gap:1.5rem;
	padding:1rem;
}
.settings-grid {
	grid-template-columns:1fr;
}
.action-buttons {
	flex-direction:column;
}
.output-header {
	flex-direction:column;
	gap:1rem;
	align-items:stretch;
}
}@media (max-width:480px) {
	.page-header h2 {
	font-size:1.5rem;
}
.generator-container {
	padding:0.5rem;
}
.settings-section,.markdown-settings-section,.html-settings-section,.text-settings-section,.latex-settings-section,.actions-section {
	padding:1rem;
}
.latex-style-options {
	grid-template-columns:1fr;
}
}.sztitle {
	margin-bottom:1rem;
	color:#3c4045;
	font-size:1.1rem;
	font-weight:600;
}
