body {

    font-family: 'Inter', sans-serif;

}


.login-page {

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;


    background:

        radial-gradient(
            circle at top left,
            #ffffff,
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #eef0ff,
            #f8f9ff
        );

}


.login-card {

    width:430px;

    background:white;

    padding:45px;

    border-radius:24px;

    box-shadow:
        0 25px 60px rgba(50,50,93,.15);


}


.login-logo {

    width:65px;

    height:65px;

    margin:auto;


    display:flex;

    align-items:center;

    justify-content:center;


    border-radius:18px;


    background:#6c63ff;

    color:white;

    font-size:26px;

    font-weight:700;

}


.form-control {

    height:48px;

    border-radius:10px;

}


.btn-primary {

    height:48px;

    border-radius:12px;


    background:#6c63ff;

    border-color:#6c63ff;

    font-weight:600;

}


.btn-primary:hover {

    background:#554cff;

}

/*
  Dashboard
*/

*{
    box-sizing:border-box;
}

body.app-body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f4f6fb;
    display:flex;
}


.sidebar{
    width:260px;
    min-height:100vh;
    background:#111827;
    color:white;
    padding:25px;
}


.logo{
    width:50px;
    height:50px;
    background:#635bff;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    margin-bottom:40px;
}


.sidebar a{
    display:block;
    color:#cbd5e1;
    text-decoration:none;
    margin:18px 0;
}


.main{
    flex:1;
}


.topbar{
    height:70px;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 30px;
    border-bottom:1px solid #ddd;
}


.content{
    padding:30px;
}


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


.card{
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 10px 25px #0001;
}


.card span{
    display:block;
    color:#64748b;
}


.card strong{
    font-size:35px;
}

/*
Clientes
*/

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

    background: #635bff;
    color: #ffffff !important;

    padding: 12px 18px;
    border-radius: 12px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    border: none;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(99, 91, 255, .25);

    transition: .2s;
}


.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 91, 255, .35);
}


.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

/* novo cliente */

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


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


.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border-radius: 10px;

    border: 1px solid #d0d5dd;

    padding: 14px;

    background: #ffffff;

    font-size: 14px;

    outline: none;

    transition: .2s;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: #635bff;

    box-shadow: 0 0 0 3px rgba(99,91,255,.15);

}


.form-group select {

    cursor: pointer;

}

.form-actions {

    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 25px;

}

/*
Abas Ativar e Inativar Clientes
*/

.tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tabs a {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    background: #e5e7eb;
    color: #333;
}

.tabs a.active {
    background: #6255ff;
    color: #fff;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}


.search-form input {
    width: 320px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.badge {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}


.badge.active {
    background: #dcfce7;
    color: #166534;
}


.badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn-secondary {

    padding: 14px 20px;

    border-radius: 12px;

    background: #e5e7eb;

    color: #333;

    text-decoration: none;

}

.btn-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 5px 14px;

    border-radius: 12px;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;

    background: #6255ff;

    color: #fff;

    border: none;

}

/*
|--------------------------------------------------------------------------
| Padronização páginas administrativas
|--------------------------------------------------------------------------
*/

.page-header {

    min-height: 120px;

}


.page-header h1 {

    font-size: 42px;

    margin-bottom: 10px;

}


.page-header p {

    margin-top: 0;

}



/*
Cards de listagem
*/

.card table {

    border-collapse: collapse;

}


.card th {

    padding: 14px 8px;

}


.card td {

    padding: 12px 8px;

}



/*
Coluna ações
*/

.card td:last-child,
.card th:last-child {

    width: 220px;

}



/*
Status
*/

.badge {

    display:inline-flex;

    justify-content:center;

    min-width:120px;

}

/*
|--------------------------------------------------------------------------
| Atendimento - Conversa estilo WhatsApp
|--------------------------------------------------------------------------
*/

.whatsapp-card {
    height: calc(100vh - 120px);

    display: flex;
    flex-direction: column;

    background: #111b21;

    border-radius: 18px;

    overflow: hidden;
}


/* Cabeçalho */

.whatsapp-header {

    height: 64px;

    min-height:64px;

    background:#202c33;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 18px;

}


.whatsapp-header strong {

    font-size:15px;

}


.whatsapp-header span {

    display:block;

    font-size:12px;

    color:#cbd5e1;

}


.whatsapp-header form {

    display:flex;

    align-items:center;

    gap:10px;

}


.whatsapp-header select {

    height:40px;

    width:150px;

    border-radius:10px;

    padding:0 10px;

}




/* Área mensagens */


.whatsapp-messages {

    flex:1;

    overflow-y:auto;

    padding:25px;

    background:#111827;

}



/* Linha */


.message-row {

    display:flex;

    margin-bottom:14px;

}


.message-row.customer {

    justify-content:flex-start;

}


.message-row.attendant {

    justify-content:flex-end;

}



/* Balão */


.message-bubble {

    max-width:55%;

    min-width:180px;

    padding:12px 15px;

    color:#fff;

    font-size:14px;

}


.message-bubble.customer {

    background:#202c33;

    border-radius:14px 14px 14px 3px;

}


.message-bubble.attendant {

    background:#005c4b;

    border-radius:14px 14px 3px 14px;

}


.message-bubble strong {

    font-size:12px;

    color:#9de3c2;

}


.message-bubble p {

    margin:8px 0;

}


.message-bubble small {

    display:block;

    text-align:right;

    font-size:11px;

}




/*
Resposta
*/

.whatsapp-reply {

    height:65px;

    min-height:65px;

    background:#202c33;

    padding:10px;

    display:flex;

    align-items:center;

    gap:10px;

}


.whatsapp-reply textarea {

    flex:1;

    height:42px !important;

    resize:none;

    overflow:hidden;

    border-radius:20px;

    border:none;

    padding:12px 18px;

}


.whatsapp-reply button {

    height:42px;

}

.alert {
    padding: 15px 18px;
    margin-bottom: 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
