/* public/styles/modals/success-modal.css */
.custom-success-popup {
    background: linear-gradient(145deg, #2d1b4e 0%, #191236 50%, #0c091a 100%) !important;
    border: 1px solid rgba(175, 150, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(124, 111, 255, 0.25) !important;
    overflow: visible !important;
}

.custom-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-image-container {
    position: relative;
    margin-bottom: 1.5rem;
    animation: float-success 3.5s ease-in-out infinite;
}

.success-book-cover {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(124, 111, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Subtle glow behind the book */
.success-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(124, 111, 255, 0.4) 0%, rgba(124, 111, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(15px);
}

.success-sparkle {
    position: absolute;
    font-size: 24px;
    z-index: 3;
    animation: sparkle-pulse 2s infinite;
}

.sparkle-1 { top: -15px; right: -20px; animation-delay: 0s; }
.sparkle-2 { bottom: 20px; left: -25px; font-size: 20px; animation-delay: 0.5s; }
.sparkle-3 { top: 40px; left: -20px; font-size: 16px; animation-delay: 1s; }

.success-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-texto, #ffffff);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-texto, #ffffff) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-message {
    font-size: 1rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    margin-bottom: 0;
}

.success-message strong {
    color: #c4b5fd;
    font-weight: 700;
}

.custom-success-confirm-btn {
    background: linear-gradient(135deg, var(--color-primario, #5b4fdd), #7c6fff) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(91, 79, 221, 0.4) !important;
    margin-top: 1.5rem !important;
}

.custom-success-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(91, 79, 221, 0.6) !important;
    filter: brightness(1.1) !important;
}

@keyframes float-success {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes sparkle-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@media (max-width: 600px) {
    .success-book-cover {
        width: 100px;
        height: 150px;
    }
    .success-title { font-size: 1.35rem; }
    .success-message { font-size: 0.95rem; }
    .custom-success-popup {
        padding: 2rem 1.2rem !important;
    }
}

/* --- Delete Modal Custom Styles --- */
.custom-delete-popup {
    background: linear-gradient(145deg, #33121d 0%, #170a10 50%, #0d0508 100%) !important;
    border: 1px solid rgba(255, 60, 100, 0.3) !important;
    border-radius: 20px !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 60, 100, 0.15) !important;
    overflow: visible !important;
}

.custom-delete-icon-wrapper {
    background: rgba(225, 29, 72, 0.15);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.4);
    animation: pulse-danger 2s infinite;
}

.custom-delete-icon-wrapper svg {
    color: #fb7185;
    width: 32px;
    height: 32px;
}

.custom-delete-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fca5a5;
    margin-bottom: 0.5rem;
}

.custom-delete-confirm-btn {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4) !important;
    margin-top: 1.5rem !important;
}

.custom-delete-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6) !important;
    filter: brightness(1.1) !important;
}

.custom-cancel-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    margin-top: 1.5rem !important;
    margin-right: 1rem !important;
}

.custom-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

@keyframes pulse-danger {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.custom-small-popup {
    border-radius: 24px !important;
}

/* --- Info/Already Added Modal Custom Styles --- */
.custom-info-popup {
    background: linear-gradient(145deg, #0f172a 0%, #082f49 50%, #041421 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 20px !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(14, 165, 233, 0.2) !important;
    overflow: visible !important;
}

.custom-info-icon-wrapper {
    background: rgba(56, 189, 248, 0.15);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    animation: pulse-info 2.5s infinite;
}

.custom-info-icon-wrapper svg {
    color: #38bdf8;
    width: 32px;
    height: 32px;
}

.custom-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #bae6fd;
    margin-bottom: 0.5rem;
}

.custom-info-confirm-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
    margin-top: 1.5rem !important;
}

.custom-info-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6) !important;
    filter: brightness(1.1) !important;
}

@keyframes pulse-info {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
