:root {
    --bg-body: aliceblue;
    --bg-primary: #0d6efd;

    --bg-hover-effect: #0d6efd;
    --text-hover-effect: #ffffff;
    --bg-active-effect: #0d6efd;
    --text-active-effect: #ffffffff;
}

/* PRELOADER */
.preloader {
    background-color: white;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    margin-top: 0px;
    top: 0px;
    z-index: 99999999999999999999999999999999;
    font-family: "Roboto", sans-serif !important;
    letter-spacing: 0.8px;
}

.preloader .loading-center {
    width: 100%;
    height: 100%;
    position: relative;
}

.preloader .loading-center-absolute {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 150px;
    width: 120px;
    margin-top: -75px;
    margin-left: -50px;
}

.preloader .loading-center-absolute p {
    margin-right: 20px;
    font-family: "Roboto", sans-serif !important;
    letter-spacing: 0.8px;
    font-weight: 300;
    line-height: 40px;
}

.preloader .object {
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    float: left;
    margin-right: 20px;
    margin-top: 65px;
    -moz-border-radius: 50% 50% 50% 50%;
    -webkit-border-radius: 50% 50% 50% 50%;
    border-radius: 50% 50% 50% 50%;
}

.preloader .object_one {
    -webkit-animation: object_one 1.5s infinite;
    animation: object_one 1.5s infinite;
}

.preloader .object_two {
    -webkit-animation: object_two 1.5s infinite;
    animation: object_two 1.5s infinite;
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

.preloader .object_three {
    -webkit-animation: object_three 1.5s infinite;
    animation: object_three 1.5s infinite;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@-webkit-keyframes object_one {
    75% {
        -webkit-transform: scale(0);
    }
}

@keyframes object_one {
    75% {
        transform: scale(0);
        -webkit-transform: scale(0);
    }
}

@-webkit-keyframes object_two {
    75% {
        -webkit-transform: scale(0);
    }
}

@keyframes object_two {
    75% {
        transform: scale(0);
        -webkit-transform: scale(0);
    }
}

@-webkit-keyframes object_three {
    75% {
        -webkit-transform: scale(0);
    }
}

@keyframes object_three {
    75% {
        transform: scale(0);
        -webkit-transform: scale(0);
    }
}

/* END PRELOADER */



/* cores dos parametros */
body,
html {
    min-height: 100vh;
    background: var(--bg-body);
}

.bg-simples-hover-effect:hover {
    background: var(--bg-hover-effect) !important;
}

.bg-simples-active-effect:active {
    background: var(--bg-active-effect) !important;
}

.text-simples-hover-effect:hover {
    color: var(--text-hover-effect) !important;
}

.text-simples-active-effect:active {
    color: var(--text-active-effect) !important;
}



/* sidebar */
@media (min-width: 992px) {

    .sidebar-mini .nav-sidebar,
    .sidebar-mini .nav-sidebar .nav-link,
    .sidebar-mini .nav-sidebar>.nav-header {
        white-space: nowrap;
        overflow: hidden;
    }

}

.bg-logo {
    background: rgb(255, 255, 255) !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 1.5%, rgba(255, 255, 255, 1) 98.5%, rgba(255, 255, 255, 0) 100%) !important;
}

.nav-sidebar {
    position: relative;
}

.nav-sidebar>.nav-item {
    margin-bottom: 0;
}

.nav-sidebar .nav-item>.nav-link {
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.nav-sidebar>.nav-item .nav-icon.fa,
.nav-sidebar>.nav-item .nav-icon.fab,
.nav-sidebar>.nav-item .nav-icon.far,
.nav-sidebar>.nav-item .nav-icon.fas,
.nav-sidebar>.nav-item .nav-icon.glyphicon,
.nav-sidebar>.nav-item .nav-icon.ion {
    font-size: 1rem !important;
}

.nav-sidebar>.nav-item .nav-icon {
    /* margin-left: 0.05rem; */
    /* font-size: 1.2rem; */
    /* margin-right: 0.2rem; */
    text-align: center;
    width: 1.6rem;
}

.fa,
.fas {
    font-weight: 900;
}

.fa,
.far,
.fas {
    font-family: "Font Awesome 5 Free";
}

.fa,
.fab,
.fad,
.fal,
.far,
.fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.main-sidebar .brand-text,
.main-sidebar .logo-xl,
.main-sidebar .logo-xs,
.sidebar .nav-link div,
.sidebar .user-panel .info {
    transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease;
}

.nav-sidebar .nav-link div {
    display: inline-block;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: .3s;
    animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    margin: 0;
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    align-items: center;
}

.nav-sidebar>.nav-item>.nav-treeview {
    padding-left: 15px;
}

.nav-sidebar .menu-open>.nav-treeview {
    display: block;
}

.nav-sidebar .nav-treeview {
    display: none;
    list-style: none;
    padding: 0;
}

/* Fim sidebar */


/* override datatable */
.disabled .data-table-btn-paginate {
    text-decoration: line-through;
}

/* fim override datatable */

input:read-only {
    background-color: var(--bs-secondary-bg)
}




/* Estilos CAIO */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* background: white; */
    /* min-height: 100vh; */
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
}

/* Header */
.header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid #1e40af;
}

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

.title {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.title i {
    font-size: 1.6rem;
}

.ticket-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 20%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Action Bar */
.action-bar {
    padding: 1.25rem 1.5rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Responses Container */
.responses-container {
    padding: 1.5rem;
}

.responses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e2e8f0;
}

.responses-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 20%;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Date Group */
.date-group {
    margin-bottom: 2rem;
}

.date-header {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Response Items (linha a linha) */
.response-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.1rem;  /*0.8rem;  riciere*/
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.response-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.response-line {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem 1.2rem 0.0rem 0.5rem;  /*riciere*/
    gap: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.response-line:last-child {
    border-bottom: none;
}

.response-id {
    background: #3b82f6;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.author-info i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.author-name {
    font-weight: 500;
    color: #1e293b;
}

.timestamp {
    color: #64748b;
    font-size: 0.75rem;
}

.response-text {
    flex-grow: 1;
    line-height: 1.4;
    color: #374151;
    font-size: 0.9rem;
}

.response-text strong {
    color: #1e293b;
    font-weight: 600;
}

.response-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;

    /* camilo */
    flex-grow: 1;
    justify-content: end;
    align-items: center;
    /* camilo */
}

.action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #6b7280;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
}

.edit-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.download-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #2563eb;
}

/* Attachments */
.attachments-section {
    padding: 0.3rem 1.2rem;
    border-top: 1px solid #f1f5f9;
    background: #fdfdfd;
}

.no-attachments {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
}

.no-attachments i {
    opacity: 0.5;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    margin-top: -10px;
}

.attachment-item:last-child {
    margin-bottom: 0;
}

.attachment-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.attachment-item span {
    flex: 1;
    font-weight: 500;
    color: #374151;
    font-size: 0.85rem;
}

.download-attachment {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s;
}

.download-attachment:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    .header {
        padding: 0.8rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .action-bar {
        padding: 0.8rem;
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .responses-container {
        padding: 0.8rem;
    }

    .date-header {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .response-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.6rem 0.8rem;
    }

    .response-id {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .author-info {
        font-size: 0.75rem;
    }

    .author-info i {
        font-size: 0.8rem;
    }

    .timestamp {
        font-size: 0.7rem;
    }

    .response-text {
        font-size: 0.85rem;
    }

    .response-actions {
        align-self: flex-end;
    }

    .action-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .attachments-section {
        padding: 0.6rem 0.8rem;
    }

    .no-attachments {
        font-size: 0.75rem;
    }

    .attachment-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .response-content {
        padding: 0.8rem;
    }

    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
/* FIM Estilos CAIO */




.anotations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
}

.anotations-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}