279 lines
4.3 KiB
CSS
279 lines
4.3 KiB
CSS
/* Estilos do modal */
|
|
.modal-overlay {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 9999;
|
|
}
|
|
|
|
.modal-container {
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
width: 400px;
|
|
max-width: 90%;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
animation: modal-appear 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes modal-appear {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.9) translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-header-success {
|
|
background-color: #1e3a8a !important;
|
|
}
|
|
|
|
.modal-header-error {
|
|
background-color: #dc3545 !important;
|
|
}
|
|
|
|
.modal-title {
|
|
color: #fff;
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.modal-close-button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 20px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.modal-close-button:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 25px 20px;
|
|
}
|
|
|
|
.modal-message {
|
|
color: #111;
|
|
font-size: 1.1rem;
|
|
margin: 0;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding: 15px 20px;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.modal-button {
|
|
border: none;
|
|
padding: 8px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-button-success {
|
|
background-color: #1e3a8a;
|
|
color: #fff;
|
|
}
|
|
|
|
.modal-button-success:hover {
|
|
background-color: #1e3a8a;
|
|
}
|
|
|
|
.modal-button-error {
|
|
background-color: #dc3545;
|
|
color: #fff;
|
|
}
|
|
|
|
.modal-button-error:hover {
|
|
background-color: #c82333;
|
|
}
|
|
|
|
.page-heading {
|
|
margin-bottom: 2rem;
|
|
padding: 1rem 0;
|
|
border-bottom: 1px solid #eaeaea;
|
|
}
|
|
|
|
.page-heading h3 {
|
|
color: #333;
|
|
font-size: 1.75rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.page-content {
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.page-content section {
|
|
margin: 0;
|
|
}
|
|
|
|
.page-content .row {
|
|
margin: 0;
|
|
}
|
|
|
|
.page-content .col-12 {
|
|
padding: 0;
|
|
}
|
|
|
|
.loading-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9998;
|
|
}
|
|
|
|
.loading-spinner {
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #3498db;
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.modal-close-button:focus,
|
|
.modal-button:focus {
|
|
outline: 2px solid #0056b3;
|
|
outline-offset: 2px;
|
|
}
|
|
.modal-overlay .modal-container .modal-header.modal-header-success {
|
|
background-color: #1e3a8a !important;
|
|
}
|
|
|
|
.modal-overlay .modal-container .modal-header.modal-header-error {
|
|
background-color: #dc3545 !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.modal-container {
|
|
width: 95%;
|
|
margin: 1rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.modal-message {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.page-heading h3 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.page-content {
|
|
padding: 1.5rem;
|
|
margin: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.modal-header {
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 15px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.page-content {
|
|
padding: 1rem;
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
.page-heading {
|
|
margin-bottom: 1.5rem;
|
|
padding: 0.75rem 0;
|
|
}
|
|
|
|
.page-heading h3 {
|
|
font-size: 1.35rem;
|
|
}
|
|
}
|
|
|
|
@media (prefers-contrast: high) {
|
|
.modal-container {
|
|
border: 2px solid #000;
|
|
}
|
|
|
|
.modal-header-success {
|
|
background-color: #1e3a8a !important;
|
|
}
|
|
|
|
.modal-header-error {
|
|
background-color: #8b0000 !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.modal-container {
|
|
animation: none;
|
|
}
|
|
|
|
.modal-button:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.loading-spinner {
|
|
animation-duration: 2s;
|
|
}
|
|
} |