@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #0056b3;
    --primary-light: #3084d7;
    --primary-dark: #004080;
    --secondary: #28a745;
    --secondary-hover: #218838;
    --accent: #ff7700;
    --accent-hover: #e56b00;
    --accent-light: rgba(255, 119, 0, 0.1);
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --gray-light: #f0f2f5;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f2f5, #e2e6ea);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}


/* Header e Navegação */

.main-header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.user-welcome {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.user-role {
    color: var(--gray);
    font-size: 0.8rem;
}


/* Notifications - Redesign Profissional */

.notifications {
    position: relative;
}

.notification-button {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: var(--transition);
}

.notification-button:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 360px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 1000;
    max-height: 480px;
    overflow: hidden;
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.notifications-panel.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.notifications-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.notifications-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-control-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.notifications-control-btn:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.notifications-body {
    overflow-y: auto;
    max-height: 400px;
    padding: 5px 0;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background-color: rgba(0, 86, 179, 0.04);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
}

.notification-item.closing {
    height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    border: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(48, 132, 215, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.notification-icon.info {
    background-color: rgba(48, 132, 215, 0.1);
    color: var(--primary);
}

.notification-icon.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--secondary);
}

.notification-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.notification-icon.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-text {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-time {
    color: var(--gray);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.notification-time i {
    font-size: 0.7rem;
    margin-right: 5px;
    opacity: 0.7;
}

.notification-actions {
    display: flex;
    gap: 8px;
}

.notification-action-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--primary);
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-action-btn:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--danger);
}

.notification-item:hover .notification-close {
    opacity: 1;
}

.notifications-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    background-color: #f8f9fa;
}

.view-all-link {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.empty-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.empty-notifications i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.empty-notifications p {
    font-size: 0.9rem;
}


/* Logout Button */

.logout-button {
    color: var(--gray);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 8px;
    transition: var(--transition);
}

.logout-button:hover {
    color: var(--danger);
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}


/* Main Content */

.main-content {
    flex: 1;
    padding: 40px 0;
}


/* Tabs System */

.dashboard-tabs {
    margin-bottom: 30px;
}

.tab-links {
    display: flex;
    margin-bottom: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.tab-link {
    padding: 15px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tab-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.tab-link.active {
    color: var(--primary);
    background-color: rgba(0, 86, 179, 0.05);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-link:hover {
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}


/* Section Title */

.section-title {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px;
    color: var(--primary);
}

.subsection-title {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.subsection-title i {
    margin-right: 10px;
    color: var(--primary);
}


/* Dashboard Stats */

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.stat-card.primary::before {
    background-color: var(--primary);
}

.stat-card.success::before {
    background-color: var(--secondary);
}

.stat-card.warning::before {
    background-color: var(--warning);
}

.stat-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.stat-icon i {
    font-size: 1.4rem;
    margin-right: 10px;
}

.stat-card.primary .stat-icon i {
    color: var(--primary);
}

.stat-card.success .stat-icon i {
    color: var(--secondary);
}

.stat-card.warning .stat-icon i {
    color: var(--warning);
}

.stat-title {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
}

.stat-card.primary .stat-value {
    color: var(--primary-dark);
}

.stat-card.success .stat-value {
    color: var(--secondary);
}

.stat-card.warning .stat-value {
    color: var(--danger);
}

.stat-text {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 5px;
}


/* Sections for Início tab */

.credentials-section,
.downloads-section,
.support-section {
    margin-bottom: 30px;
}


/* Credentials */

.credentials-card {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.credentials-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light) 20%, transparent 80%);
    opacity: 0.1;
    border-radius: 0 0 0 120px;
    pointer-events: none;
    z-index: 1;
}

.credentials-header {
    margin-bottom: 20px;
}

.credentials-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.credentials-badge {
    background-color: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credential-item {
    position: relative;
}

.credential-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.credential-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    background-color: var(--light);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credential-copy {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
}


/* Training Banner */

.training-banner {
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.training-banner-content {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    color: white;
}

.training-banner-icon {
    font-size: 3rem;
    margin-right: 20px;
}

.training-banner-text {
    flex: 1;
}

.training-banner-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.training-banner-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--accent);
    white-space: nowrap;
    font-weight: 600;
    transition: var(--transition);
}

.btn-light:hover {
    background-color: var(--light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}


/* Downloads Section */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.download-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.download-info {
    margin-bottom: 20px;
}

.download-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.download-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}


/* Support Section - Redesenhada */

.support-section {
    margin-bottom: 30px;
}

.support-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid #0daae3;
}

.support-header {
    background: linear-gradient(120deg, #304297, #0daae3);
    padding: 15px 20px;
    color: white;
}

.support-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.support-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.support-content {
    padding: 20px;
}

.support-ticket-action {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.support-option {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.support-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-option.whatsapp {
    border-left-color: #25D366;
}

.support-option.email {
    border-left-color: #0daae3;
}

.support-option.phone {
    border-left-color: #304297;
}

.support-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #304297, #0daae3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.support-option.whatsapp .support-option-icon {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.support-option.email .support-option-icon {
    background: linear-gradient(135deg, #0277BD, #0daae3);
}

.support-option.phone .support-option-icon {
    background: linear-gradient(135deg, #304297, #7264a8);
}

.support-option-details {
    flex: 1;
    min-width: 0;
}

.support-option-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.support-option-value {
    font-weight: 500;
    font-size: 13px;
    color: #0daae3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #f0f4f7;
    color: #304297;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.support-btn i {
    margin-right: 6px;
}

.support-btn:hover {
    background-color: #e0e9f0;
    transform: translateY(-2px);
}

.support-btn.primary {
    background-color: #304297;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
}

.support-btn.primary:hover {
    background-color: #263880;
}

.support-btn.secondary {
    background-color: #0daae3;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
}

.support-btn.secondary:hover {
    background-color: #0c95c7;
}

@media (max-width: 992px) {
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .support-options {
        grid-template-columns: 1fr;
    }
    .support-ticket-action {
        flex-direction: column;
        width: 100%;
    }
    .support-ticket-action .support-btn {
        width: 100%;
        justify-content: center;
    }
    .support-option {
        flex-wrap: wrap;
    }
    .support-option-details {
        width: calc(100% - 52px);
        margin-bottom: 10px;
    }
    .support-option .support-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Account Sections */

.account-section {
    margin-bottom: 30px;
}


/* Info Grid */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item {
    padding: 10px;
}

.info-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
}


/* Contrato */

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.contract-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.contract-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.contract-preview {
    background-color: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--gray);
}


/* Activity Log (for Faturas) */

.activity-log {
    margin-bottom: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(48, 132, 215, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray);
}


/* Training Tab */

.training-options {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.training-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.training-option i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.training-option.active {
    color: var(--primary);
    background-color: rgba(0, 86, 179, 0.05);
}

.training-option.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.training-content {
    display: none;
    animation: fadeIn 0.5s;
}

.training-content.active {
    display: block;
}


/* Vídeos de Treinamento */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-item {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-title {
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

.video-item.active .video-title {
    color: var(--primary);
    font-weight: 600;
}


/* Knowledge Base */

.knowledge-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knowledge-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--light);
    transition: var(--transition);
}

.knowledge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.knowledge-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.knowledge-info {
    flex: 1;
}

.knowledge-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.knowledge-info p {
    font-size: 0.9rem;
    color: var(--gray);
}


/* Materials */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.material-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.material-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.material-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.material-info {
    margin-bottom: 20px;
}

.material-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.material-info p {
    font-size: 0.9rem;
    color: var(--gray);
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 7px 15px;
    font-size: 0.8rem;
}

.btn i {
    margin-right: 8px;
}


/* Toast notification for copy */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--dark);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--secondary);
}


/* Footer */

.main-footer {
    background-color: white;
    padding: 20px 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}


/* Media Queries */

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .download-grid,
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }
    .stats-summary,
    .stats-summary,
    .support-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .download-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    .training-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .training-banner-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .training-banner-text {
        margin-bottom: 15px;
    }
    .contract-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .contract-header .btn {
        width: 100%;
    }
    .video-playlist {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .menu-toggle {
        display: block;
    }
    .training-options {
        flex-direction: column;
    }
    .training-option {
        padding: 12px;
    }
    .training-option::after {
        width: 5px;
        height: 100%;
        top: 0;
        left: 0;
    }
    .notifications-panel {
        width: 90%;
        left: 5%;
        right: 5%;
        top: 60px;
        max-height: 80vh;
    }
    .user-welcome {
        display: none;
    }
    .tab-links {
        padding: 10px;
    }
    .tab-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    .tab-link i {
        margin-right: 5px;
    }
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .activity-item {
        flex-wrap: wrap;
    }
    .activity-item .btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    .support-option {
        padding: 15px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .card {
        padding: 15px;
    }
    .training-banner {
        padding: 15px;
    }
    .training-banner-text h3 {
        font-size: 1.1rem;
    }
    .training-banner-text p {
        font-size: 0.8rem;
    }
    .header-actions {
        gap: 10px;
    }
    .notification-button,
    .logout-button {
        padding: 5px;
    }
    .logo img {
        max-height: 40px;
    }
}


/* Adições ao CSS para melhorar o menu mobile */


/* Ajustes no menu toggle */

.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-dark);
}


/* Menu mobile */

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 200;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav-close:hover {
    color: var(--danger);
}

.mobile-nav-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.mobile-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

.mobile-user-info {
    flex: 1;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--dark);
}

.mobile-user-role {
    font-size: 0.8rem;
    color: var(--gray);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-nav-link.active {
    background-color: rgba(0, 86, 179, 0.05);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

.mobile-nav-link:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

.mobile-nav-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Ajustes para visualização mobile dos tabs */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .tab-links {
        display: flex;
        flex-direction: column;
        padding: 0;
        box-shadow: none;
        background-color: transparent;
    }
    .tab-link {
        background-color: white;
        margin-bottom: 10px;
        border-radius: var(--border-radius);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        justify-content: flex-start;
    }
    .tab-link.active {
        border-left: 3px solid var(--primary);
    }
    .tab-link.active::after {
        display: none;
    }
    .header-actions {
        display: none;
    }
    /* Mostrar apenas o necessário no header em mobile */
    .header-content {
        justify-content: space-between;
    }
    .logo img {
        max-height: 45px;
    }
    /* Ajustes na visualização mobile-only */
    .mobile-visible {
        display: flex !important;
    }
    .mobile-hidden {
        display: none !important;
    }
    .container {
        width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    /* Oculta completamente o menu tab-links original em mobile */
    .dashboard-tabs .tab-links {
        display: none !important;
        /* !important para garantir que a regra seja aplicada */
    }
    /* Garante que apenas o conteúdo da aba ativa seja exibido */
    .tab-content {
        display: none;
    }
    .tab-content.active {
        display: block;
    }
    /* Se necessário, ajusta o espaçamento superior do conteúdo da aba */
    .tab-content {
        margin-top: 15px;
    }
}


/* CSS para o toggle de senha */

.credential-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    background-color: var(--light);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.password-value {
    flex: 1;
}

.password-toggle {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 10px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.credential-actions {
    display: flex;
    align-items: center;
}


/* Ajuste para mobile */

@media (max-width: 576px) {
    .credential-value {
        flex-wrap: wrap;
    }
    .password-container {
        width: 100%;
        margin-bottom: 5px;
    }
    .credential-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* Estilos para o Modal de Chamado Técnico */

.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.ticket-modal.active {
    opacity: 1;
    visibility: visible;
}

.ticket-modal-content {
    background-color: white;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.ticket-modal.active .ticket-modal-content {
    transform: translateY(0);
}

.ticket-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #304297, #0daae3);
    padding: 20px 25px;
    color: white;
}

.ticket-modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.ticket-modal-header h3 i {
    margin-right: 10px;
}

.ticket-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.ticket-modal-close:hover {
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0.1);
}

.ticket-modal-body {
    padding: 25px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #0daae3;
    box-shadow: 0 0 0 3px rgba(13, 170, 227, 0.1);
    outline: none;
}

.form-control-file {
    display: block;
    width: 100%;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}


/* Estilos para toast notifications */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    color: #333;
    padding: 15px 25px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 1300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    font-size: 18px;
    margin-right: 10px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.success i {
    color: #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.error i {
    color: #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.warning i {
    color: #ffc107;
}


/* Estilos para a aba de Chamados Técnicos */

.tickets-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tickets-filter {
    min-width: 200px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: all 0.2s ease;
    border-left: 4px solid #304297;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-id {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.ticket-status.open {
    background-color: #304297;
}

.ticket-status.inprogress {
    background-color: #0daae3;
}

.ticket-status.waiting {
    background-color: #ffa500;
}

.ticket-status.closed {
    background-color: #28a745;
}

.ticket-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.ticket-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.ticket-detail {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.ticket-detail i {
    margin-right: 5px;
    color: #304297;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
}

.ticket-action-btn {
    font-size: 13px;
    padding: 6px 12px;
}


/* Modal de Visualização de Detalhes do Chamado */

.ticket-detail-modal {
    max-width: 800px;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ticket-info-id {
    font-size: 18px;
    font-weight: 600;
    color: #304297;
}

.ticket-info-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    background-color: #0daae3;
}

.ticket-info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ticket-info-item {
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

.ticket-info-description h4,
.ticket-conversation h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.ticket-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.ticket-conversation {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.ticket-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.ticket-message.user {
    background-color: #f0f4f7;
    margin-left: 20px;
}

.ticket-message.support {
    background-color: #e8f4fd;
    margin-right: 20px;
    border-left: 3px solid #0daae3;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-author {
    font-weight: 600;
    color: #333;
}

.message-date {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.message-content {
    line-height: 1.5;
}

.ticket-reply {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.ticket-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .tickets-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ticket-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ticket-reply-actions {
        flex-direction: column;
    }
    .ticket-reply-actions .btn {
        width: 100%;
    }
}


/* Toast Notification */

.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background-color: #dc3545;
}

.toast-notification.success {
    background-color: #28a745;
}


/* Credenciais */

.credentials-container {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.credential-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.credential-row:last-child {
    border-bottom: none;
}

.credential-label {
    font-weight: 500;
    width: 80px;
    color: #555;
}

.credential-value,
.credential-password {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    color: #333;
}

.credential-row button {
    background: none;
    border: none;
    color: #666;
    margin-left: 8px;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.credential-row button:hover {
    background-color: #f0f0f0;
    color: #0056b3;
}

.credential-actions {
    margin-top: 16px;
    text-align: right;
}

.no-credentials {
    padding: 20px;
    text-align: center;
    color: #666;
}


/* Notificações */

.notifications-panel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.notifications-title {
    font-weight: 600;
    font-size: 16px;
}

.notifications-controls {
    display: flex;
    align-items: center;
}

.notifications-control-btn {
    background: none;
    border: none;
    color: #0056b3;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.notifications-control-btn:hover {
    background-color: #e9ecef;
}

.notifications-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-item.unread:hover {
    background-color: #e6f2ff;
}

.notification-icon {
    margin-right: 15px;
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
}

.notification-icon i {
    font-size: 16px;
    color: #6c757d;
}

.notification-icon.info i {
    color: #0056b3;
}

.notification-icon.warning i {
    color: #ffc107;
}

.notification-icon.error i {
    color: #dc3545;
}

.notification-icon.success i {
    color: #28a745;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-item.unread .notification-title {
    color: #0056b3;
}

.notification-text {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #adb5bd;
}

.notification-time {
    display: flex;
    align-items: center;
}

.notification-time i {
    margin-right: 5px;
}

.notification-actions {
    display: flex;
}

.notification-action-btn {
    background: none;
    border: none;
    color: #0056b3;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    transition: background-color 0.2s;
    border-radius: 3px;
}

.notification-action-btn:hover {
    background-color: #e9ecef;
}

.notification-close {
    margin-left: 15px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    font-size: 14px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #6c757d;
}

.empty-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #adb5bd;
}

.empty-notifications i {
    font-size: 32px;
    margin-bottom: 10px;
}

.empty-notifications p {
    margin: 0;
}

.notifications-footer {
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.view-all-link {
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}


/* Status badges */

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.assinado {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pendente {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.enviado {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.cancelado {
    background-color: #f8d7da;
    color: #721c24;
}


/* Account details */

.account-details {
    width: 100%;
}

.account-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.account-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}


/* Estilo consistente para todas as tabs */

.tab-content {
    width: 100%;
}

.section-title {
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.span-all {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    color: #333;
}


/* Garantir consistência entre as tabs */

.tab-content>div,
.training-options,
.training-content,
.notifications-panel,
.credentials-section,
.downloads-section,
.support-section {
    max-width: 100%;
    box-sizing: border-box;
}


/* Contrato */

.contract-container {
    padding: 15px;
}

.contract-container p {
    margin-bottom: 15px;
    color: #666;
}

.contract-actions {
    display: flex;
    gap: 10px;
}


/* Container de Boas-vindas - Novo design profissional */

.welcome-dashboard {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    border-top: 4px solid #304297;
}

.welcome-header {
    background: linear-gradient(120deg, #304297, #048cce, #0daae3);
    padding: 30px;
    color: white;
}

.welcome-user {
    display: flex;
    align-items: center;
}

.welcome-avatar {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 170, 227, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin-right: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.welcome-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}


/* Estilo para destaque do Grupo */

.grupo-destaque {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #e74a3b;
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(231, 74, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.grupo-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
}

.grupo-numero {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dashboard-content {
    padding: 0;
}

.dashboard-section {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-section:last-child {
    border-bottom: none;
}

.dashboard-section h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.dashboard-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: #304297;
    margin-right: 10px;
    border-radius: 2px;
}

.dashboard-metrics {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.metric {
    flex: 1;
    min-width: 160px;
    padding: 0 10px;
    margin-bottom: 10px;
    text-align: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #304297;
    margin-bottom: 5px;
    line-height: 1;
}

.metric-value span {
    font-size: 16px;
    font-weight: 500;
    margin-left: 3px;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

.credential-fields {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.credential-field {
    flex: 1;
    min-width: 250px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.credential-field label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.credential-input {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.credential-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    width: 100%;
    outline: none;
}

.action-button {
    background: none;
    border: none;
    color: #777;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 1px solid #e9ecef;
}

.action-button:hover {
    background-color: #f0f0f0;
    color: #304297;
}

.action-button:active {
    background-color: #e5e5e5;
}

@media (max-width: 768px) {
    .welcome-user {
        flex-direction: column;
        text-align: center;
    }
    .welcome-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .dashboard-metrics,
    .credential-fields {
        flex-direction: column;
    }
    .metric,
    .credential-field {
        min-width: 100%;
    }
}


/* Métricas no novo layout */

.metrics-panel {
    margin-bottom: 10px;
}

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.metric-column {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.metric-box {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.license-metric::before {
    background-color: #304297;
}

.storage-metric::before {
    background-color: #0daae3;
}

.expiry-metric::before {
    background-color: #7264a8;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.license-metric .metric-icon {
    background-color: rgba(48, 66, 151, 0.1);
    color: #304297;
}

.storage-metric .metric-icon {
    background-color: rgba(13, 170, 227, 0.1);
    color: #0daae3;
}

.expiry-metric .metric-icon {
    background-color: rgba(114, 100, 168, 0.1);
    color: #7264a8;
}

.metric-data {
    flex: 1;
}

.metric-date {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.days-left {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.metric-label {
    font-size: 14px;
    color: #858796;
    font-weight: 500;
}

@media (max-width: 768px) {
    .metrics-row {
        flex-direction: column;
    }
    .metric-column {
        width: 100%;
    }
}


/* Fundo sutil com cor corporativa */

body {
    background-color: #f8f9fc;
}

.credential-input:focus-within {
    border-color: #0daae3;
    box-shadow: 0 0 0 2px rgba(13, 170, 227, 0.1);
}


/* Nova seção de treinamento */

.training-section {
    margin-bottom: 30px;
}

.training-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid #0daae3;
}

.training-card-content {
    display: flex;
    padding: 25px;
}

.training-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0daae3, #304297);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.training-icon i {
    font-size: 28px;
    color: white;
}

.training-info {
    flex: 1;
}

.training-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #304297;
}

.training-info p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.training-btn {
    background: linear-gradient(to right, #304297, #0daae3);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(48, 66, 151, 0.2);
    display: inline-flex;
    align-items: center;
}

.training-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.training-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(48, 66, 151, 0.3);
}

.training-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(48, 66, 151, 0.2);
}

@media (max-width: 768px) {
    .training-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .training-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}


/* Nova seção de downloads mais profissional */

.downloads-section {
    margin-bottom: 30px;
}

.downloads-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid #0daae3;
}

.downloads-header {
    background: linear-gradient(120deg, #304297, #0daae3);
    padding: 20px 25px;
    color: white;
}

.downloads-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.downloads-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.downloads-content {
    padding: 20px 25px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.download-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.download-platform {
    flex: 1;
    display: flex;
    align-items: center;
}

.platform-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.windows .platform-icon {
    background-color: rgba(48, 66, 151, 0.1);
    color: #304297;
}

.android .platform-icon {
    background-color: rgba(13, 170, 227, 0.1);
    color: #0daae3;
}

.agent .platform-icon {
    background-color: rgba(114, 100, 168, 0.1);
    color: #7264a8;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.download-actions {
    display: flex;
    align-items: center;
}

.download-btn {
    background-color: #304297;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(48, 66, 151, 0.2);
}

.download-btn i {
    margin-right: 6px;
}

.download-btn:last-child {
    margin-right: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(48, 66, 151, 0.3);
    background-color: #263880;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(48, 66, 151, 0.2);
}

.playstore {
    background-color: #0daae3;
}

.playstore:hover {
    background-color: #0c95c7;
}

.multi-action {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-actions {
        margin-top: 15px;
        width: 100%;
    }
    .multi-action {
        justify-content: space-between;
    }
    .multi-action .download-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}


/* Support Section - Redesenhada */

.support-section {
    margin-bottom: 30px;
}

.support-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid #0daae3;
}

.support-header {
    background: linear-gradient(120deg, #304297, #0daae3);
    padding: 20px 25px;
    color: white;
}

.support-content {
    padding: 25px;
}

.support-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.support-option {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-option i {
    font-size: 24px;
}

.support-option-title {
    font-size: 16px;
    font-weight: 600;
}

.support-option-text {
    font-size: 14px;
    color: #666;
}

.support-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(48, 66, 151, 0.2);
    display: inline-flex;
    align-items: center;
}

.support-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(48, 66, 151, 0.3);
}

.support-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(48, 66, 151, 0.2);
}

@media (max-width: 768px) {
    .support-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .support-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}


/* Estilos para o indicador de carregamento e mensagens de erro */

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.loading-indicator i {
    font-size: 32px;
    color: #0daae3;
    margin-bottom: 16px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #dc3545;
    background-color: #ffe0e3;
    border-radius: 8px;
}

.error-message i {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-message p {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.error-message .error-details {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

.error-actions,
.diagnostic-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.diagnostic-results {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.diagnostic-results h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.diagnostic-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.diagnostic-message.success {
    background-color: #d4edda;
    color: #155724;
}

.diagnostic-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.diagnostic-details {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.diagnostic-details p {
    margin: 8px 0;
    font-size: 14px;
}

.diagnostic-help {
    margin: 15px 0;
    color: #6c757d;
    font-size: 14px;
}


/* Alerta de Contrato Pendente */

.contract-alert {
    background: linear-gradient(to right, #ffefef, #fff6f6);
    border-left: 4px solid #e74a3b;
    margin: 0 0 20px 0;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 239, 239, 0.9), rgba(255, 246, 246, 0));
    z-index: 1;
}

.alert-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(231, 74, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.alert-icon i {
    font-size: 28px;
    color: #e74a3b;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    color: #e74a3b;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.alert-content p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 15px;
}

.alert-actions {
    margin-top: 10px;
}

.btn-sign-contract {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #e74a3b, #ff6b5b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(231, 74, 59, 0.3);
}

.btn-sign-contract i {
    margin-right: 8px;
}

.btn-sign-contract:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 74, 59, 0.4);
    background: linear-gradient(to right, #d4382a, #ff5a47);
    color: white;
}

.btn-sign-contract:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contract-alert {
        flex-direction: column;
        text-align: center;
    }
    .alert-icon {
        margin: 0 0 15px 0;
    }
}


/* Estilo para os anexos de múltiplos arquivos */

.attachments-container {
    margin-bottom: 10px;
}

.file-attachment-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.file-attachment-row input[type="file"] {
    flex: 1;
}

.file-attachment-row .remove-attachment {
    margin-left: 10px;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.add-attachment-btn {
    display: inline-flex;
    align-items: center;
    color: #0056b3;
    background: none;
    border: 1px dashed #0056b3;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.add-attachment-btn i {
    margin-right: 8px;
}

.add-attachment-btn:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.hidden-attachment {
    display: none;
}


/* Estilos para anexos na visualização de chamados */

.ticket-attachments {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.ticket-attachments h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.attachment-item:hover {
    background-color: #e9ecef;
}

.attachment-item i {
    color: #6c757d;
    margin-right: 8px;
    font-size: 16px;
}

.attachment-item a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    word-break: break-word;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.tickets-filter {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.tickets-filter select {
    min-width: 200px;
}

.ticket-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.ticket-reply-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.ticket-reply-actions .btn-outline {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.ticket-reply-actions .btn-outline:hover {
    background-color: #dc3545;
    color: white;
}


/* Estilos personalizados para a área do cliente */


/* Estilos para o botão de exclusão de mensagens */

.message-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-delete-message {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 3px 8px;
    border-radius: 3px;
}

.btn-delete-message:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
}

.ticket-message:hover .btn-delete-message {
    opacity: 1;
}


/* Inicialmente esconder o botão até o hover */

.ticket-message .btn-delete-message {
    opacity: .2;
}


/* Estilos para mensagem de chamado encerrado */

.ticket-closed-message {
    margin: 15px 0;
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1em;
}