/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    min-height: 100vh;
    color: #333;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 3rem;
    color: #8B5CF6;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.login-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

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

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 8px;
    color: #8B5CF6;
    width: 16px;
}

.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4A5568;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8B5CF6;
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    font-size: 0.9rem;
    color: #2D3748;
}

/* Button Styles */
.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer small {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A5568;
}

.login-footer i {
    margin-right: 5px;
    color: #28a745;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #F1F3F4;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #6B46C1 0%, #8B5CF6 50%, #A78BFA 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 20px rgba(139, 92, 246, 0.3);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 1.8rem;
    margin-right: 12px;
    color: #F3E8FF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu .nav {
    padding: 0 15px;
}

.sidebar-menu .nav-item {
    margin-bottom: 5px;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

.sidebar-menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.sidebar-menu .nav-link:hover::before {
    left: 100%;
}

.sidebar-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.sidebar-menu .nav-link.active {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateX(5px);
}

.sidebar-menu .nav-link i {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submenu Styles */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.nav-item-dropdown .nav-link i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-item-dropdown .nav-link .nav-text {
    flex: 1;
    margin-right: 12px;
}

.nav-item-dropdown .nav-link .dropdown-icon {
    margin-left: auto;
}

.nav-item-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item-dropdown .nav-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown .nav-link[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    margin-left: 25px;
    margin-top: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    position: relative;
}

.submenu::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.submenu .nav-link {
    padding: 10px 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0;
    border-radius: 8px;
}

.submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.submenu .nav-link.active {
    background: linear-gradient(135deg, #A855F7, #C084FC);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transform: translateX(3px);
}

.sidebar-footer {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.user-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Top Bar */
.topbar {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 18px 30px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    margin-right: 15px;
}

.page-title {
    margin: 0;
    color: #553C9A;
    font-weight: 700;
    font-size: 1.3rem;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-actions .btn {
    position: relative;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.topbar-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.topbar-actions .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: linear-gradient(135deg, #7C3AED, #A855F7) !important;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: linear-gradient(135deg, #F1F3F4 0%, #E8EAED 100%);
    min-height: calc(100vh - 80px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 8px;
    color: #8B5CF6;
    width: 16px;
}

.form-control, .form-select {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #2D3748;
}

.form-control:focus, .form-select:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    background: #FFFFFF;
    color: #2D3748;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4A5568;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #8B5CF6;
}

.form-text {
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Table Styles */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
    background: #FFFFFF;
}

.table thead th {
    background: #F7FAFC;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 600;
    color: #2D3748;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #E2E8F0;
    color: #4A5568;
}

.table tbody tr:hover {
    background-color: #F7FAFC;
}

/* User Info Table */
.user-info-table {
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    color: white;
}

.user-name-table {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 2px;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

/* Button Group */
.btn-group .btn {
    border-radius: 6px;
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e1e5e9;
    padding: 20px 25px;
}

/* Validation Styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.89-1.89.94-.94-.94-.94-.94.94-1.89 1.89-.94.94z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Profile Page Styles */
.profile-avatar-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 5px;
}

.profile-role {
    color: #4A5568;
    font-size: 1rem;
    margin-bottom: 15px;
}

.profile-status {
    margin-top: 15px;
}

.profile-details {
    padding: 20px 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E2E8F0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #2D3748;
    font-size: 0.9rem;
    margin: 0;
}

.info-item span {
    color: #4A5568;
    font-size: 0.95rem;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.permission-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid #e1e5e9;
    margin-top: 20px;
}

.profile-actions .btn {
    min-width: 150px;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-bottom: 1px solid #E2E8F0;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #2D3748;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #E2E8F0;
    padding: 20px 25px;
    background: #F7FAFC;
    border-radius: 0 0 15px 15px;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: 70px;
    background: linear-gradient(180deg, #6B46C1 0%, #8B5CF6 100%);
}

.sidebar.collapsed .brand-text {
    display: none;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-actions {
    flex-direction: column;
    gap: 8px;
}

.sidebar.collapsed .sidebar-menu .nav-link {
    justify-content: center;
    padding: 14px;
    margin: 4px 8px;
}

.sidebar.collapsed .sidebar-menu .nav-link i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-menu .nav-link:hover {
    transform: scale(1.1);
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.welcome-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-item i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Stats Cards */
.stats-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
}

.stats-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.3));
}

.stats-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 5px;
}

.stats-content p {
    color: #4A5568;
    font-weight: 500;
    margin: 0;
}

/* Main Card */
.main-card {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #F3E8FF 0%, #EDE9FE 100%);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
}

.card-header h5 {
    margin: 0;
    color: #553C9A;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-header h5 i {
    color: #8B5CF6;
    margin-right: 8px;
}

.card-body {
    padding: 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
}

.empty-state h4 {
    color: #2D3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-state p {
    color: #4A5568;
    margin-bottom: 20px;
}

.empty-state .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    /* Mobile Sidebar */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle-mobile {
        display: block;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .brand-text {
        display: none;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar.show {
        width: 280px;
    }
    
    .sidebar.show .brand-text {
        display: block;
    }
    
    .sidebar.show .nav-text {
        display: block;
    }
    
    .nav-text {
        display: none;
    }
    
    .user-details {
        display: none;
    }
    
    .sidebar.show .user-details {
        display: block;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .welcome-card {
        padding: 25px 20px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 25px 15px;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .topbar {
        padding: 10px 15px;
    }
    
    .topbar-actions {
        gap: 10px;
    }
    
    .topbar-actions .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Estilos para perfil do usuário */
.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.profile-name {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0;
}

.profile-role {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.profile-info {
    text-align: left;
}

.info-list .info-item {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

/* Estilos para alteração de senha */
.password-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.password-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.password-form .form-control:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.password-form .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.password-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Estilos para estatísticas */
.stat-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7C3AED;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsividade para perfil */
@media (max-width: 768px) {
    .profile-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .main-card {
        margin-bottom: 20px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .info-list .info-item {
        text-align: center;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

.section-title {
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E2E8F0;
}

/* Estilos para SLA */
.sla-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sla-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.sla-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sla-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.sla-times {
    margin-bottom: 20px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 0;
}

.time-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.time-value {
    font-weight: 700;
    color: #212529;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sla-actions {
    margin-top: auto;
}

.sla-actions .btn {
    width: 100%;
    padding: 10px;
    font-weight: 600;
}

.sla-form .form-control-color {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.sla-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.info-card .card-header {
    background: transparent;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.info-card .card-body {
    padding: 20px;
}

.info-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-text {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para Categorias - Design Clean */
.category-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.table-hover tbody tr:hover {
    background-color: rgba(124, 58, 237, 0.08);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #2D3748;
    background-color: #F7FAFC;
    border-bottom: 2px solid #E2E8F0;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #E2E8F0;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.category-form .form-control-color {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.category-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Melhorias na tabela */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

.table th:first-child,
.table td:first-child {
    padding-left: 20px;
}

.table th:last-child,
.table td:last-child {
    padding-right: 20px;
}

/* Badges personalizados */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* Botões de ação */
.btn-group-sm .btn {
    border-radius: 4px;
    margin: 0 1px;
}

.btn-group-sm .btn:first-child {
    margin-left: 0;
}

.btn-group-sm .btn:last-child {
    margin-right: 0;
}

/* Estilos para Incidentes */
.incident-title {
    line-height: 1.4;
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    background: #7C3AED;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.incident-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.incident-form .form-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
}

.incident-form .form-control,
.incident-form .form-select {
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #2D3748;
}

.incident-form .form-control:focus,
.incident-form .form-select:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
    background: #FFFFFF;
    color: #2D3748;
}

.incident-form .form-text {
    font-size: 0.85rem;
    color: #4A5568;
    margin-top: 5px;
}

/* Filtros de incidentes */
.filter-card {
    background: #F7FAFC;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

/* Badges personalizados para incidentes */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Responsividade para incidentes */
@media (max-width: 768px) {
    .incident-title {
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .user-avatar-small {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .incident-form .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .incident-form .form-actions .btn {
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* Estilos para página de detalhes do incidente */
.incident-link {
    color: #2D3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.incident-link:hover {
    color: #7C3AED;
    text-decoration: none;
}

.incident-link strong {
    font-weight: 600;
}

.description-content {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #7C3AED;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #2D3748;
}

.assets-content {
    background: #F7FAFC;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.assets-list {
    background: #EDF2F7;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2D3748;
    word-break: break-all;
}

.section-title {
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E2E8F0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-content h6 {
    margin-bottom: 5px;
    color: #212529;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 5px;
}

.timeline-content small {
    color: #6c757d;
}

/* Info list compacta */
.info-compact {
    text-align: left;
}

.info-details {
    border-top: 1px solid #f8f9fa;
    padding-top: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

.detail-item i {
    width: 16px;
    text-align: center;
}

.detail-item span {
    margin-right: 8px;
}

/* Assigned user compacto */
.assigned-user-compact {
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    margin-bottom: 2px;
    color: #212529 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.no-assignment-compact {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Garantir que o nome do responsável seja visível */
.assigned-user-compact .user-name {
    color: #212529 !important;
    font-weight: 600;
}

.no-assignment-compact i {
    font-size: 1.2rem;
}

/* SLA Info compacto */
.sla-compact {
    text-align: center;
}

.sla-name {
    font-size: 1rem;
    color: #7C3AED;
}

.sla-times-compact {
    margin-top: 10px;
}

.time-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.time-value {
    font-weight: 600;
    color: #212529;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.time-value.overdue {
    background: #dc3545;
    color: white;
    font-weight: 700;
}

.time-value.overdue-attended {
    background: #fd7e14;
    color: white;
    font-weight: 700;
}

.time-value.warning {
    background: #ffc107;
    color: #212529;
    font-weight: 700;
}

.time-value.success {
    background: #28a745;
    color: white;
    font-weight: 700;
}

/* SLA Status Compact */
.sla-status-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sla-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.sla-item small {
    font-size: 0.7rem;
    min-width: 30px;
}

.sla-item .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Estilos para Comentários e Anexos */
.incident-attachments {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.attachments-list {
    margin-top: 15px;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: #F7FAFC;
    border-color: #7C3AED;
}

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

.attachment-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.attachment-link {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.attachment-link:hover {
    color: #5a2d91;
    text-decoration: underline;
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.incident-add-attachment {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.attachment-form .input-group {
    margin-bottom: 10px;
}

.incident-comments {
    background: #F7FAFC;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.add-comment {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form .form-control {
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
    background: #FFFFFF;
    color: #2D3748;
}

.comment-form .form-control:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
    background: #FFFFFF;
    color: #2D3748;
}

.comment-form .form-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: #7C3AED;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

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

.comment-header {
    margin-bottom: 10px;
}

.comment-user {
    display: flex;
    align-items: center;
}

.comment-user .user-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-user .user-info {
    margin-left: 10px;
}

.comment-user .user-info strong {
    display: block;
    color: #2D3748;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.comment-user .user-info small {
    color: #4A5568;
    font-size: 0.8rem;
}

.comment-content {
    color: #2D3748;
    line-height: 1.6;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: #4A5568;
}

.empty-comments p {
    margin: 0;
    font-style: italic;
}

/* Estilos para Dashboard */
.sla-metrics {
    padding: 10px 0;
}

.sla-metric {
    margin-bottom: 20px;
}

.sla-metric:last-child {
    margin-bottom: 0;
}

.sla-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress {
    height: 25px;
    border-radius: 12px;
    background-color: #EDF2F7;
}

.progress-bar {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mttr-metrics {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.metric-item {
    display: flex;
    align-items: center;
    text-align: center;
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
}

.metric-content {
    text-align: left;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7C3AED;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #4A5568;
    font-weight: 500;
}

.recurrent-metric {
    padding: 20px 0;
}

.recurrent-value {
    font-size: 3rem;
    font-weight: 700;
    color: #7C3AED;
    line-height: 1;
    margin-bottom: 10px;
}

.recurrent-label {
    font-size: 1rem;
    color: #4A5568;
    font-weight: 500;
}

.affected-assets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #F7FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.asset-item:hover {
    background: #EDF2F7;
    border-color: #7C3AED;
    transform: translateY(-2px);
}

.asset-name {
    font-weight: 600;
    color: #2D3748;
    font-size: 0.9rem;
}

.asset-count {
    background: #7C3AED;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Estilos para gráficos */
.main-card canvas {
    max-height: 300px;
}

/* Responsividade para Dashboard */
@media (max-width: 768px) {
    .mttr-metrics {
        padding: 15px 0;
    }
    
    .metric-item {
        justify-content: center;
    }
    
    .affected-assets {
        grid-template-columns: 1fr;
    }
    
    .asset-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsividade para detalhes */
@media (max-width: 768px) {
    .assigned-user-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar-small {
        margin-bottom: 10px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -17px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }
    
    .info-compact {
        text-align: left;
    }
    
    .sla-compact {
        text-align: left;
    }
    
    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .attachment-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .comment-user {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .comment-user .user-info {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* API Key Management Styles */
.api-key-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.api-key-display {
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.api-key-display .form-label {
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.api-key-display .input-group {
    margin-bottom: 0.5rem;
}

.api-key-display .input-group input {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #FFFFFF;
    color: #2D3748;
}

.endpoint-item {
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.endpoint-item h6 {
    margin-bottom: 0.5rem;
    color: #2D3748;
}

.endpoint-item p {
    margin-bottom: 0.25rem;
    color: #4A5568;
}

.api-documentation pre {
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.875rem;
    overflow-x: auto;
    color: #2D3748;
}

.api-documentation code {
    background: #EDF2F7;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: #2D3748;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #4A5568;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #CBD5E0;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #2D3748;
}

/* Responsive adjustments for API pages */
@media (max-width: 768px) {
    .api-key-display {
        padding: 0.75rem;
    }
    
    .endpoint-item {
        padding-left: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .api-documentation pre {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
}

/* Profile page improvements */
.info-list .info-item {
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.75rem;
}

.info-list .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list .text-muted {
    min-width: 120px;
    flex-shrink: 0;
}

.info-list .fw-semibold {
    word-break: break-word;
    text-align: right;
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .info-list .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .info-list .fw-semibold {
        text-align: left;
        margin-top: 0.25rem;
    }
    
    .info-list .text-muted {
        min-width: auto;
    }
}

/* Estilos para página de perfil reformulada */
.profile-header {
    margin-bottom: 2rem;
}

.profile-header-content {
    padding: 0;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    color: white;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-avatar-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    z-index: 1;
    position: relative;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-role {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
    color: white;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cards de informação */
.info-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #F7FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    background: #EDF2F7;
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h6 {
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    color: #4A5568;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

/* Cards de estatísticas */
.stat-card {
    padding: 1.5rem;
    background: #F7FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    background: #EDF2F7;
    border-color: #7C3AED;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7C3AED;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #4A5568;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Formulário de senha melhorado */
.password-form .form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.password-form .form-label i {
    color: #7C3AED;
    margin-right: 0.5rem;
}

.password-form .form-control {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #2D3748;
}

.password-form .form-control:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
    background: #FFFFFF;
    color: #2D3748;
}

.password-form .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    border: none;
}

.password-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Responsividade para perfil reformulado */
@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .profile-avatar-large {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-role {
        font-size: 1rem;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .profile-avatar-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Estilos para card de falsos positivos */
.false-positive-metric {
    padding: 20px 0;
}

.false-positive-value {
    font-size: 3rem;
    font-weight: 700;
    color: #6f42c1;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

.false-positive-label {
    font-size: 1.1rem;
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 5px;
}

.false-positive-metric .text-muted {
    font-size: 0.9rem;
    color: #4A5568;
}

/* Responsividade para card de falsos positivos */
@media (max-width: 768px) {
    .false-positive-value {
        font-size: 2.5rem;
    }
    
    .false-positive-label {
        font-size: 1rem;
    }
}

/* Estilos para tabela de logs */
.activity-logs-table {
    font-size: 0.9rem;
}

.activity-logs-table td {
    vertical-align: middle;
    padding: 8px 12px;
}

.activity-logs-table .description-content {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-size: 0.85rem;
}

.activity-logs-table .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.activity-logs-table small {
    font-size: 0.8rem;
}

/* Estilos para botões de atualização */
.btn-refresh {
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para notificações */
.notification-dropdown {
    min-width: 320px;
    max-width: 380px;
    max-height: 500px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    gap: 12px;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-item[data-type="response_sla"] .notification-icon {
    background-color: #fff3cd;
    color: #856404;
}

.notification-item[data-type="resolution_sla"] .notification-icon {
    background-color: #f8d7da;
    color: #721c24;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    color: #666;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-meta .badge {
    font-size: 10px;
    padding: 2px 6px;
}

.time-remaining {
    color: #dc3545;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.notification-action {
    flex-shrink: 0;
}

.notification-action .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.6;
}

.notification-empty p {
    font-size: 14px;
    margin: 0;
}

/* Badge de notificação pulsante */
#notificationBadge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade para notificações */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 280px;
        max-width: 320px;
    }
    
    .notification-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 11px;
    }
}