/* Global CSS for NAVER GUI */

/* CSS Variables for theming */
:root {
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fa;
	--bg-tertiary: #e9ecef;
	--text-primary: #212529;
	--text-secondary: #6c757d;
	--border-color: #dee2e6;
	--accent-blue: #007bff;
	--accent-green: #28a745;
	--accent-orange: #fd7e14;
	--accent-purple: #6f42c1;
	--accent-red: #dc3545;
	--accent-yellow: #ffc107;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
	:root {
		--bg-primary: #1a1a1a;
		--bg-secondary: #2d2d2d;
		--bg-tertiary: #404040;
		--text-primary: #ffffff;
		--text-secondary: #b3b3b3;
		--border-color: #404040;
		--accent-blue: #4dabf7;
		--accent-green: #51cf66;
		--accent-orange: #ff8c42;
		--accent-purple: #9775fa;
		--accent-red: #ff6b6b;
		--accent-yellow: #ffd43b;
	}
}

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.5;
}

/* Utility classes */
.panel {
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	margin-bottom: 1rem;
}

.panel-header {
	background: var(--bg-secondary);
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
	border-radius: 8px 8px 0 0;
	font-weight: 600;
	color: var(--text-primary);
}

.panel-content {
	padding: 1rem;
}

.btn {
	padding: 0.5rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.875rem;
}

.btn:hover {
	background: var(--bg-secondary);
}

.btn-primary {
	background: var(--accent-blue);
	color: white;
	border-color: var(--accent-blue);
}

.btn-primary:hover {
	opacity: 0.9;
}

.btn-danger {
	background: var(--accent-red);
	color: white;
	border-color: var(--accent-red);
}

.btn-danger:hover {
	opacity: 0.9;
}

/* Grid layouts */
.grid {
	display: grid;
	gap: 1rem;
}

.grid-2 {
	grid-template-columns: 1fr 1fr;
}

.grid-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

/* Flex utilities */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-4 {
	gap: 1rem;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

/* Animation utilities */
.fade-in {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.pulse {
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Component-specific styles */
.canvas-container {
	position: relative;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-tertiary);
}

.canvas-container canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Form styles */
input, textarea, select {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 0.875rem;
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--accent-blue);
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Table styles */
table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-primary);
}

th, td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

th {
	background: var(--bg-secondary);
	font-weight: 600;
}

tr:hover {
	background: var(--bg-secondary);
}

/* Scrollbar styles */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-secondary);
} 