* {
    box-sizing: border-box;
}

:root {
    --bg-app: #f4f6f9;
    --bg-card: #ffffff;
    --bg-muted: #f8fafc;
    --text-main: #222222;
    --text-soft: #666666;
    --text-muted: #6b7280;
    --border: #d8dee8;
    --border-soft: #eeeeee;
    --primary: #2f6fed;
    --primary-hover: #2458bb;
    --secondary: #6b7280;
    --secondary-hover: #4b5563;
    --sidebar-bg: #1f2a37;
    --sidebar-hover: rgba(255, 255, 255, 0.14);
    --sidebar-link: rgba(255, 255, 255, 0.06);
    --success-bg: #dff6e4;
    --success-text: #14532d;
    --success-border: #86efac;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --error-border: #fc5f5f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-app);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* App Layout */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    color: #ffffff;
    padding: 24px;
    flex-shrink: 0;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar h1 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.2;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--sidebar-link);
    transition: background 0.2s ease, transform 0.1s ease;
}

.sidebar nav a:hover {
    background: var(--sidebar-hover);
    transform: translateX(2px);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #ffffff;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.topbar h2,
.topbar h1,
.topbar p {
    margin: 0;
}

.content-area {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card h1,
.card h2,
.card h3,
.card h4 {
    margin-top: 0;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
    margin-bottom: 0;
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.button:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.button:active {
    transform: translateY(1px);
}

.button.secondary {
    background: var(--secondary);
}

.button.secondary:hover {
    background: var(--secondary-hover);
}

.button-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Forms */
label {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"],
input[type="file"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #cfd6df;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="file"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
.button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

textarea {
    resize: vertical;
    line-height: 1.5;
    min-height: 120px;
}

.input-area.small-scroll {
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
}

.input-area.large-scroll {
    min-height: 320px;
    max-height: 520px;
    overflow-y: auto;
}

/* Lists */
.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.project-list li a:hover {
    text-decoration: underline;
}

.project-subline {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 4px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

/* Search suggestions */
#search-suggestions-box {
    background: var(--bg-muted);
    border: 1px solid #d9e2f0;
    border-radius: var(--radius-sm);
    padding: 14px;
}

#search-suggestions-box h3,
#search-suggestions-box h4,
#search-suggestions-box p {
    margin-top: 0;
}

#search-suggestions-list {
    margin: 0;
    padding-left: 20px;
}

#search-suggestions-list li {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-weight: 700;
}

/* Small helpers */
.muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
    }

    .main-content {
        width: 100%;
    }

    .topbar,
    .content-area {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 640px) {
    .content-area {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .card {
        padding: 16px;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .sidebar nav a {
        padding: 12px;
    }
}
.landing-page {
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 45%, #f8fafc 100%);
}

.landing-header {
    padding: 32px 0 24px;
}

.landing-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: #1f2a37;
}

.nav-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero {
    padding: 48px 0 72px;
}

.hero-text {
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8f0fb;
    color: #2f6fed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.08;
    margin: 0 0 20px;
    color: #111827;
    max-width: 900px;
}

.hero p {
    font-size: 19px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 28px;
    max-width: 760px;
}

.landing-section {
    padding: 36px 0 64px;
}

.landing-section.alt {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.landing-section h2 {
    font-size: 34px;
    margin: 0 0 24px;
    color: #111827;
}

.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-section .card {
    padding: 36px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (max-width: 980px) {
    .hero h1 {
        font-size: 42px;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 24px 0 48px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.hero-points {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}

.hero-points span {
    display: inline-block;
    padding: 8px 12px;
    background: #eef4ff;
    color: #2458bb;
    border: 1px solid #dbe7ff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.problem-section .card {
    max-width: 900px;
    margin: 0 auto;
}

.problem-section p {
    font-size: 1.05rem;
    line-height: 1.8;
}
.button.danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
}

.button.danger:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}


