/* UFO Tools - Shared Styles */

/* Reset & Base */
* { box-sizing: border-box; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 0;
	padding: 0;
	background: #f8f9fc;
	display: flex;
	min-height: 100vh;
}

/* Sidebar */
.sidebar {
	width: 240px;
	background: #1e2a3a;
	color: #fff;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 100;
}

.sidebar-brand {
	padding: 1.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand span {
	color: #60a5fa;
}

.sidebar-nav {
	flex: 1;
	padding: 1rem 0;
	overflow-y: auto;
}

.sidebar-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-nav li {
	margin: 0.125rem 0;
}

.sidebar-group {
	padding: 0.5rem 1.5rem 0.25rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-top: 0.75rem;
}

.sidebar-nav li:first-child.sidebar-group {
	margin-top: 0;
}

.sidebar-link {
	display: block;
	padding: 0.75rem 1.5rem;
	color: #94a3b8;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.15s;
	border-left: 3px solid transparent;
}

.sidebar-link:hover {
	background: rgba(255,255,255,0.05);
	color: #fff;
}

.sidebar-link.active {
	background: rgba(96,165,250,0.1);
	color: #60a5fa;
	border-left-color: #60a5fa;
}

.sidebar-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
	font-size: 0.85rem;
	color: #94a3b8;
	margin-bottom: 0.5rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Main Content Area */
.main-content {
	flex: 1;
	margin-left: 240px;
	padding: 2rem;
}

/* Common Components */
.container {
	max-width: 700px;
	margin: 0 auto;
	padding: 2rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1e293b;
}

.page-subtitle {
	margin: 0 0 1.5rem 0;
	color: #64748b;
	font-size: 0.95rem;
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 0.55rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

button, .btn {
	background: #3b82f6;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 0.95rem;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.15s;
	text-decoration: none;
	display: inline-block;
}

button:hover, .btn:hover {
	background: #2563eb;
}

button:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}

/* Alerts */
.success {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.error {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.warning {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

/* Links */
a {
	color: #3b82f6;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}

th {
	background: #f8fafc;
	font-weight: 600;
	font-size: 0.875rem;
	color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
	}
	.main-content {
		margin-left: 0;
	}
	body {
		flex-direction: column;
	}
}
