/* Custom styles for Will Bank Portal */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* Input focus styles */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(153, 153, 153, 0.1);
}

.imgMessage{
    width: 60px !important;
    height: 60px !important;
}

.imgMessageFooter{
    width: 180px !important;
    height: 60px !important;
}

.spanDebt{
    color: #7934c4 !important;
    background: #f4edf9 !important;
    border: 1px solid #8e37d2 !important;
}

.bg-will-primary{
    background-color: #231b44 !important;
    color: white !important;
    cursor: pointer !important;
}

.bg-will-primary2{
    background-color: #1A1432 !important;
    color: white !important;
}


/* Custom button animations */
button {
    position: relative;
    overflow: hidden;
}

.bg-will-primary:hover {
    background-color: #321c4e !important;
    color: white !important;
}

button:active {
    transform: translateY(1px);
}

.btn-will-primary {
    background: linear-gradient(135deg, #1A1432, #2e1b47);
    color: #fdfdfd;
    font-weight: 600;
    text-shadow: none;
}

.btn-will-primary:hover {
    background: linear-gradient(135deg, #361f55, #533180) !important;
    color: #fdfdfd;
}

/* Payment option selection */
.payment-option.selected {
    border-color: #90749c !important;
    background-color: #d7c7fe;
    box-shadow: 0 0 0 3px rgba(153, 153, 153, 0.1);
    transition: all 0.2s ease-in-out;
}

/* Debt card styles */
.debt-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.debt-card:hover {
    border-color: #b09dc7;
    box-shadow: 0 10px 25px rgba(153, 153, 153, 0.1);
    transform: translateY(-2px);
}

.debt-card.selected {
    color: #161616 !important;
    background: #f4edf9 !important;
    border: 1px solid #8e37d2 !important;
    box-shadow: 0 0 0 3px rgba(153, 153, 153, 0.1);
}

.debt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #83719b, #6B7280);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.debt-card.selected::before {
    opacity: 1;
}

/* Negotiation option cards */
.negotiation-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.negotiation-option:hover {
    border-color: #361f55;
    box-shadow: 0 10px 25px rgba(68, 68, 68, 0.2);
    transform: translateY(-2px);
}

.negotiation-option.selected {

    background: #f4edf9 !important;
    border: 1px solid #8e37d2 !important;
    box-shadow: 0 0 0 3px rgba(68, 68, 68, 0.2);
}

.negotiation-option .discount-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #361f55, #442868);
    color: #111827;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 8px;
    position: relative;
}

.progress-step.active {
    background-color: #361f55;
    color: #111827;
    font-weight: 700;
}

.progress-step.completed {
    background-color: #10B981;
    color: white;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 16px;
    height: 2px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
}

.progress-step.completed:not(:last-child)::after {
    background-color: #10B981;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

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

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    animation: checkmark 0.6s ease-in-out;
}

/* Loading animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #6b7280;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 #6b7280, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #6b7280, .5em 0 0 #6b7280;
    }
}

/* Form validation styles */
.input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .debt-card,
    .negotiation-option {
        padding: 16px;
    }
    
    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .progress-step:not(:last-child)::after {
        width: 12px;
    }
}

/* Print styles for receipts */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-content,
    .receipt-content * {
        visibility: visible;
    }
    
    .receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    button,
    .no-print {
        display: none !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.alert-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    animation: progressBar 5s linear forwards;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #45c298;
    color: #065F46;
}

.alert-success .alert-progress-bar {
    background-color: #10B981;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #f35858;
    color: #991B1B;
}

.alert-error .alert-progress-bar {
    background-color: #EF4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #F59E0B;
    color: #92400E;
}

.alert-warning .alert-progress-bar {
    background-color: #F59E0B;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3B82F6;
    color: #1E40AF;
}

.alert-info .alert-progress-bar {
    background-color: #3B82F6;
}

.btnCloseAlert {
    margin-left: 12px;
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.btnCloseAlert:hover {
    opacity: 1;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom checkbox styles */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background-color: white;
    position: relative;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: #361f55;
    border-color: #361f55;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Glassmorphism effect for modals */
.glass-modal {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #361f55, #512e80, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating labels */
.floating-label {
    position: relative;
}

.floating-label input {
    padding-top: 20px;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    color: #6B7280;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 12px;
    color: #361f55;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.status-badge.pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.approved {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.rejected {
    background-color: #FEE2E2 !important;
    color: #991B1B !important;
}

.status-badge.processing {
    background-color: #FEF3C7;
    color: #92400E;
}

.barcode {
  max-width: 100%;
  height: auto;
  display: block;
}
