* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================
   ICONES SVG GLOBAIS
   ============================================= */
.ico {
    display: inline-block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

.ico-fill {
    fill: currentColor;
    stroke: none;
}

.ico-sm {
    width: 1rem; 
    height: 1rem;
}

.ico-md {
    width: 1.375rem; 
    height: 1.375rem;
}

.ico-lg {
    width: 2rem; 
    height: 2rem;
}

.ico-xl {
    width: 2.75rem;
    height: 2.75rem;
}

.ico-dimension {
    display: inline-block;
    width: 1.875rem;
    height: 1.875rem;
    vertical-align: middle;
    flex-shrink: 0;
    color: var(--color-secondary);
    fill: var(--color-secondary);
    stroke: var(--color-secondary);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background-light);
    color: var(--color-text-primary);
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.all-container {
    max-width: 150rem;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: auto;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.page-content {
    padding: 1.25rem;
}

.painel-container {
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.875rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.125rem solid #e0e0e0;
}

.header h1 {
    color: #333;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-details {
    text-align: right;
}

.user-details p {
    margin: 0.3125rem 0;
    color: #666;
}

.user-details .username {
    font-weight: 600;
    color: #333;
    font-size: 1.125rem;
}

.user-details .role {
    color: #4CAF50;
    font-size: 0.875rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c82333;
}

.btn-action {
    padding: 0.625rem 1.25rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
}

.btn-action:hover {
    background-color: var(--color-primary-light);
}

.btn-action.downloading {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.messages-container {
    margin-bottom: 1.5rem;
}

.message {
    padding: 1.25rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    min-height: 3.5rem;
}

.message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.5rem;
    height: 100%;
    z-index: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }

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

.message-success {
    background-color: #10b981;
    color: var(--color-text-inverse);
    border: 0.125rem solid #059669;
}

.message-success::before {
    background-color: #047857;
}

.message-error {
    background-color: #ef4444;
    color: var(--color-text-inverse);
    border: 0.125rem solid #dc2626;
}

.message-error::before {
    background-color: #b91c1c;
}

.message-warning {
    background-color: #f59e0b;
    color: var(--color-text-inverse);
    border: 0.125rem solid #d97706;
}

.message-warning::before {
    background-color: #b45309;
}

.message-info {
    background-color: #3b82f6;
    color: var(--color-text-inverse);
    border: 0.125rem solid #2563eb;
}

.message-info::before {
    background-color: #1d4ed8;
}

.message span {
    position: relative;
    z-index: 2;
    flex: 1;
}

.message-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-inverse);
    opacity: 0.8;
    padding: 0.25rem 0.5rem;
    margin-left: 1rem;
    line-height: 1;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* TODO: REVER ESSAS CORES PARA TER NA VARIABLES.CSS */