﻿/* Main Container */
.inl-se-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styling */
.inl-se-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: inlSeSlideUp 0.5s ease-out;
}

@keyframes inlSeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.inl-se-header {
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A2E 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.inl-se-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    backdrop-filter: blur(10px);
    animation: inlSePulse 2s infinite;
}

@keyframes inlSePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.inl-se-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.inl-se-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    color: white;
}

/* Body */
.inl-se-body {
    padding: 40px 30px;
    background: white;
}

/* Step Content */
.inl-se-step-content {
    text-align: center;
}

/* Specific Step Containers */
.inl-se-step-scan,
.inl-se-step-staff,
.inl-se-step-email,
.inl-se-step-pin,
.inl-se-step-complete,
.inl-se-step-details {
    animation: inlSeFadeIn 0.4s ease-out;
}

.inl-se-step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.inl-se-step-title {
    font-size: 24px;
    margin: 0 0 10px;
    color: #2d3748;
}

.inl-se-step-description {
    color: #718096;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Scan Animation */
.inl-se-scan-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .inl-se-scan-animation i {
        font-size: 60px;
        color: #667eea;
        z-index: 2;
    }

.inl-se-scan-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #667eea;
    border-radius: 20px;
    animation: inlSeScanPulse 1.5s infinite;
}

@keyframes inlSeScanPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Input Groups */
.inl-se-input-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.inl-se-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e0;
    z-index: 1;
}

.inl-se-input-field {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    background: white;
}

    .inl-se-input-field:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.inl-se-input-group.inl-se-error .inl-se-input-field {
    border-color: #fc8181;
    background-color: #fff5f5;
}

.inl-se-input-error {
    margin-top: 8px;
    font-size: 13px;
    color: #fc8181;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .inl-se-input-error i {
        font-size: 14px;
    }

/* PIN Input */
.inl-se-pin-container {
    margin-bottom: 30px;
}

.inl-se-pin-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

    .inl-se-pin-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .inl-se-pin-input.inl-se-error {
        border-color: #fc8181;
        background-color: #fff5f5;
    }

.inl-se-pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.inl-se-pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s;
}

    .inl-se-pin-dot.inl-se-filled {
        background: #667eea;
        transform: scale(1.2);
    }

.inl-se-pin-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.inl-se-pin-timer {
    margin-top: 20px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

/* Buttons */
.inl-se-btn-primary, .inl-se-btn-secondary, .inl-se-btn-success, .inl-se-btn-danger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.inl-se-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.inl-se-btn-success {
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
    color: white;
}

.inl-se-btn-danger {
    background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
    color: white;
}

    .inl-se-btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .inl-se-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.inl-se-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.inl-se-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.inl-se-btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inl-se-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

    .inl-se-btn-secondary:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
    }

.inl-se-btn-text {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    transition: all 0.3s;
}

    .inl-se-btn-text:hover {
        color: #764ba2;
        transform: translateX(3px);
    }

.inl-se-btn-large {
    padding: 16px 30px;
    font-size: 16px;
}

/* Spinner */
.inl-se-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: inlSeSpin 0.6s linear infinite;
}

@keyframes inlSeSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.inl-se-success-animation {
    margin-bottom: 30px;
}

.inl-se-success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: inlSeScaleUp 0.5s ease-out;
}

    .inl-se-success-checkmark i {
        font-size: 50px;
        color: white;
    }

@keyframes inlSeScaleUp {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Completion Details */
.inl-se-completion-details {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.inl-se-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .inl-se-detail-item:last-child {
        border-bottom: none;
    }

.inl-se-detail-label {
    font-weight: 600;
    color: #4a5568;
}

.inl-se-detail-value {
    color: #2d3748;
}

/* Toast Notification */
.inl-se-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: inlSeSlideInRight 0.3s ease-out;
    z-index: 1000;
}

@keyframes inlSeSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.inl-se-toast-success {
    border-left: 4px solid #48bb78;
}

.inl-se-toast-error {
    border-left: 4px solid #fc8181;
}

.inl-se-toast-icon {
    font-size: 24px;
}

.inl-se-toast-success .inl-se-toast-icon {
    color: #48bb78;
}

.inl-se-toast-error .inl-se-toast-icon {
    color: #fc8181;
}

.inl-se-toast-content {
    flex: 1;
}

    .inl-se-toast-content p {
        margin: 0;
        color: #2d3748;
        font-size: 14px;
    }

.inl-se-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
}

    .inl-se-toast-close:hover {
        color: #4a5568;
    }

/* Progress Indicator */
.inl-se-progress {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px 30px;
}

.inl-se-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inl-se-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.inl-se-step-marker {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #a0aec0;
    transition: all 0.3s;
}

.inl-se-progress-step.inl-se-active .inl-se-step-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.inl-se-progress-step.inl-se-completed .inl-se-step-marker {
    background: #48bb78;
    color: white;
}

.inl-se-step-label {
    font-size: 11px;
    font-weight: 500;
    color: #a0aec0;
    text-transform: uppercase;
}

.inl-se-progress-step.inl-se-active .inl-se-step-label,
.inl-se-progress-step.inl-se-completed .inl-se-step-label {
    color: #667eea;
}

.inl-se-progress-line {
    height: 2px;
    background: #e2e8f0;
    flex: 1;
    margin: 0 5px;
    transition: all 0.3s;
}

    .inl-se-progress-line.inl-se-filled {
        background: #48bb78;
    }

/* Responsive Design */
@media (max-width: 640px) {
    .inl-se-card {
        border-radius: 24px;
    }

    .inl-se-header {
        padding: 30px 20px;
    }

    .inl-se-title {
        font-size: 24px;
    }

    .inl-se-body {
        padding: 30px 20px;
    }

    .inl-se-step-title {
        font-size: 20px;
    }

    .inl-se-pin-actions {
        flex-direction: column;
    }

    .inl-se-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .inl-se-progress-steps {
        gap: 10px;
    }

    .inl-se-step-label {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .inl-se-card {
        background: #1a202c;
    }

    .inl-se-body {
        background: #1a202c;
    }

    .inl-se-step-title {
        color: #f7fafc;
    }

    .inl-se-step-description {
        color: #a0aec0;
    }

    .inl-se-input-field {
        background: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }

    .inl-se-input-group.inl-se-error .inl-se-input-field {
        background: #2d3748;
    }

    .inl-se-pin-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }

    .inl-se-completion-details {
        background: #2d3748;
    }

    .inl-se-detail-label {
        color: #cbd5e0;
    }

    .inl-se-detail-value {
        color: #f7fafc;
    }

    .inl-se-pin-timer {
        background: #2d3748;
        color: #cbd5e0;
    }

    .inl-se-btn-secondary {
        background: #1a202c;
    }

    .inl-se-progress {
        background: #1a202c;
        border-top-color: #2d3748;
    }

    .inl-se-toast {
        background: #2d3748;
    }

    .inl-se-toast-content p {
        color: #f7fafc;
    }
}

/* Button Groups */
.inl-se-button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

    .inl-se-button-group .inl-se-btn-primary,
    .inl-se-button-group .inl-se-btn-secondary {
        flex: 1;
    }

/* PIN Footer */
.inl-se-pin-footer {
    margin-top: 20px;
    text-align: center;
}

/* Transaction ID Styling */
.inl-se-transaction-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    .inl-se-transaction-id {
        background: #2d3748;
        color: #90cdf4;
    }
}

/* Step Marker with Icons */
.inl-se-step-marker i {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .inl-se-button-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Security Notice */
.inl-se-security-notice {
    margin-top: 20px;
    padding: 12px;
    background: #ebf8ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #2c5282;
}

.inl-se-step-hint {
    font-size: 12px;
    color: #718096;
    margin-top: -20px;
    margin-bottom: 20px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .inl-se-security-notice {
        background: #2d3748;
        color: #90cdf4;
    }
}

/* Select Dropdown Styling */
.inl-se-select-field {
    width: 100%;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    margin-top:19px;
}

    .inl-se-select-field:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.inl-se-input-group.inl-se-error .inl-se-select-field {
    border-color: #fc8181;
    background-color: #fff5f5;
}

/* Loading state for dropdown */
.inl-se-select-field:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .inl-se-select-field {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }

        .inl-se-select-field:focus {
            border-color: #667eea;
        }

    .inl-se-input-group.inl-se-error .inl-se-select-field {
        background-color: #2d3748;
    }

    .inl-se-select-field:disabled {
        background-color: #1a202c;
    }
}

/* Loading text and small spinner */
.inl-se-loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    color: #667eea;
    font-size: 14px;
}

.inl-se-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: inlSeSpin 0.6s linear infinite;
}
