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

:root {
    --background: #090d0b;
    --surface: #111713;
    --border: #252e28;
    --green: #35b875;
    --green-hover: #279c61;
    --text: #f1f5f2;
    --muted: #89958d;
}

body.login-body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 42px;
}

.brand {
    margin-bottom: 42px;
}

.brand h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand h1 span {
    color: var(--green);
    font-size: 13px;
    vertical-align: top;
}

.brand p {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-top: 5px;
}

.login-heading {
    margin-bottom: 30px;
}

.login-heading h2 {
    font-size: 24px;
    margin-bottom: 9px;
    font-weight: 600;
}

.login-heading p {
    color: var(--muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 9px;
    color: #dce5df;
}

.form-group input {
    width: 100%;
    height: 48px;
    background: #0b100d;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 14px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border-color: var(--green);
}

.form-group input::placeholder {
    color: #68736b;
}

.login-button {
    width: 100%;
    height: 49px;
    margin-top: 10px;
    background: var(--green);
    color: #07120b;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

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

.login-error {
    background: #351b1b;
    border: 1px solid #693232;
    color: #ffaaaa;
    padding: 12px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

.login-footer span {
    height: 1px;
    background: var(--border);
    flex: 1;
}

.login-footer p {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 23px;
    }
}


/* =================================
   KLYVE HUB - DASHBOARD
================================= */

.dashboard-body {
    background: #0b100d;
    color: #edf3ee;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #101713;
    border-right: 1px solid #222e26;
    padding: 30px 19px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-brand {
    padding: 0 12px;
    margin-bottom: 48px;
}

.sidebar-brand h2 {
    font-size: 25px;
    letter-spacing: 2px;
}

.sidebar-brand h2 span {
    color: #35b875;
    font-size: 11px;
    vertical-align: top;
}

.sidebar-brand p {
    color: #35b875;
    font-size: 10px;
    letter-spacing: 5px;
    font-weight: bold;
    margin-top: 4px;
}

.sidebar-label {
    color: #65736a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 13px;
}

.secondary-label {
    margin-top: 35px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: #9aa89e;
    padding: 13px 12px;
    border-radius: 7px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: .2s;
}

.nav-link span {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: #1a2a20;
    color: #48c982;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #263129;
    padding-top: 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    min-width: 0;
}

.user-avatar {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    background: #214c34;
    color: #65d796;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.user-info strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.user-info span {
    color: #89958d;
    font-size: 11px;
}

.logout-button {
    background: transparent;
    border: none;
    color: #89958d;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.logout-button:hover {
    color: #ff7777;
}

/* MAIN */

.dashboard-main {
    margin-left: 250px;
    padding: 36px 42px;
    min-height: 100vh;
    max-width: 1700px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.breadcrumb {
    color: #718078;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.dashboard-header h1 {
    font-size: 27px;
    margin: 12px 0 7px;
}

.dashboard-header p {
    color: #89958d;
    font-size: 13px;
}

.header-user {
    color: #9daaa0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.header-status {
    width: 7px;
    height: 7px;
    background: #35b875;
    border-radius: 50%;
}

/* WELCOME */

.welcome-section {
    background: linear-gradient(110deg, #172c20, #142019);
    border: 1px solid #294333;
    border-radius: 11px;
    padding: 31px;
    min-height: 175px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin-bottom: 27px;
}

.welcome-tag {
    font-size: 9px;
    color: #54ce88;
    letter-spacing: 2px;
    font-weight: bold;
}

.welcome-section h2 {
    font-size: 23px;
    margin: 13px 0 9px;
}

.welcome-section p {
    font-size: 13px;
    color: #a6b5aa;
}

.welcome-decoration {
    font-size: 100px;
    font-weight: bold;
    color: rgba(80, 194, 125, .12);
    padding-right: 25px;
}

/* INDICADORES */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-bottom: 38px;
}

.stat-card {
    background: #111914;
    border: 1px solid #253128;
    border-radius: 9px;
    padding: 20px;
    min-width: 0;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a5b0a8;
    font-size: 12px;
    gap: 8px;
}

.stat-icon {
    color: #4bc982;
    font-size: 19px;
}

.stat-card > strong {
    display: block;
    font-size: 31px;
    margin: 21px 0 7px;
}

.stat-card small {
    color: #718078;
    font-size: 11px;
}

/* PROJETOS */

.content-section {
    background: #111914;
    border: 1px solid #253128;
    border-radius: 10px;
    padding: 25px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
}

.section-heading h2 {
    font-size: 17px;
    margin-bottom: 7px;
}

.section-heading p {
    color: #89958d;
    font-size: 12px;
}

.text-link {
    color: #4bc982;
    font-size: 12px;
    text-decoration: none;
}

.text-link:hover {
    color: #8ce4ad;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
}

.projects-table th {
    color: #78877d;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 14px 12px;
    border-bottom: 1px solid #29342d;
    white-space: nowrap;
}

.projects-table td {
    padding: 17px 12px;
    border-bottom: 1px solid #202b24;
    font-size: 12px;
    color: #aebbb2;
}

.projects-table td strong {
    color: #e6eee8;
    font-weight: 500;
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.status-tag {
    display: inline-block;
    background: #1d3024;
    color: #68ce91;
    border-radius: 4px;
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
}

.progress-info {
    margin-bottom: 7px;
    font-size: 11px;
}

.progress-track {
    width: 95px;
    height: 5px;
    background: #29352d;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #35b875;
    border-radius: 10px;
}

.empty-table {
    text-align: center;
    padding: 35px !important;
    color: #89958d !important;
}

.dashboard-footer {
    text-align: center;
    color: #65736a;
    font-size: 10px;
    margin-top: 35px;
}

/* RESPONSIVIDADE */

@media (max-width: 1100px) {

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

    .dashboard-main {
        padding: 30px 25px;
    }

}

@media (max-width: 700px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 17px;
    }

    .sidebar-brand {
        margin-bottom: 20px;
    }

    .sidebar-label,
    .sidebar-bottom,
    .secondary-label,
    .sidebar-nav:nth-of-type(2) {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 9px;
        font-size: 11px;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px 17px;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .header-user {
        display: none;
    }

    .welcome-section {
        padding: 23px;
    }

    .welcome-decoration {
        display: none;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-top {
        font-size: 10px;
    }

    .stat-card > strong {
        font-size: 26px;
    }

    .content-section {
        padding: 16px;
    }

}


/* =================================
   KLYVE HUB - DASHBOARD
================================= */

.dashboard-body {
    background: #0b100d;
    color: #edf3ee;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #101713;
    border-right: 1px solid #222e26;
    padding: 30px 19px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-brand {
    padding: 0 12px;
    margin-bottom: 48px;
}

.sidebar-brand h2 {
    font-size: 25px;
    letter-spacing: 2px;
}

.sidebar-brand h2 span {
    color: #35b875;
    font-size: 11px;
    vertical-align: top;
}

.sidebar-brand p {
    color: #35b875;
    font-size: 10px;
    letter-spacing: 5px;
    font-weight: bold;
    margin-top: 4px;
}

.sidebar-label {
    color: #65736a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 13px;
}

.secondary-label {
    margin-top: 35px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: #9aa89e;
    padding: 13px 12px;
    border-radius: 7px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: .2s;
}

.nav-link span {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: #1a2a20;
    color: #48c982;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #263129;
    padding-top: 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    min-width: 0;
}

.user-avatar {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    background: #214c34;
    color: #65d796;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.user-info strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.user-info span {
    color: #89958d;
    font-size: 11px;
}

.logout-button {
    background: transparent;
    border: none;
    color: #89958d;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.logout-button:hover {
    color: #ff7777;
}

/* MAIN */

.dashboard-main {
    margin-left: 250px;
    padding: 36px 42px;
    min-height: 100vh;
    max-width: 1700px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.breadcrumb {
    color: #718078;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.dashboard-header h1 {
    font-size: 27px;
    margin: 12px 0 7px;
}

.dashboard-header p {
    color: #89958d;
    font-size: 13px;
}

.header-user {
    color: #9daaa0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.header-status {
    width: 7px;
    height: 7px;
    background: #35b875;
    border-radius: 50%;
}

/* WELCOME */

.welcome-section {
    background: linear-gradient(110deg, #172c20, #142019);
    border: 1px solid #294333;
    border-radius: 11px;
    padding: 31px;
    min-height: 175px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    margin-bottom: 27px;
}

.welcome-tag {
    font-size: 9px;
    color: #54ce88;
    letter-spacing: 2px;
    font-weight: bold;
}

.welcome-section h2 {
    font-size: 23px;
    margin: 13px 0 9px;
}

.welcome-section p {
    font-size: 13px;
    color: #a6b5aa;
}

.welcome-decoration {
    font-size: 100px;
    font-weight: bold;
    color: rgba(80, 194, 125, .12);
    padding-right: 25px;
}

/* INDICADORES */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    margin-bottom: 38px;
}

.stat-card {
    background: #111914;
    border: 1px solid #253128;
    border-radius: 9px;
    padding: 20px;
    min-width: 0;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a5b0a8;
    font-size: 12px;
    gap: 8px;
}

.stat-icon {
    color: #4bc982;
    font-size: 19px;
}

.stat-card > strong {
    display: block;
    font-size: 31px;
    margin: 21px 0 7px;
}

.stat-card small {
    color: #718078;
    font-size: 11px;
}

/* PROJETOS */

.content-section {
    background: #111914;
    border: 1px solid #253128;
    border-radius: 10px;
    padding: 25px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
}

.section-heading h2 {
    font-size: 17px;
    margin-bottom: 7px;
}

.section-heading p {
    color: #89958d;
    font-size: 12px;
}

.text-link {
    color: #4bc982;
    font-size: 12px;
    text-decoration: none;
}

.text-link:hover {
    color: #8ce4ad;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 650px;
}

.projects-table th {
    color: #78877d;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 14px 12px;
    border-bottom: 1px solid #29342d;
    white-space: nowrap;
}

.projects-table td {
    padding: 17px 12px;
    border-bottom: 1px solid #202b24;
    font-size: 12px;
    color: #aebbb2;
}

.projects-table td strong {
    color: #e6eee8;
    font-weight: 500;
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.status-tag {
    display: inline-block;
    background: #1d3024;
    color: #68ce91;
    border-radius: 4px;
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
}

.progress-info {
    margin-bottom: 7px;
    font-size: 11px;
}

.progress-track {
    width: 95px;
    height: 5px;
    background: #29352d;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #35b875;
    border-radius: 10px;
}

.empty-table {
    text-align: center;
    padding: 35px !important;
    color: #89958d !important;
}

.dashboard-footer {
    text-align: center;
    color: #65736a;
    font-size: 10px;
    margin-top: 35px;
}

/* RESPONSIVIDADE */

@media (max-width: 1100px) {

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

    .dashboard-main {
        padding: 30px 25px;
    }

}

@media (max-width: 700px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 17px;
    }

    .sidebar-brand {
        margin-bottom: 20px;
    }

    .sidebar-label,
    .sidebar-bottom,
    .secondary-label,
    .sidebar-nav:nth-of-type(2) {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 9px;
        font-size: 11px;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px 17px;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .header-user {
        display: none;
    }

    .welcome-section {
        padding: 23px;
    }

    .welcome-decoration {
        display: none;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-top {
        font-size: 10px;
    }

    .stat-card > strong {
        font-size: 26px;
    }

    .content-section {
        padding: 16px;
    }

}


.client-form {
    max-width: 100%;
}

.client-form h2 {
    font-size: 17px;
    margin-bottom: 22px;
    color: #edf3ee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.client-form label {
    font-size: 13px;
    color: #aebbb1;
}

.client-form input {
    width: 100%;
    padding: 13px 14px;
    background: #0b100d;
    border: 1px solid #29352d;
    border-radius: 7px;
    color: #edf3ee;
    outline: none;
    box-sizing: border-box;
}

.client-form input:focus {
    border-color: #35b875;
}

.full-width {
    grid-column: 1 / -1;
}

.form-divider {
    height: 1px;
    background: #29352d;
    margin: 30px 0;
}

.form-note {
    color: #89968c;
    font-size: 12px;
    margin: 24px 0;
}

.primary-button {
    background: #35b875;
    color: #07110b;
    border: none;
    border-radius: 7px;
    padding: 13px 22px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover {
    background: #46cc87;
}

.success-message {
    background: #142b1e;
    border: 1px solid #287b4d;
    color: #65d996;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.back-link {
    color: #35b875;
    text-decoration: none;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}


.clients-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.clients-top h2 {
    font-size: 17px;
    margin: 0 0 7px;
}

.clients-top p {
    color: #89968c;
    font-size: 13px;
    margin: 0;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    background: #0b100d;
    border: 1px solid #29352d;
    color: #edf3ee;
    padding: 11px 13px;
    border-radius: 7px;
    outline: none;
}

.search-form button {
    background: #1b2c21;
    color: #65d996;
    border: 1px solid #2c5239;
    padding: 10px 16px;
    border-radius: 7px;
    cursor: pointer;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.status-active {
    color: #65d996;
    background: #142b1e;
}

.status-paused {
    color: #e6b66b;
    background: #302719;
}

@media (max-width: 700px) {
    .search-form {
        width: 100%;
    }

    .search-form input {
        flex: 1;
        min-width: 0;
    }
}


.action-link {
    display: inline-block;
    padding: 8px 13px;
    background: #17291e;
    border: 1px solid #2c5239;
    border-radius: 6px;
    color: #65d996;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.action-link:hover {
    background: #203b2b;
}

.account-status {
    margin-top: 25px;
    padding: 16px;
    background: #101a13;
    border: 1px solid #29352d;
    border-radius: 8px;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #edf3ee;
    font-size: 13px;
    cursor: pointer;
}

.status-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: #35b875;
}


.search-form select {
    background: #0b100d;
    border: 1px solid #29352d;
    color: #edf3ee;
    padding: 11px 13px;
    border-radius: 7px;
    outline: none;
    max-width: 220px;
}

.search-form select:focus {
    border-color: #35b875;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 105px;
}

.project-progress .progress-track {
    flex: 1;
    min-width: 45px;
}

.project-progress small {
    color: #aebbb1;
    font-size: 11px;
    white-space: nowrap;
}

.status-planning {
    color: #a9b7c9;
    background: #202b38;
}

.status-development {
    color: #65d996;
    background: #142b1e;
}

.status-analysis {
    color: #e6c56b;
    background: #302b19;
}

.status-adjustments {
    color: #d6a0f0;
    background: #2b2035;
}

.status-completed {
    color: #65d996;
    background: #142b1e;
}

.status-paused {
    color: #e6b66b;
    background: #302719;
}

.status-cancelled {
    color: #ed8989;
    background: #351d1d;
}

@media (max-width: 700px) {
    .search-form {
        flex-wrap: wrap;
    }

    .search-form select {
        max-width: none;
        flex: 1;
    }
}


.client-form select,
.client-form textarea {
    width: 100%;
    padding: 13px 14px;
    background: #0b100d;
    border: 1px solid #29352d;
    border-radius: 7px;
    color: #edf3ee;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.client-form select:focus,
.client-form textarea:focus {
    border-color: #35b875;
}

.client-form textarea {
    resize: vertical;
    min-height: 120px;
}

.client-form input[type="date"] {
    color-scheme: dark;
}


.project-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.project-overview > div {
    background: #101a13;
    border: 1px solid #29352d;
    border-radius: 8px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.overview-label {
    color: #89968c;
    font-size: 12px;
}

.project-overview strong {
    color: #edf3ee;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.project-progress-large {
    margin-top: 22px;
}

.project-progress-large .progress-track {
    height: 9px;
}

.history-section {
    margin-top: 25px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.history-item {
    display: flex;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #29352d;
}

.history-marker {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #35b875;
}

.history-content h3 {
    font-size: 14px;
    margin: 0 0 8px;
    color: #edf3ee;
}

.history-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #aebbb1;
    margin: 0 0 8px;
}

.history-content small {
    color: #78877c;
    font-size: 11px;
}

.empty-history {
    color: #89968c;
    font-size: 13px;
}

@media (max-width: 700px) {
    .project-overview {
        grid-template-columns: 1fr;
    }
}


/* PAINEL DO CLIENTE */

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 27px;
    margin-bottom: 8px;
}

.dashboard-header p,
.section-header p {
    color: #888;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: #171717;
    border: 1px solid #292929;
    border-radius: 12px;
    padding: 24px;
}

.stat-label {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 30px;
    color: #fff;
}

.content-section {
    background: #171717;
    border: 1px solid #292929;
    border-radius: 12px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 19px;
    margin-bottom: 6px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-card {
    background: #202020;
    border: 1px solid #303030;
    border-radius: 10px;
    padding: 20px;
}

.project-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.project-card-info h3 {
    font-size: 16px;
}

.status-badge {
    font-size: 12px;
    color: #a7e8bd;
    background: #183326;
    padding: 6px 10px;
    border-radius: 20px;
}

.project-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 9px;
}

.progress-info strong {
    color: #fff;
}

.progress-track {
    height: 7px;
    background: #383838;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #39b86b;
    border-radius: 10px;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 45px 20px;
    color: #999;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-card-info,
    .project-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-header {
        align-items: flex-start;
    }
}

/* ESTRUTURA GERAL KLYVE HUB */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #101010;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: 100%;
    min-height: 70px;
    padding: 0 35px;
    background: #171717;
    border-bottom: 1px solid #292929;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand strong {
    font-size: 21px;
    letter-spacing: 1px;
}

.brand span {
    color: #39b86b;
    margin-left: 5px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ccc;
    font-size: 13px;
}

.topbar-user a {
    color: #39b86b;
    text-decoration: none;
}

.main-content {
    width: 100%;
    max-width: 1250px;
    padding: 35px;
    margin: 0 auto;
    flex: 1;
}

.footer {
    padding: 22px 35px;
    border-top: 1px solid #292929;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 12px;
}

@media (max-width: 700px) {
    .main-content {
        padding: 20px 15px;
    }

    .topbar {
        padding: 0 18px;
    }

    .footer {
        padding: 20px;
        flex-direction: column;
        gap: 8px;
    }
}


/* LISTAGEM DE PROJETOS DO CLIENTE */

.project-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin: -8px 0 20px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.search-form input,
.search-form select {
    background: #202020;
    border: 1px solid #383838;
    border-radius: 7px;
    color: #fff;
    padding: 12px 14px;
    font-size: 13px;
    outline: none;
}

.search-form input {
    flex: 1;
    min-width: 200px;
}

.search-form select {
    min-width: 190px;
}

.search-form button {
    background: #39b86b;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.search-form button:hover {
    background: #2e9d59;
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
    }
}



/* DETALHES DO PROJETO - CLIENTE */

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.project-detail-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.detail-progress {
    margin: 25px 0 35px;
}

.detail-description h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.detail-description p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px 0;
    border-bottom: 1px solid #303030;
}

.detail-info-item:last-child {
    border-bottom: none;
}

.detail-info-item span {
    color: #888;
    font-size: 12px;
}

.detail-info-item strong {
    font-size: 14px;
    color: #eee;
}

.history-section {
    margin-top: 0;
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-item {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
}

.history-marker {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 5px;
    background: #39b86b;
    border-radius: 50%;
}

.history-content {
    flex: 1;
    padding-bottom: 20px;
    border-bottom: 1px solid #303030;
}

.history-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.history-heading h3 {
    font-size: 14px;
}

.history-heading span {
    color: #888;
    font-size: 11px;
}

.history-content p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    color: #888;
    font-size: 11px;
}

.history-meta strong {
    color: #39b86b;
}

@media (max-width: 850px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* CHAT DO PROJETO */

.chat-container {
    background: #171717;
    border: 1px solid #292929;
    border-radius: 12px;
    overflow: hidden;
}

.chat-header {
    padding: 20px 25px;
    border-bottom: 1px solid #303030;
}

.chat-header strong,
.chat-header span {
    display: block;
}

.chat-header strong {
    font-size: 15px;
    margin-bottom: 6px;
}

.chat-header span {
    color: #888;
    font-size: 12px;
}

.chat-messages {
    height: 450px;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    max-width: 75%;
}

.chat-message.mine {
    align-self: flex-end;
}

.chat-message.theirs {
    align-self: flex-start;
}

.message-author {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 7px;
}

.message-author span {
    color: #39b86b;
    margin-left: 5px;
}

.message-bubble {
    background: #292929;
    padding: 13px 16px;
    border-radius: 10px;
    color: #eee;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mine .message-bubble {
    background: #194b30;
}

.message-time {
    color: #777;
    font-size: 10px;
    margin-top: 6px;
}

.mine .message-time {
    text-align: right;
}

.chat-form {
    padding: 20px;
    border-top: 1px solid #303030;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-form textarea {
    flex: 1;
    resize: vertical;
    min-height: 48px;
    max-height: 120px;
    background: #222;
    border: 1px solid #383838;
    border-radius: 8px;
    padding: 13px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
}

.chat-form button {
    background: #39b86b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: bold;
}

.chat-error {
    color: #ff8585;
    padding: 10px 20px;
    font-size: 13px;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: #888;
}

.chat-empty h3 {
    color: #eee;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .chat-form {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-form button {
        width: 100%;
    }

    .chat-message {
        max-width: 90%;
    }
}

.logout-button {
    background: transparent;
    border: none;
    color: #39b86b;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.logout-button:hover {
    color: #fff;
}


/* CONVERSAS DO ADMINISTRADOR */

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conversation-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #202020;
    border: 1px solid #303030;
    border-radius: 10px;
}

.conversation-info {
    min-width: 0;
    flex: 1;
}

.conversation-info h3 {
    font-size: 15px;
    margin-bottom: 7px;
}

.conversation-company {
    color: #39b86b;
    font-size: 12px;
}

.conversation-info p {
    color: #999;
    font-size: 13px;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.conversation-info p strong {
    color: #ddd;
}

.conversation-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    white-space: nowrap;
}

.conversation-date,
.conversation-count {
    color: #888;
    font-size: 11px;
}

@media (max-width: 650px) {
    .conversation-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .conversation-actions {
        align-items: flex-start;
    }
}

/* AJUSTE VISUAL CHAT CLIENTE */

.chat-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    background: #111;
    min-height: 450px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 75%;
}

.chat-message.mine {
    align-self: flex-end;
}

.chat-message.theirs {
    align-self: flex-start;
}

.message-bubble {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.chat-form {
    width: 100%;
    box-sizing: border-box;
}