/* AntiPlagiat.UZ - Main stylesheet
   Style: modern, orange gradient, similar to plagiat.uz
*/

:root {
    --primary: #ff6b35;
    --primary-dark: #f7531c;
    --primary-light: #ff8c5f;
    --secondary: #fc9d4d;
    --accent: #ffe5d6;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light: #f7f9fc;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c5f 100%);
    --gradient-light: linear-gradient(135deg, #ffe5d6 0%, #fff5ee 100%);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(255,107,53,0.15);
    --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
}
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.45); }
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* === HEADER === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--primary); }
.logo img { height: 40px; }
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--dark); font-weight: 500; }
.nav-menu a:hover { color: var(--primary); }
.lang-switcher { display: flex; gap: 8px; }
.lang-switcher a { padding: 4px 10px; border-radius: 6px; background: var(--light); font-size: 13px; }
.lang-switcher a.active { background: var(--primary); color: var(--white); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; }

/* === HERO === */
.hero {
    background: var(--gradient-light);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin: 0 0 24px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray); margin-bottom: 16px; }
.hero-buttons { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-features { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); }
.hero-feature::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 18px; }
.hero-img { text-align: center; }
.hero-img img { max-width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); }

/* === SECTION === */
.section { padding: 90px 0; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title h2 { font-size: 36px; font-weight: 800; margin: 0 0 16px; }
.section-title p { color: var(--gray); font-size: 16px; }

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 70px; height: 70px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
}
.feature-card h3 { font-size: 18px; margin: 0 0 12px; }
.feature-card p { color: var(--gray); font-size: 14px; margin: 0; }

/* === WHO FOR === */
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}
.solution-card:hover { transform: translateY(-4px); }
.solution-icon { width: 70px; height: 70px; flex-shrink: 0; background: var(--gradient-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 32px; }
.solution-card h3 { font-size: 20px; margin: 0 0 10px; }
.solution-card p { color: var(--gray); font-size: 14px; margin: 0; }

/* === STATS === */
.stats-section { background: var(--dark); color: var(--white); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 48px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: #aaa; font-size: 14px; margin-top: 6px; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid #f0f0f0; }
.faq-question { padding: 20px 24px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 24px; color: var(--primary); transition: transform 0.2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 24px 20px; color: var(--gray); }
.faq-item.open .faq-answer { display: block; }

/* === PRICING === */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.price-card { background: var(--white); border-radius: var(--radius); padding: 30px 24px; text-align: center; border: 2px solid #f0f0f0; transition: all 0.3s; }
.price-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--primary); background: var(--gradient-light); }
.price-amount { font-size: 36px; font-weight: 800; color: var(--primary); margin: 16px 0; }
.price-title { font-size: 18px; font-weight: 600; }
.price-feature { color: var(--gray); font-size: 14px; margin: 12px 0; }

/* === CTA / FOOTER === */
.cta-section { background: var(--gradient); color: var(--white); padding: 70px 0; text-align: center; }
.cta-section h2 { font-size: 36px; margin: 0 0 16px; }
.cta-section .btn-light { margin-top: 20px; font-weight: 700; }

footer { background: var(--dark); color: #aaa; padding: 60px 0 30px; }
footer h3 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
footer a { color: #aaa; }
footer a:hover { color: var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; }
.footer ul { list-style: none; padding: 0; line-height: 2.2; }

/* === FORMS === */
.form-card {
    max-width: 480px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form-card h1 { text-align: center; margin: 0 0 28px; font-size: 26px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-text { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* === ALERTS === */
.alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger  { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* === CABINET LAYOUT === */
.cabinet-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s;
    z-index: 100;
}
.sidebar-brand { padding: 0 24px 24px; border-bottom: 1px solid #333; margin-bottom: 16px; }
.sidebar-brand img { height: 40px; }
.sidebar-brand-text { color: var(--white); font-weight: 800; font-size: 20px; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px;
    color: #ccc;
    transition: all 0.2s;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: rgba(255,107,53,0.15); color: var(--white); border-left-color: var(--primary); }
.sidebar-menu li a .icon { width: 20px; height: 20px; flex-shrink: 0; }

.main { margin-left: 260px; flex: 1; background: var(--light); min-height: 100vh; }
.topbar { background: var(--white); padding: 16px 28px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.topbar-info { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.topbar-info .item { display: flex; align-items: center; gap: 6px; color: var(--gray); }
.topbar-info b { color: var(--dark); }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; }

.content { padding: 28px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page-title { font-size: 26px; font-weight: 700; margin: 0; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}
.card-header { padding: 18px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.card-title { font-size: 18px; font-weight: 600; margin: 0; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* === STAT CARDS === */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; border-top: 3px solid var(--primary); }
.stat-card .stat-label { font-size: 13px; color: var(--gray); text-transform: uppercase; margin: 0 0 6px; }
.stat-card .stat-value { font-size: 32px; font-weight: 800; color: var(--dark); margin: 0; }
.stat-card.green { border-color: var(--success); }
.stat-card.green .stat-value { color: var(--success); }
.stat-card.orange { border-color: var(--primary); }
.stat-card.orange .stat-value { color: var(--primary); }
.stat-card.purple { border-color: #7e3ff2; }
.stat-card.purple .stat-value { color: #7e3ff2; }
.stat-card.blue { border-color: #1e88e5; }
.stat-card.blue .stat-value { color: #1e88e5; }

/* === TABLES === */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.table th { background: var(--light); font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--gray); }
.table tbody tr:hover { background: var(--light); }
.table-responsive { overflow-x: auto; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info    { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: var(--gradient-light); color: var(--primary); }

/* === STATUS INDICATORS === */
.status-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-yellow { background: #ffc107; animation: pulse 1.5s infinite; }
.status-green { background: #28a745; animation: pulse 1.5s infinite; }
.status-red { background: #dc3545; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* === UPLOAD === */
.upload-area { border: 2px dashed #d0d0d0; padding: 50px 20px; text-align: center; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; background: var(--light); }
.upload-area:hover, .upload-area.drag { border-color: var(--primary); background: var(--gradient-light); }
.upload-area svg { width: 60px; height: 60px; color: var(--gray); margin-bottom: 16px; }

/* === PROGRESS / SCORES === */
.progress-bar-wrap { background: #f0f0f0; height: 24px; border-radius: 12px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: var(--gradient); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: var(--white); font-weight: 700; font-size: 12px; transition: width 1s ease; }
.progress-fill.green { background: linear-gradient(135deg, #28a745, #4caf50); }
.progress-fill.red { background: linear-gradient(135deg, #dc3545, #e57373); }
.progress-fill.yellow { background: linear-gradient(135deg, #ffc107, #ffd54f); color: #333; }

.score-circle { width: 140px; height: 140px; margin: 0 auto; position: relative; }
.score-circle svg { transform: rotate(-90deg); }
.score-circle .bg { stroke: #f0f0f0; fill: none; }
.score-circle .progress { stroke: var(--primary); fill: none; transition: stroke-dasharray 1s ease; }
.score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 28px; font-weight: 800; }

/* === PAGINATION === */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination li a, .pagination li span { display: block; padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 6px; color: var(--dark); font-size: 14px; }
.pagination li.active span { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination li a:hover { background: var(--light); }

/* === DROPDOWN === */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow-md); border-radius: 8px; min-width: 220px; padding: 6px 0; z-index: 1000; margin-top: 4px; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--dark); font-size: 14px; }
.dropdown-item:hover { background: var(--light); color: var(--primary); }

/* === MODAL === */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 2000; align-items: center; justify-content: center; }
.modal-backdrop.show { display: flex; }
.modal-dialog { background: var(--white); border-radius: var(--radius); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.modal-title { margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--gray); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 36px; }
    .solutions-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-md); gap: 12px; }
    .nav-menu.open { display: flex; }
    .mobile-toggle { display: block; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .features-grid, .solutions-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 60px; }
    .hero h1 { font-size: 28px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 26px; }
    .form-card { margin: 30px 16px; padding: 24px; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 13px; }
.fs-lg { font-size: 18px; }

/* === PRINT === */
@media print {
    .sidebar, .topbar, .page-header .btn-list, .no-print { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; }
    body { background: white; }
}
