/* ====================================================================
   Gerencia - Extensões de Estilo & Tokens Visuais (Baseados em style.css)
   ==================================================================== */

:root {
    --tema: rgb(9, 9, 9);
    --primeira-cor: #bc0e93;
    --btn-hover: #a34bab;
    --segunda-cor: rgb(35, 35, 35);
    --transition: .2s ease-in-out;
    --background: rgb(10, 10, 10);
    --red: rgb(222, 22, 22);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-input: #444;
}

/* Containers e Cards */
.g-card {
    background-color: var(--segunda-cor);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 24px;
    position: relative;
}

.g-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Botões */
.g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    color: #fff;
    background-color: var(--primeira-cor);
}

.g-btn:hover:not(:disabled) {
    background-color: var(--btn-hover);
    transform: translateY(-1px);
}

.g-btn:active:not(:disabled) {
    transform: translateY(0);
}

.g-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(40%);
}

.g-btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.g-btn-secondary:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.g-btn-danger {
    background-color: var(--red);
    color: #fff;
}

.g-btn-danger:hover:not(:disabled) {
    background-color: #f02424;
}

.g-btn-outline-danger {
    background-color: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}

.g-btn-outline-danger:hover:not(:disabled) {
    background-color: rgba(222, 22, 22, 0.15);
}

/* Botão Google Especial */
.g-btn-google {
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #ddd;
    font-weight: 500;
    width: 100%;
}

.g-btn-google:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

/* Inputs de Formulário */
.g-input-group {
    margin-bottom: 20px;
    position: relative;
}

.g-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #bbb;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.g-input {
    width: 100%;
    height: 44px;
    background-color: var(--tema);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f0f0f0;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.g-input:focus {
    border-color: var(--primeira-cor);
    box-shadow: 0 0 0 2px rgba(188, 14, 147, 0.25);
}

.g-input::placeholder {
    color: #666;
}

/* Abas de Navegação */
.g-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.g-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #888;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 0;
    height: auto;
    transition: var(--transition);
    white-space: nowrap;
}

.g-tab-btn:hover {
    color: #fff;
    background: transparent;
}

.g-tab-btn.active {
    color: var(--primeira-cor);
    border-bottom-color: var(--primeira-cor);
    background: transparent;
}

.g-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.g-badge-primary {
    background-color: rgba(188, 14, 147, 0.2);
    color: #e660c6;
    border: 1px solid rgba(188, 14, 147, 0.4);
}

.g-badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.g-badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Notificações Toast */
.g-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: 90vw;
    pointer-events: none;
}

.g-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background-color: var(--segunda-cor);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s, transform 0.3s;
}

.g-toast.success { border-left: 4px solid #10b981; }
.g-toast.error   { border-left: 4px solid var(--red); }
.g-toast.warning { border-left: 4px solid #f59e0b; }
.g-toast.info    { border-left: 4px solid #3b82f6; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modais Customizados */
.g-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.g-modal-backdrop.show,
.g-modal-backdrop.active {
    display: flex;
}

.g-modal {
    background-color: var(--segunda-cor);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.g-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.g-modal-body {
    padding: 24px;
}

.g-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Ocultação de Texto com Máscara de Senha */
.secret-masked {
    -webkit-text-security: disc !important;
    text-security: disc !important;
}

.secret-unmasked {
    -webkit-text-security: none !important;
    text-security: none !important;
}

