:root {
    --sidebar-width: 265px;
    --sidebar-bg: #101828;
    --body-bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--body-bg);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

.app-wrapper {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: var(--sidebar-width);
    height: 100vh;

    background: var(--sidebar-bg);

    color: #fff;

    padding: 24px 16px;

    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 24px;
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
}

.sidebar-brand small {
    display: block;
    color: #98a2b3;
    font-size: 11px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #2563eb;

    font-size: 21px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 14px;

    border-radius: 8px;

    color: #d0d5dd;

    text-decoration: none;

    transition: 0.2s;
}

.sidebar-link:hover {
    color: white;
    background: #1d2939;
}

.sidebar-link i {
    width: 22px;
    font-size: 18px;
}

.sidebar-section {
    padding: 24px 14px 8px;

    font-size: 11px;
    font-weight: 600;

    color: #667085;

    letter-spacing: 1px;
}

.main-content {
    margin-left: var(--sidebar-width);

    min-height: 100vh;
}

.topbar {
    height: 70px;

    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: white;

    border-bottom: 1px solid #eaecf0;
}

.topbar-user {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #475467;
}

.topbar-user i {
    font-size: 24px;
}

.content-container {
    padding: 30px;
}

.dashboard-card,
.system-card {
    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}

.dashboard-card {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 22px;
}

.dashboard-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 24px;
}

.dashboard-label {
    color: #667085;
    font-size: 13px;
}

.dashboard-card h3 {
    margin: 3px 0 0;

    font-size: 27px;
    font-weight: 700;
}

.system-card {
    display: flex;

    gap: 18px;

    height: 100%;

    padding: 22px;

    cursor: pointer;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.system-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(16, 24, 40, 0.08);
}

.system-card-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 24px;
}

@media (max-width: 768px) {

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .content-container {
        padding: 20px 15px;
    }

    .topbar {
        padding: 0 15px;
    }
}

/****************************************************/

.company-card {
    height: 100%;

    padding: 22px;

    background: white;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}

.company-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f2f4f7;
    color: #344054;

    font-size: 21px;
}

/*************************************************************/

.project-card {
    height: 100%;

    padding: 22px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(16, 24, 40, 0.08);
}

/*****************************************************************/

.project-detail-header {
    padding: 26px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}

.project-detail-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 27px;
}

.project-stat {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    font-size: 14px;
}

.project-stat span {
    color: #667085;
}

.module-card {
    height: 100%;

    padding: 22px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(16, 24, 40, 0.08);
}

.module-description {
    min-height: 42px;
}

.empty-modules {
    padding: 60px 25px;

    text-align: center;

    background: #fff;

    border: 1px dashed #d0d5dd;

    border-radius: 14px;
}

.empty-modules-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 14px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 25px;
}

/*******************************************/
.requirement-header {
    padding: 25px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}

.requirement-card {
    padding: 22px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}

.requirement-check {
    padding-top: 2px;

    font-size: 21px;

    color: #2563eb;
}

/**********************************************/

.requirement-detail-card {
    padding: 26px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.05);
}


.history-timeline {
    position: relative;

    margin-top: 25px;
}


.history-item {
    position: relative;

    padding-left: 38px;

    padding-bottom: 28px;
}


.history-item::before {
    content: '';

    position: absolute;

    left: 10px;
    top: 18px;

    width: 2px;
    height: 100%;

    background: #e4e7ec;
}


.history-item:last-child::before {
    display: none;
}


.history-marker {
    position: absolute;

    left: 3px;
    top: 8px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: #2563eb;

    border: 4px solid #dbeafe;
}


.history-content {
    padding: 18px 20px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 12px;

    box-shadow:
        0 1px 3px
        rgba(16, 24, 40, 0.04);
}


.history-change {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 12px;

    font-size: 14px;
}


.history-note {
    margin-top: 14px;

    padding: 12px 14px;

    background: #f8fafc;

    border-radius: 8px;

    color: #475467;
}

/************************************************/

.feature-checklist {
    overflow: hidden;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 14px;
}


.feature-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    min-height: 68px;

    padding: 14px 18px;

    border-bottom:
        1px solid #eaecf0;
}


.feature-item:last-child {
    border-bottom: 0;
}


.feature-name {
    font-size: 15px;

    color: #101828;
}


.feature-checkbox {
    width: 20px;
    height: 20px;

    margin-top: 0;

    cursor: pointer;
}


.feature-detail-label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;

    color: #344054;
}


.feature-detail-text {
    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #eaecf0;

    border-radius: 10px;

    color: #475467;

    line-height: 1.6;

    white-space: pre-line;
}


.feature-image-gallery {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(160px, 1fr)
        );

    gap: 14px;
}


.feature-no-images {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    color: #98a2b3;
    background: #f9fafb;
}


.feature-no-images i {
    font-size: 28px;
}

/*********************************************************/

.feature-image-form {
    padding: 15px;

    margin-bottom: 15px;

    background: #f8fafc;

    border: 1px solid #eaecf0;

    border-radius: 10px;
}


.feature-gallery-item {
    overflow: hidden;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 10px;
}


.feature-gallery-item img {
    display: block;

    width: 100%;
    height: 150px;

    object-fit: cover;

    cursor: pointer;
}


.feature-gallery-caption {
    padding: 9px 10px;

    font-size: 12px;

    color: #667085;

    border-top:
        1px solid #eaecf0;
}

/************************* LOGIN ******************************/

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fa;
}


.login-container {
    width: 100%;

    max-width: 430px;

    padding: 20px;
}


.login-card {
    padding: 35px;

    background: white;

    border: 1px solid #eaecf0;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(16, 24, 40, 0.08);
}


.login-logo {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 14px;

    background: #2563eb;
    color: white;

    font-size: 26px;
}

/************************************************************/

/* =========================================
   COMENTARIOS / CONVERSACIÓN
========================================= */

.comment-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.comment-message {
    padding: 16px 18px;

    border: 1px solid #eaecf0;

    border-radius: 12px;

    background: #fff;
}


.comment-client {
    border-left: 4px solid #2563eb;
}


.comment-internal {
    border-left: 4px solid #344054;

    background: #f8fafc;
}


.comment-message-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


.comment-avatar {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    color: #2563eb;

    font-size: 15px;
}


.comment-internal
.comment-avatar {
    background: #eaecf0;

    color: #344054;
}


.comment-message-body {
    margin-top: 12px;

    padding-left: 40px;

    color: #344054;

    line-height: 1.6;
}


.comment-reply-box {
    margin-top: 20px;

    padding: 20px;

    background: #fff;

    border: 1px solid #eaecf0;

    border-radius: 12px;
}


.comment-empty {
    padding: 45px 20px;

    text-align: center;

    border: 1px dashed #d0d5dd;

    border-radius: 12px;

    background: #fff;
}


.comment-empty > i {
    font-size: 28px;

    color: #98a2b3;
}
