:root {
    --primary-color: #F20C1F;
    --primary-light: #ff3d4e;
    --primary-dark: #d00919;
    --secondary-color: #1A1A1A;
    --success-color: #06d6a0;
    --danger-color: #F20C1F;
    --warning-color: #ffd166;
    --info-color: #118ab2;
    --background-light: #FAFAFA;
    --background-dark: #191919;
    --text-primary: #1A1A1A;
    --text-secondary: #6c757d;
    --border-radius-sm: 0.5rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.7;
    transition: opacity 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.navbar {
    padding: 1rem 0;
    background: #161616 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(242, 12, 31, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    background-color: rgba(242, 12, 31, 0.2);
    transform: translateY(-2px);
}

.navbar-dark .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #ffffff;
    position: relative;
    display: block;
    flex: none !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 1.75rem;
    height: auto;
    display: block;
    flex: none !important;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 0.5s ease-out;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-control, .form-select {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: #f8f9fa;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(242, 12, 31, 0.15);
    background-color: #fff;
}

.form-floating>.form-control {
    padding: 1.5rem 1rem 0.5rem !important;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ticket-status {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: rgba(242, 12, 31, 0.1);
    color: var(--primary-dark);
}

.status-in-progress {
    background-color: rgba(255, 209, 102, 0.1);
    color: #b86e00;
}

.status-closed {
    background-color: rgba(6, 214, 160, 0.1);
    color: #038f6a;
}

.urgency-badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.urgency-high {
    background-color: rgba(242, 12, 31, 0.1);
    color: var(--danger-color);
}

.urgency-pending {
    background-color: rgba(102, 102, 102, 0.1);
    color: #555555;
}

.urgency-medium {
    background-color: rgba(255, 209, 102, 0.1);
    color: #b86e00;
}

.urgency-low {
    background-color: rgba(6, 214, 160, 0.1);
    color: #038f6a;
}

.dashboard-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.dashboard-card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.dashboard-card.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #333333) !important;
}

.dashboard-card.bg-success {
    background: linear-gradient(135deg, var(--success-color), #04a47a) !important;
}

.dashboard-card.bg-info {
    background: linear-gradient(135deg, var(--info-color), #0c6d8a) !important;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.dashboard-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.dashboard-card .label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
    background-size: 150px;
    opacity: 0.5;
    z-index: 0;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    font-weight: 600;
    padding: 1rem;
    background-color: #f8f9fa;
    color: var(--text-primary);
    border-bottom: 2px solid #eaeaea;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
    background-color: #fff;
    border-bottom: 1px solid #f3f3f3;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.table .btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background-color: rgba(6, 214, 160, 0.1);
    color: #038f6a;
}

.alert-success::before {
    background-color: var(--success-color);
}

.alert-danger {
    background-color: rgba(242, 12, 31, 0.1);
    color: var(--danger-color);
}

.alert-danger::before {
    background-color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 209, 102, 0.1);
    color: #b86e00;
}

.alert-warning::before {
    background-color: var(--warning-color);
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .dashboard-card .number {
        font-size: 2rem;
    }
    
    .form-control, .form-select {
        padding: 0.6rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1.25rem;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.highlight-animation {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(242, 12, 31, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #FAFAFA 0%, #f5f5f5 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F20C1F' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.section-heading {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-heading:after {
    content: '';
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(242, 12, 31, 0.3);
    margin-bottom: 1.5rem;
}

.features-section {
    position: relative;
    padding: 5rem 0;
    background-color: #fff;
}

.features-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.features-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(242, 12, 31, 0.1);
}

.dropdown-divider {
    margin: 0.3rem 0;
}

/* Estilos específicos para o dashboard */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    /* background-color: #191919; */
    background-color: #ffffff;
    color: #191919;
}

.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .sidebar {
        left: -260px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
    }
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu .nav-link {
    color: #76777B;
    font-weight: bold;
    transition: all 0.2s ease;
    padding-left: 8px !important;
}

.sidebar-menu .nav-link:hover, 
.sidebar-menu .nav-link.active {
    background-color: rgba(242, 12, 31, 1);
    color: #FAFAFA;
    border-radius: 15px !important;
    padding-left: 8px !important;
    box-shadow: 0 4px 12px rgba(242, 12, 31, 0.4);
}

.sidebar-menu .nav-link.active {
    font-weight: 600;
}

.sidebar-menu .nav-link .icon-wrapper {
    width: 38px;
    margin-right: 10px; 
    height: 35px;
    display: flex;
    align-items: center;
    background-color: #fafafa;
    border-radius: 12px;
}

.sidebar-menu .nav-link i {
    width: 20px;
    margin: 0 auto;
    color: #F20C1F;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.text-primary {
    color: #F20C1F !important;
}

/* Limite para o card de visualização de ticket */
.visualizar-ticket-card {
    max-width: 100%;
    height: auto !important;
}

@media (min-width: 992px) {
    .visualizar-ticket-card {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Limites para os componentes internos do ticket */
.ticket-responses {
    max-height: 400px;
    overflow-y: auto;
}

.card-body .bg-light {
    max-height: 200px;
    overflow-y: auto;
}

/* Override para corrigir as alturas dos cards de resposta */
.visualizar-ticket-card .card {
    height: auto !important;
}

.ticket-responses .card {
    height: auto !important;
}

/* Limite aplicado aos blocos de resposta individuais */
.visualizar-ticket-card .bg-light {
    height: auto;
    max-height: 200px;
    overflow-y: auto;
}

/* Correção específica para o problema de esticamento */
.row > [class*="col-"] {
    display: block;
}

/* Remover o hover effect que pode estar causando problemas */
.visualizar-ticket-card:hover,
.visualizar-ticket-card .card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
}

/* Estilos para navbar */
.navbar.p-3 {
    padding: 1rem !important;
    margin-top: -12px;
}

/* Estilo adicional para evitar esticamento vertical */
.card-body {
    padding: 1.75rem;
    height: auto;
    display: block;
    flex: none !important;
} 
