:root {
    --primary: #1F3A45;
    --primary-light: #2C5261;
    --accent: #7E9F78;
    --accent-hover: #658260;
    --bg-body: #f4f7fa;
    --surface: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #95a5a6;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --success: #2ecc71;
    --vip-purple: #8e44ad;
    --sidebar-w: 280px;
    --sidebar-w-collapsed: 80px;
    --radius: 12px;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

body, 
.sidebar, 
.nav-item, 
.btn, 
.btn-premium, 
.fab, 
.service-item, 
.modal-header, 
.badge, 
i, 
img,
h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: none;
    -ms-user-select: none;    
    user-select: none;        
    cursor: default;          
}


.btn, 
.btn-premium, 
.nav-item, 
.fab, 
.service-item, 
.survey-option-btn,
a, 
i[onclick] {
    cursor: pointer !important;
}


input, 
textarea, 
.chat-bubble,     
#detDesc,         
#noticeContent,   
.selectable-text {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}


.survey-question-block {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.survey-question-block:last-child {
    border-bottom: none;
}

.survey-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    font-size: 0.95rem;
}


.survey-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
   
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.survey-option-btn i {
    font-size: 1.6rem;
   
    margin-bottom: 5px;
}

.survey-option-btn small {
    font-weight: 500;
    font-size: 0.75rem;
}


.survey-option-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}




.btn-check:checked+label[for*="Otimo"] {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    box-shadow: 0 0 0 2px #155724;
}


.btn-check:checked+label[for*="Bom"] {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
    box-shadow: 0 0 0 2px #0c5460;
}


.btn-check:checked+label[for*="Regular"] {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
    box-shadow: 0 0 0 2px #856404;
}


.btn-check:checked+label[for*="Ruim"] {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    box-shadow: 0 0 0 2px #721c24;
}


.btn-check:checked+label[for*="NA"] {
    background-color: #e2e3e5;
    color: #383d41;
    border-color: #d6d8db;
    box-shadow: 0 0 0 2px #383d41;
}




.btn-check:checked+.survey-option-btn {
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    color: white;
}


.btn-check:checked+label[for*="Otimo"] {
    background: var(--success);
}

.btn-check:checked+label[for*="Bom"] {
    background: #3498db;
}

.btn-check:checked+label[for*="Regular"] {
    background: #f39c12;
}

.btn-check:checked+label[for*="Ruim"] {
    background: var(--danger);
}

.btn-check:checked+label[for*="NA"] {
    background: #95a5a6;
}

.survey-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}


.btn-check:checked+.btn-outline-success {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-check:checked+.btn-outline-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}




#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0d1b21 0%, #162a33 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

#modalSystemAlert {
    z-index: 2000 !important;
}


.modal-content {
    background-color: #ffffff;
}

#formTicket .form-control,
#formTicket .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
}

#formTicket .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(126, 159, 120, 0.15);
}

#formTicket .form-label {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.login-card {
    background: rgba(31, 58, 69, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    width: 450px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-brand {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -1px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(126, 159, 120, 0.25);
}

.input-modern {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

#tech-specs label {
    color: #555;
    font-size: 0.75rem;
}

#formNewAsset .form-label {
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--primary);
    z-index: 2;
}

.password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    color: var(--text-muted);
    z-index: 3;
    cursor: pointer;
    transition: 0.2s;
}

.password-toggle:hover {
    color: var(--accent);
}

.input-modern {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    transition: 0.3s;
    color: #333;
}

.input-modern:focus {
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 159, 120, 0.4);
}


input[type="file"].input-modern {
    padding: 8px 12px;
    cursor: pointer;
}

input[type="file"].input-modern::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 10px;
    transition: 0.3s;
}

input[type="file"].input-modern::file-selector-button:hover {
    background: var(--accent);
}


.broadcast-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}


.paper-effect {
    background-color: #fffcf5;
   
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.email-header {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    padding-bottom: 20px;
}


.email-meta-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
    margin-right: 10px;
}


.notice-read {
    opacity: 0.6;
    background-color: #f8f9fa !important;
    border-left-color: #ccc !important;
    transform: none !important;
}

.notice-read:hover {
    transform: translateX(2px) !important;
}

.notice-read .fw-bold {
    font-weight: 400 !important;
    color: #666 !important;
}

.btn-premium {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #5a7556 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.login-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.login-card a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
}

.login-card a:hover {
    color: var(--accent);
}


.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    overflow-x: hidden;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed {
    width: var(--sidebar-w-collapsed);
}

.logo-area {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.logo-mini {
    display: none;
   
}

.logo-full {
    display: block;
    height: 55px;
    width: auto;
    transition: 0.3s;
}

.sidebar.collapsed .logo-full {
    display: none;
   
}

.sidebar.collapsed .logo-mini {
    display: block;
   
    height: 40px;
   
    width: auto;
}

.nav-menu {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-item {
    height: 50px;
    padding: 0 15px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.2s;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item i {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.nav-text {
    margin-left: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.user-section {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.sidebar.collapsed .user-section {
    padding: 15px 0;
    justify-content: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    flex: 1;
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .btn-logout {
    display: none;
}

.btn-logout {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.2s;
}

.btn-logout:hover {
    color: var(--danger);
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-body);
    position: relative;
}

.top-header {
    height: 70px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0 30px;
    margin-top: 5px;
    flex-shrink: 0;
}

.view-container {
    flex: 1;
    padding: 10px 30px 30px 30px;
    overflow-y: auto;
    scroll-behavior: smooth;
}


.card-premium {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}


.chat-msg {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.85rem;
    position: relative;
    background: #fff;
}

.chat-msg.tech {
    border-left: 4px solid var(--primary);
    background: #f8f9fa;
}

.chat-msg.user {
    border-left: 4px solid var(--accent);
}

.chat-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.kpi-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    opacity: 0.5;
}


.notice-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.notice-container::-webkit-scrollbar {
    width: 4px;
}

.notice-container::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}


.kanban-board {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    overflow-x: auto;
   
    overflow-y: hidden;
   
    width: 100%;
    height: calc(100vh - 180px);
   
    padding-bottom: 10px;
}


.kanban-body {
    flex-grow: 1;
   
    overflow-y: auto;
   
    padding: 5px;
    margin-top: 10px;
    scrollbar-width: thin;
   
}


.kanban-body::-webkit-scrollbar {
    width: 6px;
}

.kanban-body::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 10px;
}




.kanban-col {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
   
    height: 100%;
   
}


.kanban-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    padding: 5px 0 15px 0;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 15px;
}


.kanban-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid #adb5bd !important;
   
    border-radius: 4px;
   
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.kanban-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #ced4da !important;
}


.kanban-card.prio-vip {
    border-left-color: var(--vip-purple) !important;
}

.kanban-card.prio-high {
    border-left-color: var(--danger) !important;
}

.kanban-card.prio-normal {
    border-left-color: var(--accent) !important;
}


.kanban-card h6 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.kanban-card p {
    font-size: 0.8rem;
    color: #6c757d;
}

.kanban-body.drag-over {
    background: rgba(126, 159, 120, 0.1);
    border: 2px dashed var(--accent);
}

.kanban-card:active {
    cursor: grabbing;
    transform: rotate(2deg);
}

.kanban-card.prio-high {
    border-left-color: var(--danger);
}

.kanban-card.prio-normal {
    border-left-color: var(--accent);
}


.agenda-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
}

.agenda-date {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.service-item {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: var(--bg-body);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.service-item:hover .service-icon {
    background: var(--primary);
    color: var(--accent);
}


.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.ticket-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .ticket-modal-body {
        flex-direction: row;
       
       
        height: 520px;
    }
}


.ticket-info-col {
    flex: 1;
    border-right: 1px solid #eee;
    padding-right: 15px;
    
   
    display: flex;
    flex-direction: column;
    height: 100%; 
    overflow: hidden;
}


.ticket-chat-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}


.chat-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    position: relative;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.chat-me {
    align-self: flex-end;
    background-color: #d1e7dd;
    color: #0f5132;
    border-bottom-right-radius: 2px;
}


.chat-other {
    align-self: flex-start;
    background-color: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 2px;
}

.chat-meta {
    font-size: 0.7rem;
    margin-bottom: 4px;
    opacity: 0.8;
    font-weight: 600;
}

.chat-time {
    font-size: 0.65rem;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}


.chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.badge-vip {
    background-color: var(--vip-purple);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}

#simulation-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: var(--warning);
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}