﻿body {
    min-height: 100vh;
    background-color: var(--mud-palette-background-gray);
}

.blue-background {
    background-color: #1a1a2e;
}

#app {
    min-height: 100vh;
    background-color: var(--mud-palette-background-gray);
}

.mud-appbar {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-text-primary) !important;
}

.mud-drawer {
    z-index: 1302 !important;
    background-color: var(--mud-palette-surface) !important;
}

/* DIALOG GLASS BALANCEADO */
.mud-dialog {
    position: relative;
    overflow: visible !important;
    isolation: isolate;
    width: calc(100% - 16px) !important;
    border-radius: 32px !important;
    /* GLASS */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    /* Gradiente com iluminação vindo do canto superior esquerdo */
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(255, 255, 255, 0.05) 100% ) !important;
}

    .mud-dialog::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px; /* espessura da borda */
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.55) 0%, /* topo esquerdo — mais brilhante */
        rgba(255, 255, 255, 0.20) 40%, rgba(255, 255, 255, 0.05) 100% /* baixo direito — some */
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

.mud-dialog-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .mud-dialog-content > .mud-stack {
        flex: 1 1 auto;
        min-height: 0;
    }

.dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px !important;
    box-shadow: var(--mud-elevation-8);
}

.dialog-content-error {
    border-left: 4px solid;
    border-left-color: var(--mud-palette-error);
}

.dialog-scroll-content {
    overflow-y: auto;
    height: 100%;
}

.dialog-actions .mud-button-filled,
.dialog-actions .mud-icon-button,
.dialog-header .mud-icon-button {
    /* GLASS */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    /* Gradiente com iluminação vindo do canto superior esquerdo */
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 60%, rgba(255, 255, 255, 0.10) 100% ) !important;
}

.dialog-actions .mud-icon-button {
    /* Gradiente com iluminação vindo do canto superior esquerdo */
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0.2) 100% ) !important;
}

    .dialog-actions .mud-button-filled:hover,
    .dialog-actions .mud-icon-button:hover
    .dialog-header .mud-icon-button:hover {
        /* GLASS */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Safari support */
        /* Gradiente com iluminação vindo do canto superior esquerdo */
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 60%, rgba(255, 255, 255, 0.15) 100% ) !important;
    }

    .dialog-actions .mud-button-filled:before,
    .dialog-actions .mud-icon-button:before,
    .dialog-header .mud-icon-button:before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px; /* espessura da borda */
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.55) 0%, /* topo esquerdo — mais brilhante */
        rgba(255, 255, 255, 0.20) 40%, rgba(255, 255, 255, 0.05) 100% /* baixo direito — some */
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
    }

.dialog-actions .mud-button-filled-primary {
    background-color: var(--mud-palette-primary) !important;
    overflow: visible; /* ← corta o vazamento nos cantos */
    position: relative; /* garante contexto para o ::before */
    box-shadow: 0 0 0px 0px rgba(130, 177, 255, 0.0);
    transition: box-shadow 0.2s ease;
}

    .dialog-actions .mud-button-filled-primary:hover {
        background-color: var(--mud-palette-primary) !important;
        box-shadow: 0 4px 20px 4px rgba(130, 177, 255, 0.45) !important;
    }

    .dialog-actions .mud-button-filled-primary:before {
        inset: -1px;
        padding: 1px;
        background: linear-gradient( 135deg, #E3F2FDCC 0%, /* topo esquerdo — máximo brilho */
        #E3F2FD55 35%, #E3F2FD1A 100% );
    }

.dialog-actions .mud-button-filled-error {
    background-color: var(--mud-palette-error) !important;
    overflow: visible; /* ← corta o vazamento nos cantos */
    position: relative; /* garante contexto para o ::before */
    box-shadow: 0 0 0px 0px rgba(255, 82, 82, 0.0);
    transition: box-shadow 0.2s ease;
}

    .dialog-actions .mud-button-filled-error:hover {
        background-color: var(--mud-palette-error) !important;
        box-shadow: 0 4px 20px 4px rgba(255, 82, 82, 0.45) !important;
    }

    .dialog-actions .mud-button-filled-error:before {
        inset: -1px;
        padding: 1px;
        background: linear-gradient( 135deg, #FFEBEECC 0%, /* topo esquerdo — máximo brilho */
        #FFEBEE55 35%, #FFEBEE1A 100% );
    }

.overlay-blur {
    background-color: transparent !important;
    backdrop-filter: blur(1px);
    opacity: 1;
}

    .overlay-blur .mud-overlay-dark {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

/* Conteúdo */
.mud-dialog > * {
    position: relative;
    z-index: 2;
}

/* CARDS */
.mud-card.selected {
    outline: solid 2px;
    outline-color: var(--mud-palette-primary)
}

.mud-card.selectable {
    cursor: pointer;
}

    .mud-card.selectable:hover {
        outline: solid 2px;
        outline-color: var(--mud-palette-primary);
        box-shadow: 0 4px 20px 4px rgba(130, 177, 255, 0.45) !important;
        transition: box-shadow 0.2s ease;
    }

/* TEXTO */
.truncate {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.truncate-wrapper {
    min-width: 0;
}
/* UTILS */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%
}

.vh-100 {
    height: 100vh;
}

/* THEME FIXES */
.rz-button {
    text-transform: none;
}