:root {
    --albapharma-primary: #11205E;
    --albapharma-secondary: #3b82f6;
    --albapharma-success: #10b981;
    --albapharma-warning: #f59e0b;
    --albapharma-error: #ef4444;
    --albapharma-text: #1f2937;
    --albapharma-bg: #f3f4f6;
    --albapharma-card-bg: #ffffff;
}

.albapharma-v {
    font-family: 'Outfit', sans-serif;
    max-width: 500px;
    margin: 40px auto;
    background: var(--albapharma-card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--albapharma-text);
    text-align: center;
}

.albapharma-v__header {
    background: var(--albapharma-primary);
    padding: 30px 20px;
    color: white;
}

.albapharma-v__header h2 {
    margin: 10px 0 5px;
    font-weight: 700;
    font-size: 24px;
    color: white !important;
}

.albapharma-v__header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.albapharma-v__body {
    padding: 30px 20px;
}

.albapharma-v__input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.albapharma-v__input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.albapharma-v__input-group input:focus {
    border-color: var(--albapharma-secondary);
    outline: none;
}

.albapharma-v__input-group button {
    background: var(--albapharma-secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.albapharma-v__input-group button:hover {
    background: var(--albapharma-primary);
}

.albapharma-v__divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.albapharma-v__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.albapharma-v__divider span {
    position: relative;
    background: var(--albapharma-card-bg);
    padding: 0 15px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.albapharma-v__btn-secondary {
    width: 100%;
    background: white;
    color: var(--albapharma-primary);
    border: 2px solid var(--albapharma-primary);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.albapharma-v__btn-secondary:hover {
    background: var(--albapharma-primary);
    color: white;
}

.albapharma-v__result {
    padding: 20px;
    border-radius: 12px;
    animation: fadeInUp 0.5s ease-out;
}

.albapharma-v__result .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.albapharma-v__result--success {
    background: #ecfdf5;
    color: #065f46;
}

.albapharma-v__result--success .dashicons {
    color: var(--albapharma-success);
}

.albapharma-v__result--warning {
    background: #fffbeb;
    color: #92400e;
}

.albapharma-v__result--warning .dashicons {
    color: var(--albapharma-warning);
}

.albapharma-v__result--error {
    background: #fef2f2;
    color: #991b1b;
}

.albapharma-v__result--error .dashicons {
    color: var(--albapharma-error);
}

.albapharma-v__info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
}

.albapharma-v__info p {
    margin: 5px 0;
}

.albapharma-v__reset-btn {
    margin-top: 15px;
    background: transparent;
    border: 1px solid currentColor;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.albapharma-v__footer {
    padding: 20px;
    background: #f9fafb;
    font-size: 12px;
    color: #6b7280;
}

.albapharma-v__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--albapharma-secondary);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

#albapharma-qr-reader {
    width: 100% !important;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .albapharma-v {
        margin: 20px 10px;
    }
}