:root {
    --bg: #0b0c0f;
    --surface: #121419;
    --surface-hover: #181b21;
    --border: #252932;

    --text: #f2f3f5;
    --muted: #8b919d;

    --accent: #ffffff;
    --success: #55d187;

    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* SIDEBAR */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    padding: 28px 18px;

    background: var(--surface);

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 10px;
    margin-bottom: 42px;
}


.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--accent);
    color: #0b0c0f;

    font-weight: 800;
    font-size: 20px;
}


.brand strong {
    display: block;
    font-size: 15px;
}


.brand span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 13px;

    border-radius: 9px;

    color: var(--muted);

    text-decoration: none;

    font-size: 14px;

    transition: 0.2s;
}


.nav-item:hover,
.nav-item.active {
    background: var(--surface-hover);
    color: var(--text);
}


.nav-item span {
    width: 18px;
    text-align: center;
}


.sidebar-footer {
    margin-top: auto;

    padding: 14px 12px;

    color: var(--muted);

    font-size: 12px;

    border-top: 1px solid var(--border);
}


/* MAIN */

.main {
    margin-left: 250px;

    max-width: 1500px;

    padding: 42px 48px 80px;
}


.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 38px;
}


.eyebrow {
    margin: 0 0 7px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.14em;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h1 {
    margin-bottom: 0;

    font-size: 30px;
    letter-spacing: -0.04em;
}


h2 {
    margin-bottom: 7px;

    font-size: 22px;

    letter-spacing: -0.025em;
}


.environment {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);

    font-size: 12px;
}


.status-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--success);
}


/* WELCOME */

.welcome {
    padding: 34px;

    margin-bottom: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255,255,255,0.06),
            transparent 35%
        ),
        var(--surface);
}


.welcome h2 {
    font-size: 30px;

    max-width: 700px;
}


.welcome p:last-child {
    margin-bottom: 0;

    max-width: 650px;

    color: var(--muted);

    line-height: 1.6;
}


/* STATS */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 52px;
}


.stat-card {
    padding: 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);
}


.stat-card span {
    display: block;

    color: var(--muted);

    font-size: 12px;
}


.stat-card strong {
    display: block;

    margin: 8px 0 3px;

    font-size: 30px;
}


.stat-card small {
    color: var(--success);

    font-size: 11px;
}


/* SECTIONS */

.section {
    margin-bottom: 52px;
}


.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 18px;
}


.section-header h2 {
    margin-bottom: 0;
}


.button {
    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 9px 13px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 12px;
}


.button:hover {
    background: var(--surface-hover);
}


/* PROJECTS */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}


.project-card {
    padding: 22px;

    min-height: 190px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    transition: 0.2s;
}


.project-card:hover {
    transform: translateY(-2px);

    border-color: #353a44;
}


.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}


.project-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #242831;

    font-weight: 700;
}


.project-card h3 {
    margin-bottom: 8px;

    font-size: 17px;
}


.project-card p {
    margin-bottom: 20px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}


.project-meta {
    display: flex;

    gap: 8px;

    color: var(--muted);

    font-size: 10px;
}


.badge {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 10px;
}


.badge.online {
    background: rgba(85, 209, 135, 0.1);

    color: var(--success);
}


.project-card.empty {
    border-style: dashed;

    opacity: 0.65;
}


.empty-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border: 1px dashed var(--border);

    border-radius: 9px;

    color: var(--muted);
}


/* SERVICES */

.service-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.service {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 16px 18px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);
}


.service-name {
    display: flex;

    align-items: center;

    gap: 12px;
}


.service-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #242831;

    font-weight: 700;
}


.service-name strong {
    display: block;

    font-size: 13px;
}


.service-name span:last-child {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .sidebar {
        width: 210px;
    }

    .main {
        margin-left: 210px;

        padding: 30px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .sidebar {
        position: static;

        width: 100%;

        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-footer {
        display: none;
    }

    .main {
        margin-left: 0;

        padding: 24px;
    }

    .stats,
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
    FORMS
   ========================================= */

.form-container {
    max-width: 720px;
}

.project-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.02);
    color: var(--text-light);

    font: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    height: 48px;
    padding: 0 15px;
}

.form-group textarea {
    min-height: 130px;
    padding: 14px 15px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--coffee);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 3px rgba(107, 79, 59, 0.14);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}


/* =========================================
    FORM ACTIONS
   ========================================= */

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 6px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}


/* =========================================
    PRIMARY BUTTON
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 17px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--text-light);
    color: var(--background);

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================
    SECONDARY BUTTON
   ========================================= */

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
}


/* =========================================
    PROJECT ACTIONS
   ========================================= */

.project-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-actions a,
.project-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: transparent;
    color: var(--text);

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}


/* Editar */

.project-actions a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}


/* Eliminar */

.project-actions button {
    border-color: rgba(255, 90, 90, 0.18);
    color: rgba(255, 130, 130, 0.8);
}

.project-actions button:hover {
    border-color: rgba(255, 90, 90, 0.4);
    background: rgba(255, 90, 90, 0.06);
    color: #ff8a8a;
}