/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background-color: #111111;
    border-bottom: 1px solid #1f1f1f;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 100%;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #111111;
    border-right: 1px solid #1f1f1f;
    padding: 1.5rem;
    margin: 0;
    overflow-y: auto;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    position: relative;
}

.filter-section h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #4386f3;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    position: relative;
}

.filter-option:hover {
    color: #ffffff;
    background-color: #2a2a2a;
    transform: translateX(4px);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #333333;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.filter-checkbox:checked {
    background-color: #4386f3;
    border-color: #4386f3;
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-option span {
    font-size: 0.85rem;
    color: #cccccc;
    transition: color 0.2s ease;
}

.filter-option:hover span {
    color: #ffffff;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 200px;
    padding-left: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    justify-content: center;
    padding: 0;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 110px;
    height: 45px;
    border-radius: 10px;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #4386f3;
    background-color: #222222;
}

.search-input::placeholder {
    color: #666666;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.search-icon:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #4386f3;
}

.user-name {
    font-size: 0.85rem;
    color: #cccccc;
    font-weight: 500;
    white-space: nowrap;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #4386f3;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-user-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.dropdown-user-email {
    display: block;
    font-size: 0.75rem;
    color: #888888;
}

.premium-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item:hover {
    background-color: #252525;
    color: #ffffff;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.download-count {
    margin-left: auto;
    font-size: 0.7rem;
    color: #888888;
    background-color: #333333;
    padding: 2px 6px;
    border-radius: 4px;
}

.support-item {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.support-item .dropdown-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.support-title {
    font-weight: 500;
    color: #ffffff;
}

.support-subtitle {
    font-size: 0.7rem;
    color: #888888;
}

.dropdown-divider {
    height: 1px;
    background-color: #333333;
    margin: 0.5rem 0;
}

.logout-item {
    color: #ff6b6b;
}

.logout-item:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff8a8a;
}

.btn-login {
    background-color: #4386f3;
    color: white;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: #3574e0;
}

.btn-login:active {
    transform: translateY(0);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-premium {
    background: none;
    border: none;
    color: #5591f3;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.6rem 0.8rem;
}

.btn-premium:hover {
    color: #3574e0;
}


/* Main Container */
.main-container {
    display: flex;
    max-width: 100%;
    margin: 0;
    min-height: calc(100vh - 80px);
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #4386f3;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #404040;
}


.filter-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked {
    background-color: #4386f3;
    border-color: #4386f3;
}

.filter-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-option input[type="checkbox"]:hover {
    border-color: #4386f3;
    background-color: rgba(67, 134, 243, 0.1);
}

/* Content Area */
.content {
    flex: 1;
    padding: 1.5rem;
    background-color: #0a0a0a;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1f1f1f;
    gap: 20px;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background-color: #111111;
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    color: #888888;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background-color: #1a1a1a;
    color: #cccccc;
}

.nav-tab.active {
    background-color: #4386f3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(67, 134, 243, 0.3) !important;
}

/* Forçar estilo para aba de favoritos quando ativa */
.nav-tab[data-type="favoritos"].active {
    background-color: #4386f3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(67, 134, 243, 0.3) !important;
}

/* Estilo especial para o botão Meus Recursos - sempre com fundo ativo */
.nav-tab[data-type="meus-recursos"] {
    background-color: #1a1a1a;
    color: #cccccc;
}

.nav-tab[data-type="meus-recursos"]:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Estilo especial para o botão Home na página Meus Recursos - sempre com fundo ativo */
body.meus-recursos-page .nav-tab[data-type="home"] {
    background-color: #1a1a1a;
    color: #cccccc;
}

body.meus-recursos-page .nav-tab[data-type="home"]:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.nav-tab img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-tab:hover img,
.nav-tab.active img {
    opacity: 1;
}

/* Botões de ação separados */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    background-color: #111111;
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    color: #888888;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-action-btn:hover {
    background-color: #1a1a1a;
    color: #cccccc;
}

.nav-action-btn.active {
    background-color: #4386f3;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(67, 134, 243, 0.3);
}

.nav-action-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-action-btn:hover img,
.nav-action-btn.active img {
    opacity: 1;
}

.content-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888888;
}

#resourceCount {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Estilo especial quando não há recursos */
#resourceCount.no-resources {
    color: #ff6b6b !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mensagem de nenhum recurso na área dos cards */
.no-resources-message {
    grid-column: 1 / -1;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0rem 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
    text-align: left;
}

#resourceCount {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Estilo especial quando não há recursos */
#resourceCount:contains("Nenhum recurso encontrado") {
    color: #ff6b6b !important;
    font-weight: 600;
}

.search-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666;
}

.search-info img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.resource-card {
    background-color: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 380px; /* Mais largo */
}

.resource-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}



.resource-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    padding: 0.8rem;
}

.resource-card:hover .resource-overlay {
    opacity: 1;
}

.btn-view, .btn-favorite, .btn-edit, .btn-delete {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 10;
}

.btn-view {
    left: 0.8rem;
    top: 0.8rem;
}

.btn-favorite {
    right: 0.8rem;
    top: 0.8rem;
}

.btn-edit {
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
}

.btn-delete {
    bottom: 0.8rem;
    right: 0.8rem;
}

.btn-view:hover, .btn-favorite:hover, .btn-delete:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.btn-edit:hover {
    background-color: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.btn-view img, .btn-favorite img, .btn-edit img, .btn-delete img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.btn-edit svg, .btn-delete svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
}

/* Animações para notificações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Página de edição de recursos */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-back {
    background-color: #272727;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: #4287f3;
    transform: translateY(-1px);
}

.edit-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.resource-form {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #272727;
    border: 1px solid #444;
    border-radius: 7px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4287f3;
    box-shadow: 0 0 0 2px rgba(66, 135, 243, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.btn-cancel {
    background-color: #444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #555;
}

.btn-save {
    background-color: #4287f3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background-color: #3b7ae6;
    transform: translateY(-1px);
}

/* Estado favoritado */
.btn-favorite.favorited {
    background-color: #4386f3;
    border-color: #4386f3;
}

.btn-favorite.favorited:hover {
    background-color: #3574e0;
    border-color: #3574e0;
}

/* Modal de visualização de recurso */
.resource-modal-view {
    color: #ffffff;
}

.resource-preview {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.resource-preview-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.resource-info-modal {
    flex: 1;
}

.resource-info-modal p {
    margin: 0.5rem 0;
    color: #cccccc;
    line-height: 1.5;
}

.resource-info-modal strong {
    color: #ffffff;
}

.resource-code-section {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333333;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #222222;
    border-bottom: 1px solid #333333;
}

.code-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.btn-copy-modal {
    background-color: #4386f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-modal:hover {
    background-color: #3574e0;
    transform: translateY(-1px);
}

.code-display {
    background: #1a1a1a;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6e6e6;
    max-height: 400px;
    overflow-y: auto;
}

.code-display::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-display::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.code-display::-webkit-scrollbar-thumb {
    background: #4386f3;
    border-radius: 4px;
}

.code-display::-webkit-scrollbar-thumb:hover {
    background: #3574e0;
}

/* Estilos para abas de código */
.tabbed-code-editor {
    margin-top: 1rem;
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-tab {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: #9ca3af;
    border: none;
}

.code-tab.active {
    color: #f8f8f2;
}

.code-tab:hover:not(.active) {
    color: #d1d5db;
}

.code-tab-content {
    display: none;
}

.code-tab-content.active {
    display: block;
}

/* Syntax highlighting */
.css-property { color: #66d9ef; }
.css-value { color: #a6e22e; }
.css-selector { color: #f92672; }
.css-color { color: #ae81ff; }
.css-colon, .css-semicolon { color: #f8f8f2; }

.html-tag { color: #f92672; }
.html-attr-name { color: #a6e22e; }
.html-attr-value { color: #e6db74; }
.html-equals { color: #f8f8f2; }

.js-keyword { color: #66d9ef; }
.js-string { color: #e6db74; }
.js-comment { color: #75715e; font-style: italic; }

.tabbed-code-editor .code-wrapper {
    display: flex;
    background: #1a1a1a;
    border-radius: 5px;
    border: 1px solid #333;
    max-height: 400px;
    overflow: auto;
}

.tabbed-code-editor .line-numbers {
    background: #1a1a1a;
    color: #6e7681;
    padding: 1rem 0.75rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid #333;
    min-width: 50px;
    white-space: pre;
    flex-shrink: 0;
}

.tabbed-code-editor .code-content {
    background: #1a1a1a !important;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 0;
    overflow: visible;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    white-space: pre;
}

/* Estilo da barra de rolagem do código */
.tabbed-code-editor .code-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tabbed-code-editor .code-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.tabbed-code-editor .code-wrapper::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.tabbed-code-editor .code-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.tabbed-code-editor .code-wrapper::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border-radius: 5px 5px 0 0;
    font-weight: 400;
    border: 1px solid #333;
    border-bottom: none;
}

.code-header .copy-btn {
    background-color: #272727 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    outline: none !important;
    box-shadow: none !important;
}

.code-header .copy-btn:hover {
    background-color: #4287f3 !important;
    transform: translateY(-1px) !important;
}

.copy-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(66, 135, 243, 0.3) !important;
}

.copy-btn:active {
    transform: translateY(0) !important;
}

.code-header .copy-btn i {
    margin-right: 0.25rem !important;
    font-size: 12px !important;
}

.code-header .copy-btn.copied {
    background-color: #4287f3 !important;
}

button.moving-line {
    background-color: #272727 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    outline: none !important;
    box-shadow: none !important;
}

button.moving-line:hover {
    background-color: #4287f3 !important;
    transform: translateY(-1px) !important;
}

button.moving-line:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(66, 135, 243, 0.3) !important;
}

button.moving-line:active {
    transform: translateY(0) !important;
}

button.moving-line i {
    margin-right: 0.25rem !important;
    font-size: 12px !important;
}

button.moving-line.copied {
    background-color: #4287f3 !important;
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .resource-preview {
        flex-direction: column;
        gap: 1rem;
    }
    
    .resource-preview-image {
        width: 100%;
        height: 200px;
    }
    
    .code-tabs {
        flex-wrap: wrap;
    }
    
    .code-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .code-header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .btn-copy-modal {
        align-self: flex-end;
    }
    
    .code-display {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

.resource-info {
    padding: 0.8rem;
    background: #141414;
}

/* Estilo específico para resource-info dentro do modal */
.resource-modal-body .resource-info {
    padding: 0;
    background: none;
}

.resource-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 1rem;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.resource-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.btn-copy {
    background-color: #272727;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background-color: #4287f3;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

/* Container da descrição com botão */
.description-container {
    margin-bottom: 1.5rem;
}

.description-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
}

/* Layout da descrição com botão copiar código */
.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.description-header .description-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.copy-code-btn-inline {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.copy-code-btn-inline:hover {
    background: #0056b3;
}

.copy-code-btn-inline i {
    font-size: 12px;
}

/* Estilos para o modal de confirmação de exclusão */
.delete-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.delete-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.delete-confirmation-content {
    position: relative;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.delete-confirmation-modal.show .delete-confirmation-content {
    transform: scale(1);
}

.delete-confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #404040;
}

.delete-confirmation-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #404040;
    color: #ffffff;
}

.delete-confirmation-body {
    padding: 24px;
    text-align: center;
}

.delete-icon {
    margin-bottom: 16px;
}

.delete-confirmation-body p {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.warning-text {
    color: #ff6b6b !important;
    font-size: 14px !important;
    font-weight: 500;
}

.delete-confirmation-actions {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.cancel-btn, .delete-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: #404040;
    color: #ffffff;
}

.cancel-btn:hover {
    background: #4a4a4a;
}

.delete-btn {
    background: #ff4757;
    color: #ffffff;
}

.delete-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

/* Modal de confirmação específico para exclusão de recursos */
.resource-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.resource-delete-modal.show {
    display: flex;
}

.resource-delete-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.resource-delete-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delete-warning-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-warning-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.delete-header-text h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.delete-header-text p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.resource-delete-body {
    padding: 1.5rem 2rem;
}

.resource-preview-delete {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
}

.resource-preview-image-delete {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.resource-preview-info-delete {
    flex: 1;
    min-width: 0;
}

.resource-preview-title-delete {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-preview-meta-delete {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

.delete-warning-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.delete-warning-message strong {
    color: #ff4757;
}

.resource-delete-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.btn-cancel-delete {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-delete:hover {
    background: #444;
    border-color: #555;
}

.btn-confirm-delete {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #ff3742, #e63946);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-confirm-delete svg {
    width: 16px;
    height: 16px;
}

/* Animação de fade out para mensagens excluídas */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Estilos para o ícone de lixeira */
.delete-message-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.chat-message:hover .delete-message-btn {
    opacity: 1;
    visibility: visible;
}

.delete-message-btn:hover {
    transform: scale(1.1);
}

.delete-message-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ff4757;
    transition: stroke 0.2s ease;
}

.delete-message-btn:hover svg {
    stroke: #ff3742;
}

/* Garantir que a mensagem tenha posição relativa */
.chat-message {
    position: relative;
}

.resource-description-content {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap; /* Preserva quebras de linha e espaços */
    word-wrap: break-word;
}

/* Estilos para preservar formatação do editor WYSIWYG */
.resource-description-content p {
    margin: 0 0 1rem 0;
    white-space: pre-wrap; /* Preserva quebras de linha dentro dos parágrafos */
}

.resource-description-content p:last-child {
    margin-bottom: 0;
}

.resource-description-content br {
    display: block;
    margin: 0.5rem 0;
    content: "";
}

.resource-description-content strong {
    color: #ffffff;
    font-weight: 600;
}

.resource-description-content em {
    font-style: italic;
}

.resource-description-content u {
    text-decoration: underline;
}

.resource-description-content s {
    text-decoration: line-through;
}

.resource-description-content ul,
.resource-description-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #cccccc;
}

.resource-description-content li {
    margin-bottom: 0.3rem;
}

.resource-description-content a {
    color: #4287f3;
    text-decoration: none;
}

.resource-description-content a:hover {
    text-decoration: underline;
}

.description-container .resource-description {
    flex: 1;
    margin: 0;
}

.description-container .btn-copy {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Estilos duplicados removidos - usando apenas os estilos principais */

/* Modal Styles */
.modal:not(#pluginViewModal) {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content:not(.plugin-view-modal) {
    background: linear-gradient(135deg, #1a1a1a, #222222);
    border: 2px solid #404040;
    border-radius: 20px;
    max-width: 320px;
    width: 85%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.2s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    box-sizing: border-box;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}



#addResourceModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px) !important;
    padding: 0 !important;
}

#addResourceModal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: modalFadeIn 0.3s ease !important;
}

#addResourceModal .modal-content {
    max-width: 600px !important;
    width: 90% !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    background: #1a1a1a !important;
    border-radius: 16px !important;
    border: 1px solid #333 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#resourceModal.show {
    display: block !important;
}

#resourceModal .modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 600px !important;
    width: 85% !important;
    max-height: 90vh !important;
    margin: 0 !important;
    animation: resourceModalFadeIn 0.3s ease-out !important;
}

@keyframes resourceModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.resource-modal-content {
    padding: 20px !important;
}

.resource-modal-content img {
    /* Removido efeito hover */
}

/* Novos estilos para o modal redesenhado */
.resource-modal-header {
    margin: -10px -20px 20px -20px;
    position: relative;
}

.resource-image-container {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: 5px 5px 5px 5px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.resource-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.resource-image-container:hover .resource-modal-image {
    transform: scale(1.05);
}

/* Botão de Preview */
.preview-button-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.btn-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(67, 134, 243, 0.3);
    text-decoration: none;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.4);
    background: linear-gradient(135deg, #5a96f5 0%, #4386f3 100%);
}

.btn-preview:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(67, 134, 243, 0.3);
}

.btn-preview svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}



.resource-status-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 2;
}

.status-badge {
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.status-type {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%);
    color: #fff;
}

.status-category {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(28, 117, 48, 0.9) 100%);
    color: #fff;
}

.resource-modal-body {
    padding: 0;
}

.resource-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .resource-image-container {
        height: 180px;
    }
    
    .status-badge {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .resource-status-overlay {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
}



.modal-header {
    padding: 16px 24px 16px 24px;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
    position: relative;
}

.modal-header h2 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 11px;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Form Styles */
.login-form, .register-form { 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
    padding: 0 24px 24px 24px; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 14px;
    font-family: 'Sora', sans-serif;
}

.form-group input {
    padding: 0.9rem 1.2rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4386f3;
    background: #222;
}

.form-group input::placeholder {
    color: #888;
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffffff;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-group textarea {
    padding: 0.9rem 1.2rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4386f3;
    background: #222;
}

.form-group textarea::placeholder {
    color: #888;
}

.btn-submit {
    background: linear-gradient(135deg, #4386f3, #3574e0);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.3);
    margin-top: 0.3rem;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 134, 243, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    font-size: 0.95rem;
    color: #ccc;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #404040;
}

.form-footer a {
    color: #4386f3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: #3574e0;
    text-decoration: underline;
}

.forgot-password-link {
    font-size: 0.9rem !important;
    color: #888 !important;
    font-weight: 400 !important;
}

.forgot-password-link:hover {
    color: #4386f3 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #404040;
    }
    
    .content {
        padding: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-center {
        margin: 0;
        max-width: 100%;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .filter-section {
        margin-bottom: 1.5rem;
    }
}

/* Loading and Animation States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success and Error Messages */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.message.success {
    background-color: #28a745;
    border: none;
    color: white;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.message.info {
    background-color: rgba(67, 134, 243, 0.2);
    border: 1px solid #4386f3;
    color: #4386f3;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a, #222222);
    border: 2px solid #404040;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: #28a745 !important;
    border: none;
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: #ffffff;
}

.toast.success::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 8px;
}

.toast.error::before {
    content: "✕ ";
    font-weight: bold;
    margin-right: 8px;
}

.toast.info::before {
    content: "ℹ ";
    font-weight: bold;
    margin-right: 8px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Auth Page Styles */
.auth-page {
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4386f3, #3574e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Sora', sans-serif;
}

.auth-header p {
    color: #888888;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Sora', sans-serif;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.auth-form .form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Sora', sans-serif;
}

.auth-form .form-group input {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #404040;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    border-color: #4386f3;
    box-shadow: 0 0 0 3px rgba(67, 134, 243, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.auth-form .form-group input::placeholder {
    color: #888;
    font-family: 'Sora', sans-serif;
}

.auth-form .btn-submit {
    background: linear-gradient(135deg, #4386f3, #3574e0);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.3);
    margin-top: 0.5rem;
    width: 100%;
}

.auth-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 134, 243, 0.4);
}

.auth-form .btn-submit:active {
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    font-size: 0.95rem;
    color: #ccc;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #404040;
    font-family: 'Sora', sans-serif;
}

.auth-footer a {
    color: #4386f3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #3574e0;
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: 'Sora', sans-serif;
}

.forgot-password a:hover {
    color: #4386f3;
}

/* Auth Page Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-container {
        padding: 2rem;
        max-width: 100%;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-form .form-group input {
        padding: 0.9rem 1rem;
    }
}

/* Authentication Pages */
.auth-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: brightness(1.1);
}

.auth-header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
}

.auth-header p {
    color: #888888;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
    outline: none;
    border-color: #4386f3;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(67, 134, 243, 0.1);
}

.auth-form input::placeholder {
    color: #666666;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #3574e0 0%, #2a5fc7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 134, 243, 0.3);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

.auth-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-form .btn-loading {
    display: none;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.auth-footer p {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: #4386f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #3574e0;
    text-decoration: underline;
}

/* Message styles for auth pages */
.auth-card .message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-card .message.success {
    background: #28a745;
    color: #ffffff;
    border: none;
}

.auth-card .message.error {
    background: #dc3545;
    color: #ffffff;
    border: none;
}

/* Auth page responsiveness */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-logo {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.4rem;
    }
    
    .auth-logo {
        width: 80px;
    }
}

/* Responsive Design */
/* Breakpoint para telas grandes (Desktop) */
@media (min-width: 1600px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
}

/* Breakpoint para notebooks (1200px - 1599px) */
@media (max-width: 1599px) and (min-width: 1200px) {
    .sidebar {
        width: 220px;
        padding: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .resource-card {
        max-width: 100%;
    }
    
    .filter-section h4 {
        font-size: 0.9rem;
    }
    
    .filter-option label {
        font-size: 0.85rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    /* Padronizar altura de TODAS as abas e elementos do header */
    .nav-tabs, .nav-actions, .user-stats-box {
        gap: 0.35rem;
        padding: 0.2rem;
    }
    
    .nav-tab, .nav-action-btn, .user-stats-box .stat-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        white-space: nowrap;
        min-height: 38px;
        height: 38px;
        display: flex;
        align-items: center;
    }
    
    .nav-tab img, .nav-action-btn img {
        width: 14px;
        height: 14px;
    }
    
    .user-stats-box .stat-item .stat-number,
    .user-stats-box .stat-item .stat-label {
        font-size: 0.8rem;
    }
    
    .content-header {
        gap: 15px;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }
}

/* Breakpoint para notebooks menores (1200px - 1400px) */
@media (max-width: 1400px) and (min-width: 1200px) {
    .nav-tabs, .nav-actions, .user-stats-box {
        gap: 0.3rem;
        padding: 0.2rem;
    }
    
    .nav-tab, .nav-action-btn, .user-stats-box .stat-item {
        padding: 0.55rem 0.65rem;
        font-size: 0.75rem;
        gap: 0.35rem;
        min-height: 36px;
        height: 36px;
    }
    
    .nav-tab img, .nav-action-btn img {
        width: 13px;
        height: 13px;
    }
    
    .user-stats-box .stat-item .stat-number,
    .user-stats-box .stat-item .stat-label {
        font-size: 0.75rem;
    }
    
    .content-header {
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 250px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .header-center {
        margin: 0 1rem;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #1f1f1f;
        padding: 1rem;
    }
    
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .content {
        height: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        margin: 0;
        min-width: auto;
    }
    
    .header-center {
        order: 3;
    }
    
    .header-right {
        order: 2;
        justify-content: center;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .content-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tab {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .nav-action-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #404040 #1a1a1a;
}

/* ===== FLOATING ADD BUTTON ===== */
.floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(67, 134, 243, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(67, 134, 243, 0.6);
    background: linear-gradient(135deg, #3574e0 0%, #2a5fc7 100%);
}

.floating-add-btn:active {
    transform: translateY(0);
}

/* ===== RESOURCE MODAL ===== */
.resource-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.resource-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}



.modal-close {
    position: absolute;
    top: 11px;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 0 24px 24px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label.required::after {
    content: " *";
    color: #ff6b6b;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #4386f3;
    box-shadow: 0 0 0 3px rgba(67, 134, 243, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-group select {
    padding: 16px 40px 16px 16px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #404040;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-family: 'Sora', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-group select:focus {
    outline: none;
    border-color: #404040 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Remove todas as bordas azuis de foco */
input:focus,
textarea:focus,
select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none !important;
    border-color: #404040 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.form-group select option {
    background: #2a2a2a;
    color: #fff;
    padding: 8px;
}

.form-group select optgroup {
    background: #1e1e1e;
    color: #4386f3;
    font-weight: 600;
    font-size: 14px;
}

/* ===== VISIBILITY TOGGLE ===== */
.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: #8B8B8B;
}

.visibility-toggle.admin-mode {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

/* Admin visibility info */
.admin-visibility-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Visibility help text */
.visibility-help {
    margin-top: 8px;
    width: 100%;
}

.visibility-help small {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #404040;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.visibility-toggle span {
    color: #888;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* ===== CATEGORY BUTTONS ===== */
.category-buttons {
    margin-top: 12px;
}

/* ===== PREVIEW LINK CONTROL ===== */
.preview-field {
    display: none; /* Oculto por padrão (aba componentes ativa) */
}

.category-group-title {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
}

.category-btn:hover {
    border-color: #4386f3;
    color: #fff;
    background: #333;
}

.category-btn.active {
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    border-color: #4386f3;
    color: white;
}

/* ===== CATEGORY TABS (Legacy) ===== */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 20px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #4386f3;
    color: #fff;
}

.category-tab.active {
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    border-color: #4386f3;
    color: white;
}

/* ===== RESOURCE TABS ===== */
.resource-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.resource-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.resource-tab img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.resource-tab:hover {
    background: rgba(67, 134, 243, 0.1);
    color: #ccc;
}

.resource-tab:hover img {
    opacity: 0.8;
}

.resource-tab.active {
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 134, 243, 0.3);
}

.resource-tab.active img {
    opacity: 1;
}

/* ===== CODE TABS ===== */
.code-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.code-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
}

.code-tab img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.code-tab svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.code-tab:hover:not(.active) {
    background: rgba(67, 134, 243, 0.1);
    color: #ccc;
}

.code-tab:hover img {
    opacity: 0.8;
}

.code-tab:hover svg {
    opacity: 0.8;
}

.code-tab.active {
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 134, 243, 0.3);
}

.code-tab.active img {
    opacity: 1;
}

.code-tab.active svg {
    opacity: 1;
}

.code-contents {
    position: relative;
}

.code-section {
    display: none;
    margin-bottom: 20px;
}

.code-section.active {
    display: block;
}

.code-section label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
}

.code-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid #333;
    border-radius: 12px;
    color: #fff;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.code-section textarea:focus {
    outline: none;
}

/* ===== MODAL CODE EDITORS ===== */
#codeEditorContainer .code-section {
    display: block !important;
}

.no-code-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid #333;
    border-radius: 12px;
    margin-top: 8px;
    display: flex;               /* Centraliza filhos vertical/horizontal */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-code-message {
    color: #f8f8f2;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Sora', sans-serif;
}

.btn-copy-code {
    background-color: #272727;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;              /* Garante centralização mesmo fora de flex */
}

.btn-copy-code:hover {
    background-color: #4287f3;
    transform: translateY(-1px);
}

.btn-copy-code:active {
    transform: translateY(0);
}

.btn-copy-code i {
    margin-right: 8px;
}

/* Botão específico com classe fairy */
button.fairy {
    padding: 8px 19px !important;
    background-color: #272727 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button.fairy:hover {
    background-color: #4287f3 !important;
    transform: translateY(-1px) !important;
}

button.fairy:active {
    transform: translateY(0) !important;
}

.code-section .code-wrapper {
    display: flex;
    margin-top: 8px;
    border-radius: 12px;
    border: 2px solid #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-height: 120px;
    max-height: 300px;
    overflow: hidden;
}

.code-section .code-wrapper:focus-within {
    border-color: #4386f3;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(67, 134, 243, 0.1);
}

.code-section .line-numbers {
    background: transparent;
    color: #6e7681;
    border-right: 1px solid #333;
    padding: 16px 12px;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    min-width: 40px;
    width: 40px;
    flex-shrink: 0;
    white-space: pre;
}

.code-section .code-content {
    background: transparent !important;
    color: #f8f8f2;
    border: none;
    border-radius: 0;
    padding: 16px;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    min-height: 120px;
    resize: none;
    outline: none;
    box-shadow: none;
    flex: 1;
    margin: 0;
}
}

.code-section textarea::placeholder {
    color: #666;
    font-style: italic;
}

.code-help {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.code-textarea {
    min-height: 120px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #1e1e1e;
    border: 1px solid #333;
}

/* ===== IMAGE UPLOAD ===== */
.upload-area {
    border: 2px dashed #333333;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #4386f3;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #2563eb;
    margin-bottom: 8px;
}

.upload-content p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    font-family: 'Sora', sans-serif;
}

.upload-content span {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.upload-content small {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Quando só há o botão (admin), alinhar à direita */
.form-actions:not(:has(.visibility-toggle)) {
    justify-content: flex-end;
}32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}



.btn-create,
button.btn-create,
#submitResourceBtn {
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Sora', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(67, 134, 243, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    outline: none !important;
    min-height: 48px !important;
    white-space: nowrap !important;
}

.btn-create:hover,
button.btn-create:hover,
#submitResourceBtn:hover {
    background: linear-gradient(135deg, #5a96f5 0%, #4785e2 100%) !important;
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.45) !important;
    transform: translateY(-2px) !important;
}

.btn-create:active,
button.btn-create:active,
#submitResourceBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 10px rgba(67, 134, 243, 0.4) !important;
    background: linear-gradient(135deg, #3574e0 0%, #2a5fc7 100%) !important;
}

.btn-create:focus,
button.btn-create:focus,
#submitResourceBtn:focus {
    outline: 2px solid rgba(67, 134, 243, 0.5) !important;
    outline-offset: 2px !important;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview da imagem */
.image-preview {
    position: relative;
    border: 2px dashed #404040;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #2a2a2a;
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.image-preview .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.image-preview .remove-image:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* ===== UPLOAD TABS ===== */
.upload-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0;
}

.upload-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.upload-tab svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.upload-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.upload-tab.active {
    color: #0b95da;
    background: rgba(11, 149, 218, 0.1);
}

.upload-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0b95da;
}

/* ===== UPLOAD PANELS ===== */
.upload-panel {
    display: none;
}

.upload-panel.active {
    display: block;
}

/* ===== FILES PREVIEW ===== */
.files-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
}

.file-preview-item {
    position: relative;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    background: #333;
    transform: translateY(-2px);
}

.file-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.file-preview-item .file-icon {
    width: 48px;
    height: 48px;
    margin: 1rem auto 0.5rem;
    color: #0b95da;
}

.file-preview-item .file-name {
    font-size: 0.75rem;
    color: #999;
    word-break: break-all;
    margin-top: 0.5rem;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
}

.file-preview-item:hover .remove-file {
    opacity: 1;
}

.file-preview-item .remove-file:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 107, 107, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

/* ===== MODAL ACTIONS ===== */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.btn-secondary {
    padding: 12px 24px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #333;
    border-color: #555;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 134, 243, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== ANIMATIONS ===== */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Regra específica para o modal de login */
#loginModal .modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 400px !important;
    width: 90% !important;
    margin: 0 !important;
    animation: none !important;
}

#loginModal .btn-submit {
    margin-top: 1.7rem !important;
}

#loginModal .form-footer {
    margin-top: 0.8rem !important;
    padding-top: 0.8rem !important;
}

#loginModal .password-input-container input {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

/* Forçar estilos específicos do formulário de login */
#loginModal .login-form {
    gap: 0.5rem !important;
    padding: 0 24px 24px 24px !important;
}

#loginModal .form-group {
    gap: 0.2rem !important;
    margin-bottom: 0 !important;
}

#loginModal .form-group label {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

#loginModal .form-group input {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem !important;
}

#loginModal .form-group input:focus {
    background: #222 !important;
    border-color: #4386f3 !important;
}

/* Estilos para botões do modal de confirmação */
.modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-actions button:first-child:hover {
    background-color: #5a6268 !important;
}

.modal-actions button:last-child:hover {
    background-color: #c82333 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-add-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 16px;
    }
    
    .modal-header {
        padding-bottom: 0;
        margin-bottom: 16px;
    }
    
    .code-tabs {
        flex-wrap: wrap;
    }
    
    .code-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BOTÃO CRIAR RECURSO - FORÇA MÁXIMA ===== */
button[type="submit"]#submitResourceBtn.btn-create,
#addResourceModal button[type="submit"]#submitResourceBtn.btn-create,
.add-resource-modal button[type="submit"]#submitResourceBtn.btn-create {
    padding: 14px 28px !important;
    background: #4386f3 !important;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Sora', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(67, 134, 243, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    outline: none !important;
    min-height: 48px !important;
    white-space: nowrap !important;
}

button[type="submit"]#submitResourceBtn.btn-create:hover,
#addResourceModal button[type="submit"]#submitResourceBtn.btn-create:hover,
.add-resource-modal button[type="submit"]#submitResourceBtn.btn-create:hover {
    background: #5a96f5 !important;
    background: linear-gradient(135deg, #5a96f5 0%, #4785e2 100%) !important;
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* ===== BOTÃO EDITAR RECURSO NO MODAL - FORÇA MÁXIMA ===== */
button[type="submit"]#submitResourceBtn.btn-edit,
#addResourceModal button[type="submit"]#submitResourceBtn.btn-edit,
.add-resource-modal button[type="submit"]#submitResourceBtn.btn-edit {
    padding: 14px 28px !important;
    background: #4386f3 !important;
    background: linear-gradient(135deg, #4386f3 0%, #3574e0 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Sora', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(67, 134, 243, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    outline: none !important;
    min-height: 48px !important;
    white-space: nowrap !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
}

button[type="submit"]#submitResourceBtn.btn-edit:hover,
#addResourceModal button[type="submit"]#submitResourceBtn.btn-edit:hover,
.add-resource-modal button[type="submit"]#submitResourceBtn.btn-edit:hover {
    background: #5a96f5 !important;
    background: linear-gradient(135deg, #5a96f5 0%, #4785e2 100%) !important;
    box-shadow: 0 6px 20px rgba(67, 134, 243, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* ===== MODAL DE CONFIRMAÇÃO DE EXCLUSÃO ===== */
#deleteConfirmModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.8) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}

#deleteConfirmModal.show {
    display: flex !important;
}

#deleteConfirmModal .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    max-width: 400px !important;
    width: 90% !important;
    background: #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

#deleteConfirmModal .modal-actions button {
    transition: all 0.2s ease !important;
}

#deleteConfirmModal .modal-actions button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

#deleteConfirmModal .modal-actions button:first-child:hover {
    background-color: #5a6268 !important;
}

#deleteConfirmModal .modal-actions button:last-child:hover {
    background-color: #c82333 !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 0px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

/* Right content container */
.right-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Stats Box - On the right side */
.user-stats-box {
    display: flex;
    gap: 0.5rem;
    background-color: #111111;
    padding: 0.12rem;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
}

.user-stats-box .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #888888;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-stats-box .stat-item .stat-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a3a3a3;
    line-height: 1;
}

.user-stats-box .stat-item .stat-label {
    font-size: 0.875rem;
    color: #888888;
    font-weight: 500;
}

/* Account Page Styles */
.account-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.page-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    margin: 0;
}

.account-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: #1f2937;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #374151;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.section-header p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* Profile Form */
.profile-form {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #374151;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.change-avatar-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.change-avatar-btn svg {
    width: 20px;
    height: 20px;
}

.profile-form-fields {
    flex: 1;
}

.account-section .form-group {
    margin-bottom: 1.5rem;
}

.account-section .form-group label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.account-section .form-group input {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.account-section .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.account-section .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-save {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background: #2563eb;
}

/* Security Form */
.security-form {
    max-width: 400px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon img,
.stat-icon svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.stat-card .stat-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .right-content {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .user-stats-box {
        padding: 0.2rem;
        gap: 0.3rem;
    }
    
    .user-stats-box .stat-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .user-stats-box .stat-item .stat-number {
        font-size: 0.8rem;
    }
    
    .user-stats-box .stat-item .stat-label {
        font-size: 0.8rem;
    }
    
    /* Account Page Mobile */
    .profile-form {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-form-fields {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .account-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .user-stats-box {
        display: none; /* Hide on very small screens to save space */
    }
    
    .right-content {
        flex-direction: row;
    }
}

/* Estilos para a página Minha Conta */
.account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.account-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Styles */
.profile-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #a3a3a3;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Button Styles */
.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-container {
        padding: 1rem;
    }
    
    .account-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   ESTILOS DOS PLUGINS
   ==================================== */

.plugin-card .resource-content {
    padding: 1.5rem;
}

.plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.plugin-card .resource-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plugin-version {
    background: #007bff;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.plugin-card .resource-description {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plugin-card .resource-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plugin-card .resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.plugin-downloads {
    text-align: left;
}

.plugin-date {
    text-align: right;
}

.btn-download-plugin {
    width: 100%;
    padding: 0.75rem;
    background: #4386f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download-plugin:hover {
    background: #3574e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 134, 243, 0.4);
}

.btn-download-plugin svg {
    width: 16px;
    height: 16px;
}

/* Menu de 3 pontos no card de plugin */
.plugin-menu-card {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.menu-trigger-card {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-trigger-card:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.menu-trigger-card svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.dropdown-menu-card {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 130px;
    display: none;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dropdown-menu-card.active {
    display: block;
}

.dropdown-item-card {
    padding: 0.6rem 0.85rem;
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0.25rem;
}

.dropdown-item-card:hover {
    background: #4386f3;
    color: #fff;
}

.dropdown-item-card svg {
    width: 15px;
    height: 15px;
}

/* Wrapper do modal de plugin - garante centralização perfeita */
#pluginViewModal.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 1rem !important;
    margin: 0 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.plugin-modal-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 1rem !important;
    margin: 0 !important;
    overflow-y: auto !important;
}

/* Modal de visualização de plugin */
.modal-content.plugin-view-modal {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: opacity 0.3s ease !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #1a1a1a, #222222) !important;
    border: 2px solid #404040 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.plugin-view-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.plugin-view-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.plugin-view-image-large {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}

.plugin-view-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plugin-view-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 0 1 auto;
}

.plugin-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.plugin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.plugin-view-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.plugin-version-badge {
    background: #007bff;
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.plugin-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.plugin-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.plugin-meta-item svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.plugin-description-section {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.plugin-description-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.plugin-description-section p {
    color: #ccc;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

.btn-download-plugin-modal {
    padding: 0.75rem 2rem;
    background: #4386f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-download-plugin-modal:hover {
    background: #3574e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(67, 134, 243, 0.4);
}

.btn-download-plugin-modal svg {
    width: 18px;
    height: 18px;
}

/* Responsivo para modal de plugin */
@media (max-width: 768px) {
    .plugin-view-image-large {
        height: 200px;
    }
    
    .plugin-view-content {
        padding: 1.5rem;
    }
    
    .plugin-view-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plugin-header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .btn-download-plugin-modal {
        width: 100%;
    }
    
    .plugin-meta-info {
        gap: 1rem;
    }
}

/* ===== ARQUIVOS ADICIONAIS NO VISUALIZADOR ===== */
.additional-files-section {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #181818;
    border-radius: 8px;
    border: 2px solid #333333;
}

.files-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.files-section-title svg {
    width: 14px;
    height: 14px;
    color: #0b95da;
    stroke-width: 2;
}

.files-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    background: #2a2a2a;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.file-item:hover {
    background: #333;
    border-color: #0b95da;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.file-type {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0.15rem 0.4rem;
    background: #1a1a1a;
    border-radius: 3px;
}

.btn-download-file {
    padding: 0.35rem 0.75rem;
    background: #0b95da;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-download-file:hover {
    background: #0a7ab8;
}

.btn-download-file svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

/* Responsivo */
@media (max-width: 768px) {
    .file-item {
        padding: 0.45rem 0.6rem;
        gap: 0.5rem;
    }
    
    .file-info {
        gap: 0.4rem;
    }
    
    .file-name {
        font-size: 0.7rem;
    }
    
    .file-type {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .btn-download-file {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .additional-files-section {
        padding: 0.6rem 0.75rem;
    }
    
    .files-section-title {
        font-size: 0.7rem;
    }
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #93a2b7;
}

.loading-message .spinner {
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top: 3px solid #3b82f6;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loading-message p {
    margin: 0;
    color: #93a2b7;
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== EDITOR WYSIWYG (QUILL.JS) ===== */
.wysiwyg-editor {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    min-height: 150px;
}

/* Toolbar do Quill */
.ql-toolbar {
    background-color: #2a2a2a !important;
    border-bottom: 1px solid #333 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 8px 12px !important;
}

.ql-toolbar .ql-stroke {
    stroke: #ffffff !important;
}

.ql-toolbar .ql-fill {
    fill: #ffffff !important;
}

.ql-toolbar button {
    color: #ffffff !important;
    border-radius: 4px !important;
    margin: 0 2px !important;
}

.ql-toolbar button:hover {
    background-color: #3a3a3a !important;
}

.ql-toolbar button.ql-active {
    background-color: #4287f3 !important;
}

.ql-toolbar .ql-picker {
    color: #ffffff !important;
}

.ql-toolbar .ql-picker-label {
    color: #ffffff !important;
    border: none !important;
}

.ql-toolbar .ql-picker-label:hover {
    background-color: #3a3a3a !important;
    border-radius: 4px !important;
}

.ql-toolbar .ql-picker-options {
    background-color: #2a2a2a !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.ql-toolbar .ql-picker-item {
    color: #ffffff !important;
}

.ql-toolbar .ql-picker-item:hover {
    background-color: #3a3a3a !important;
}

/* Editor do Quill */
.ql-editor {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 12px 16px !important;
    min-height: 120px !important;
}

.ql-editor.ql-blank::before {
    color: #666 !important;
    font-style: normal !important;
    left: 16px !important;
}

.ql-editor p {
    margin-bottom: 8px !important;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: #ffffff !important;
    margin-bottom: 12px !important;
    margin-top: 8px !important;
}

.ql-editor strong {
    font-weight: 600 !important;
}

.ql-editor a {
    color: #4287f3 !important;
}

.ql-editor ul, .ql-editor ol {
    padding-left: 20px !important;
    margin-bottom: 8px !important;
}

.ql-editor li {
    margin-bottom: 4px !important;
}

/* Container do editor */
.ql-container {
    border: none !important;
    font-family: 'Inter', sans-serif !important;
}

/* Scrollbar personalizada para o editor */
.ql-editor::-webkit-scrollbar {
    width: 6px;
}

.ql-editor::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ql-editor::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.ql-editor::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Responsividade do editor */
@media (max-width: 768px) {
    .ql-toolbar {
        padding: 6px 8px !important;
    }
    
    .ql-toolbar button {
        margin: 0 1px !important;
        padding: 4px !important;
    }
    
    .ql-editor {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* Chat Section Styles */
.chat-section { 
    margin-top: 20px; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
}

/* Remove a borda superior quando não há descrição */
.chat-section.no-description {
    border-top: none;
    margin-top: 20px;
    padding-top: 0;
}

.chat-title {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.chat-container {
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #111;
    border-radius: 8px 8px 0 0;
    min-height: 200px; /* Garantir altura mínima */
}

.chat-placeholder {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.chat-input {
    flex: 1;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
}

.chat-input:focus {
    outline: none;
    border-color: #007bff;
}

.chat-send-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.chat-send-btn:hover {
    background: #0056b3;
}

.chat-message {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    /* Debug: adicionar borda temporária */
    /* border: 1px solid red; */
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.message-content-wrapper {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.message-author {
    color: #4a9eff;
    font-weight: 600;
    font-size: 14px;
}

.message-time {
    color: #888;
    font-size: 12px;
    opacity: 0.8;
}

.message-content {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

/* Layout da descrição com botão copiar código */
.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.description-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.copy-code-btn-inline {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.copy-code-btn-inline:hover {
    background: #0056b3;
}

.copy-code-btn-inline i {
    font-size: 12px;
}