/* Modal Moderno de Avisos */
.notice-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
animation: fadeIn 0.3s ease-in-out;
}

.notice-modal-overlay.active {
display: flex;
}

.notice-modal-content {
background: white;
border-radius: 20px;
max-width: 650px;
width: 90%;
max-height: 85vh;
overflow-y: auto;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
}

/* Close Button */
.notice-modal-close {
position: absolute;
top: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.08);
border: none;
width: 44px;
height: 44px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
z-index: 10;
color: #1f2937;
font-size: 24px;
}

.notice-modal-close:hover {
background: rgba(0, 0, 0, 0.15);
transform: rotate(90deg);
}

/* Body - Conteúdo Principal */
.notice-modal-body {
padding: 40px 35px;
}

.notice-modal-body > * {
margin: 0;
}

/* Scrollbar customizado */
.notice-modal-content::-webkit-scrollbar {
width: 8px;
}

.notice-modal-content::-webkit-scrollbar-track {
background: #f1f5f9;
}

.notice-modal-content::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}

.notice-modal-content::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}

/* ===== TEMPLATE: AVISO ===== */
.notice-template-warning {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border-left: 6px solid #f59e0b;
}

.notice-template-warning .notice-modal-body {
padding: 40px 35px;
}

.notice-template-warning h2 {
color: #92400e;
font-size: 28px;
font-weight: 700;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 12px;
}

.notice-template-warning p {
color: #78350f;
font-size: 15px;
line-height: 1.6;
}

/* ===== TEMPLATE: TERMO DE ACEITE ===== */
.notice-template-acceptance {
background: white;
border-top: 6px solid #667eea;
}

.notice-template-acceptance .notice-modal-body {
padding: 40px 35px;
}

.notice-template-acceptance h2 {
color: #1f2937;
font-size: 26px;
font-weight: 700;
margin-bottom: 25px;
}

.notice-acceptance-content {
background: linear-gradient(135deg, #f0f4ff 0%, #f9fafb 100%);
border: 2px solid #e0e7ff;
border-radius: 12px;
padding: 20px;
max-height: 300px;
overflow-y: auto;
margin-bottom: 25px;
font-size: 14px;
line-height: 1.7;
color: #4b5563;
}

.notice-acceptance-content p {
margin: 0 0 15px 0;
}

.notice-acceptance-content p:last-child {
margin-bottom: 0;
}

.notice-acceptance-checkbox {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
cursor: pointer;
}

.notice-acceptance-checkbox input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: #667eea;
}

.notice-acceptance-checkbox label {
cursor: pointer;
color: #374151;
font-weight: 500;
margin: 0;
}

.notice-acceptance-button {
width: 100%;
padding: 14px 24px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
font-weight: 600;
font-size: 15px;
transition: all 0.3s;
}

.notice-acceptance-button:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.notice-acceptance-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

/* ===== TEMPLATE: NOTIFICAÇÃO ===== */
.notice-template-notification {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
border-left: 6px solid #10b981;
}

.notice-template-notification .notice-modal-body {
padding: 35px;
text-align: center;
}

.notice-template-notification .notice-icon {
font-size: 60px;
margin-bottom: 20px;
}

.notice-template-notification h2 {
color: #065f46;
font-size: 26px;
font-weight: 700;
margin-bottom: 12px;
}

.notice-template-notification p {
color: #047857;
font-size: 15px;
line-height: 1.6;
}

/* ===== TEMPLATE: PERSONALIZADO ===== */
.notice-template-custom .notice-modal-body {
padding: 40px 35px;
}

/* Animações */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes slideUp {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

/* Responsivo */
@media (max-width: 768px) {
.notice-modal-content {
width: 95%;
max-height: 90vh;
border-radius: 16px;
}

.notice-modal-body {
padding: 30px 20px;
}

.notice-modal-close {
width: 40px;
height: 40px;
font-size: 20px;
}

.notice-template-warning h2,
.notice-template-acceptance h2,
.notice-template-notification h2 {
font-size: 22px;
}

.notice-template-notification .notice-icon {
font-size: 48px;
}
}
