:root {
	--bg: #f6f9ff;
	--glass-bg: rgba(255, 255, 255, 0.7);
	--accent: #5b7cff;
	--accent-2: #ffd6e8;
	--muted: #6b7280;
	--radius: 18px;
	--shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
	--glass-border: rgba(255, 255, 255, 0.6);
	font-family: 'Poppins', sans-serif;
	color: #101828;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(180deg, var(--bg), #eef3ff 100%);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

header.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(16, 24, 40, 0.05);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}


 /* Slider tugmalari */
 .slider-nav button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	border: none;
	color: #fff;
	font-size: 2rem;
	padding: 10px 15px;
	cursor: pointer;
	border-radius: 50%;
	z-index: 2;
 }
 
 .slider-nav .prev { left: 10px; }
 .slider-nav .next { right: 10px; }
 
 /* Dots */
 .dots {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
 }
 
 .dot {
	width: 12px;
	height: 12px;
	background: rgba(255,255,255,0.5);
	border-radius: 50%;
	cursor: pointer;
 }
 
 .dot.active {
	background: #fff;
 }
 
 /* Responsive (mobil) */
 @media (max-width: 768px) {
	.slide img {
	  height: 300px;
	}
	.caption {
	  font-size: 1rem;
	  padding: 5px 10px;
	}
	.slider-nav button {
	  font-size: 1.5rem;
	  padding: 5px 10px;
	}
 }
 

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.logo {
	font-size: 26px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--accent-2), #d7e6ff);
	box-shadow: var(--shadow);
}

.site-title {
	font-size: 20px;
	font-weight: 600;
}
.site-sub {
	font-size: 13px;
	color: var(--muted);
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 16px;
}
.main-nav a {
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 10px;
	color: #102133;
	transition: 0.25s;
}
.main-nav a:hover {
	background: rgba(91, 124, 255, 0.1);
	color: var(--accent);
}
.cta {
	background: linear-gradient(90deg, var(--accent), #86b6ff);
	color: #fff;
	border-radius: 10px;
	transition: 0.25s;
}
.cta:hover {
	opacity: 0.9;
	transform: scale(1.03);
}

.admin-link {
	background: linear-gradient(90deg, #ef4444, #f87171);
	color: white;
}
.admin-link:hover {
	background: linear-gradient(90deg, #dc2626, #ef4444);
}

.hero {
	padding: 60px 0;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}
.glass {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
	padding: 24px;
}
.hero-card {
	display: flex;
	gap: 20px;
	align-items: center;
}
.avatar {
	width: 150px;
	height: 150px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.meta-list {
	list-style: none;
	margin: 10px 0;
	color: var(--muted);
	font-size: 14px;
}
.hero-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.btn {
	background: linear-gradient(90deg, var(--accent), #a7c2ff);
	color: white;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	transition: 0.25s;
}
.btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}
.btn-outline {
	background: transparent;
	border: 2px solid var(--accent);
	color: var(--accent);
}
.btn-outline:hover {
	background: var(--accent);
	color: #fff;
}

.intro ul {
	list-style: none;
	margin-top: 8px;
	color: var(--muted);
}
.intro li {
	margin-bottom: 4px;
}

.section {
	padding: 60px 0;
}
.section-title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 6px;
}
.section-sub {
	color: var(--muted);
	margin-bottom: 16px;
}

/* Materials controls */
.materials-controls {
	margin-bottom: 30px;
}

.materials-stats {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	justify-content: center;
}

.materials-filter {
	display: flex;
	gap: 15px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.materials-filter select {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 10px;
	padding: 10px 15px;
	color: var(--accent);
	font-weight: 500;
	backdrop-filter: blur(10px);
	cursor: pointer;
	transition: all 0.3s ease;
}

.materials-filter select:hover,
.materials-filter select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.1);
	outline: none;
}

.btn-refresh {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-refresh:hover {
	background: linear-gradient(135deg, #7c3aed, #8b5cf6);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stat-item {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow);
	min-width: 120px;
}

.stat-number {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 5px;
}

.stat-label {
	font-size: 14px;
	color: var(--muted);
	font-weight: 500;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
.card {
	background: #fff;
	border: 1px solid rgba(16, 24, 40, 0.05);
	border-radius: 14px;
	padding: 0;
	box-shadow: var(--shadow);
	transition: 0.25s;
	overflow: hidden;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card-image:hover img {
	transform: scale(1.05);
}

.card-content {
	padding: 20px;
}

.card-content .title h3 {
	color: var(--accent);
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.card-content .desc {
	color: var(--muted);
	margin-bottom: 15px;
	line-height: 1.5;
	font-size: 14px;
}

.card-actions {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Icon fallback for cards without image */
.card .icon {
	width: 100%;
	height: 200px;
	margin: 0;
	font-size: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--accent-2), #d7e6ff);
	border-radius: 12px 12px 0 0;
	color: var(--accent);
	position: relative;
	overflow: hidden;
}

.no-image-placeholder {
	width: 100%;
	height: 200px;
	margin: 0;
	font-size: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px 12px 0 0;
	color: white;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.no-image-placeholder:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.card .icon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
			45deg,
			rgba(91, 124, 255, 0.1) 25%,
			transparent 25%
		),
		linear-gradient(-45deg, rgba(91, 124, 255, 0.1) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(91, 124, 255, 0.1) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(91, 124, 255, 0.1) 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	opacity: 0.3;
}

.icon-text {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 14px;
	font-weight: 500;
	color: var(--accent);
	background: rgba(255, 255, 255, 0.9);
	padding: 8px 16px;
	border-radius: 20px;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subtle-bg {
	background: #f9faff;
}

.contact-info a {
	color: var(--accent);
	text-decoration: none;
}
.contact-info a:hover {
	text-decoration: underline;
}

/* News styles */
.news-list {
	display: grid;
	gap: 20px;
	margin-top: 30px;
}

.news-card {
	padding: 25px;
	border-radius: var(--radius);
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow);
	transition: 0.25s;
}

.news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.news-content h3 {
	color: var(--accent);
	margin-bottom: 10px;
	font-size: 18px;
}

.news-content p {
	color: var(--muted);
	margin-bottom: 15px;
	line-height: 1.5;
}

.news-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.news-meta .date {
	color: var(--muted);
}

.btn-sm {
	padding: 8px 16px;
	font-size: 14px;
	border-radius: 10px;
}

.btn-sm.disabled {
	background-color: var(--muted);
	color: white;
	cursor: not-allowed;
	opacity: 0.6;
}

.btn-sm.disabled:hover {
	background-color: var(--muted);
	transform: none;
}

.site-footer {
	text-align: center;
	padding: 20px 0;
	border-top: 1px solid rgba(16, 24, 40, 0.05);
	color: var(--muted);
	font-size: 14px;
}

/* Card metadata styles */
.card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0;
	font-size: 14px;
}

.section-badge {
	background: linear-gradient(135deg, var(--accent-2), #d7e6ff);
	color: var(--accent);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.date {
	color: var(--muted);
	font-size: 12px;
}

/* Enhanced button styles */
.btn-download {
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn-download:hover {
	background: linear-gradient(135deg, #16a34a, #15803d);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-preview {
	background: linear-gradient(135deg, var(--accent), #86b6ff);
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-preview:hover {
	background: linear-gradient(135deg, #4f46e5, var(--accent));
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(91, 124, 255, 0.3);
}

.btn-disabled {
	background: var(--muted);
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Modal styles removed - materials display directly */
/* BOG'LANISH BLOKI (Contact Info) */
.contact-info {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

/* Hover effekti – biroz ko‘tarilish */
.contact-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Sarlavha */
.contact-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Matn va linklar */
.contact-info p,
.contact-info a {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Linklar – hover effekti bilan */
.contact-info a {
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.contact-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Pastdagi izoh matni */
.contact-info .muted {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Notification Styles */
.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2000;
	background: var(--glass-bg);
	border-radius: 12px;
	border: 1px solid var(--glass-border);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(20px);
	padding: 15px 20px;
	min-width: 300px;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s ease;
}

.notification.show {
	transform: translateX(0);
	opacity: 1;
}

.notification-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.notification-icon {
	font-size: 18px;
}

.notification-message {
	color: var(--muted);
	font-weight: 500;
}

.notification-success {
	border-left: 4px solid #22c55e;
}

.notification-error {
	border-left: 4px solid #ef4444;
}

.notification-info {
	border-left: 4px solid var(--accent);
}

.notification-warning {
	border-left: 4px solid #f59e0b;
}

/* API Connection Warning */
.api-warning {
	position: fixed;
	top: 70px;
	right: 20px;
	background: linear-gradient(
		135deg,
		rgba(245, 158, 11, 0.95),
		rgba(217, 119, 6, 0.95)
	);
	color: white;
	padding: 15px 20px;
	border-radius: 10px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	z-index: 1999;
	max-width: 350px;
	font-weight: 500;
	text-align: center;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
}

/* Error and No Data styles */
.error-message,
.no-data {
	text-align: center;
	padding: 40px;
	margin: 20px 0;
	border-radius: var(--radius);
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
}

.error-message h3 {
	color: #dc2626;
	margin-bottom: 10px;
}

.no-data h3 {
	color: var(--muted);
	margin-bottom: 10px;
}

.error-message p,
.no-data p {
	color: var(--muted);
	margin-bottom: 15px;
}

.error-message .btn {
	background: #dc2626;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s ease;
}

.error-message .btn:hover {
	background: #b91c1c;
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	
	.header-inner {
		flex-direction: column;
		gap: 10px;
		padding: 10px 0;
	}

	.main-nav ul {
		flex-wrap: wrap;
		justify-content: center;
	}

	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-card {
		flex-direction: column;
		text-align: center;
	}

	.avatar {
		width: 120px;
		height: 120px;
	}

	.materials-stats {
		flex-wrap: wrap;
	}

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

	.card-image,
	.no-image-placeholder,
	.card .icon {
		height: 160px;
	}
	.news-card {
		max-width: 750px
	}
	.notification,
	.api-warning {
		right: 10px;
		left: 10px;
		max-width: none;
		top: 10px;
	}

	.api-warning {
		top: 60px;
		padding: 12px 16px;
		font-size: 14px;
	}
}
