Files
projet_gestion_commande/frontend-prep/src/pages/User/ModalSuccess.css
T
2026-03-30 20:02:39 +02:00

367 lines
7.3 KiB
CSS

/* ===== MODAL SUCCESS PROFESSIONAL STYLES ===== */
.modal2-success-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
animation: overlay2FadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
padding: 20px;
}
@keyframes overlay2FadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal2-success-container {
background: var(--surface);
border: 1px solid rgba(124, 58, 237, 0.3);
border-radius: 20px;
padding: 52px 44px;
max-width: 500px;
width: 100%;
text-align: center;
box-shadow:
0 20px 60px rgba(124, 58, 237, 0.3),
inset 0 1px 1px rgba(124, 58, 237, 0.08);
animation: modal2SlideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
overflow: hidden;
}
@keyframes modal2SlideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal2-success-container::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
filter: blur(50px);
}
.modal2-success-icon {
width: 80px;
height: 80px;
margin: 0 auto 28px;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
border: 1.5px solid rgba(124, 58, 237, 0.4);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
color: #7c3aed;
font-weight: 700;
animation: icon2Grow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
box-shadow:
0 0 30px rgba(124, 58, 237, 0.5),
inset 0 1px 1px rgba(255, 255, 255, 0.1);
position: relative;
z-index: 1;
}
@keyframes icon2Grow {
0% {
opacity: 0;
transform: scale(0.8);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.modal2-success-title {
font-size: 28px;
font-weight: 700;
color: #ffffff;
margin: 0 0 32px 0;
text-transform: uppercase;
letter-spacing: 1px;
background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
z-index: 1;
animation: title2FadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s backwards;
}
@keyframes title2FadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal2-success-details {
background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
border: 1px solid rgba(124, 58, 237, 0.3);
border-radius: 14px;
padding: 24px;
margin-bottom: 28px;
display: flex;
flex-direction: column;
gap: 16px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: inset 0 1px 1px rgba(124, 58, 237, 0.1);
position: relative;
z-index: 1;
animation: details2FadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
}
@keyframes details2FadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.detail2-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 15px;
padding: 12px 0;
border-bottom: 1px solid var(--border);
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.detail2-item:last-child {
border-bottom: none;
}
.detail2-item:hover {
background: rgba(124, 58, 237, 0.08);
padding: 12px 12px;
border-radius: 6px;
margin: 0 -12px;
}
.detail2-label {
color: var(--text-muted);
font-weight: 600;
letter-spacing: 0.4px;
text-transform: uppercase;
font-size: 12px;
}
.detail2-value {
color: #7c3aed;
font-weight: 700;
letter-spacing: 0.3px;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.detail2-item:hover .detail2-value {
color: #a78bfa;
}
.detail2-value.price {
font-size: 20px;
color: #7c3aed;
}
.modal2-success-buttons {
display: flex;
gap: 12px;
margin-bottom: 20px;
position: relative;
z-index: 1;
animation: buttons2FadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s backwards;
}
@keyframes buttons2FadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.btn2-continue-shopping {
flex: 1;
padding: 13px 28px;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
border: 1px solid rgba(124, 58, 237, 0.4);
border-radius: 10px;
color: #7c3aed;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
text-transform: uppercase;
letter-spacing: 0.6px;
box-shadow:
0 4px 12px rgba(124, 58, 237, 0.2),
inset 0 1px 1px rgba(255, 255, 255, 0.08);
position: relative;
overflow: hidden;
}
.btn2-continue-shopping::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent 0%, rgba(124, 58, 237, 0.2) 50%, transparent 100%);
transform: translateX(-100%);
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
pointer-events: none;
}
.btn2-continue-shopping:hover {
background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0.15) 100%);
border-color: rgba(124, 58, 237, 0.6);
box-shadow:
0 6px 20px rgba(124, 58, 237, 0.4),
inset 0 1px 1px rgba(255, 255, 255, 0.12);
transform: translateY(-1px);
}
.btn2-continue-shopping:hover::before {
transform: translateX(100%);
}
.btn2-continue-shopping:active {
transform: translateY(0);
}
.btn2-continue-shopping:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.modal2-success-progress {
position: absolute;
bottom: 0;
left: 0;
height: 2px;
background: linear-gradient(90deg, #7c3aed, #a78bfa, transparent);
animation: progress2Bar 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}
@keyframes progress2Bar {
from {
width: 100%;
}
to {
width: 0%;
}
}
/* Mobile responsive */
@media (max-width: 480px) {
.modal2-success-container {
padding: 40px 28px;
border-radius: 18px;
}
.modal2-success-title {
font-size: 24px;
letter-spacing: 0.8px;
}
.modal2-success-icon {
width: 72px;
height: 72px;
font-size: 36px;
margin-bottom: 24px;
}
.modal2-success-details {
padding: 20px;
gap: 14px;
}
.detail2-item {
flex-direction: column;
gap: 8px;
text-align: left;
align-items: flex-start;
padding: 10px 0;
}
.detail2-item:hover {
padding: 10px 0;
margin: 0;
background: transparent;
}
.detail2-label {
font-size: 11px;
}
.detail2-value {
font-size: 15px;
}
.btn2-continue-shopping {
padding: 12px 24px;
font-size: 13px;
letter-spacing: 0.4px;
}
}
@media (max-width: 340px) {
.modal2-success-container {
padding: 32px 20px;
}
.modal2-success-title {
font-size: 20px;
}
.modal2-success-icon {
width: 64px;
height: 64px;
font-size: 32px;
}
}
@media (hover: none) {
.btn2-continue-shopping:hover {
transform: none;
box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.btn2-continue-shopping:hover::before {
transform: translateX(-100%);
}
}