/* CaptchaYar Default Skin - Light & Clean */
.captchayar-container {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.captchayar-container::before {
    content: "Security code";
    position: absolute;
    top: -12px;
    left: 15px;
    background: #4caf50;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.rtl .captchayar-container::before {
    content: "\06A9\062F\0020\0627\0645\0646\06CC\062A\06CC";
    right: 15px;
    left:auto;
}

.captchayar-image {
    border-radius: 8px;
    margin: 10px 0 20px;
    max-width: 100%;
    height: auto;
    background: #f8fafc;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.captchayar-input-container {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.captchayar-input {
    flex: 1;
    min-width: 180px;
    padding: 12px 15px!important;
    border: 1px solid #cbd5e1!important;
    border-radius: 8px!important;
    font-size: 15px!important;
    text-align: center!important;
    height: auto !important;
    background: #ffffff!important;
    transition: all 0.2s ease;
    outline: none!important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03)!important;
    color: #1e293b!important;
}

.captchayar-input:focus {
    border-color: #4caf50!important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15)!important;
}

.captchayar-refresh {
    background: #4caf50!important;
    color: white!important;
    border: none!important;
    padding: 12px 20px!important;
    border-radius: 8px!important;
    cursor: pointer!important;
    font-size: 14px!important;
    font-weight: 600!important;
    transition: all 0.2s ease;
    display: flex!important;
    align-items: center!important;
    gap: 6px;
    min-width: 120px;
    justify-content: center!important;
}

.captchayar-refresh:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.captchayar-refresh:active {
    transform: translateY(0);
}

.captchayar-refresh svg {
    width: 16px;
    height: 16px;
    fill: white;
    transition: transform 0.5s ease;
}

.captchayar-refresh:hover svg {
    transform: rotate(360deg);
}

.captchayar-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    display: none;
    padding: 6px 12px;
    background: rgba(229, 62, 62, 0.08);
    border-radius: 6px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-out;
}

.captchayar-spinner {
    display: inline-block;
    animation: captchayar-spin 0.8s linear infinite;
    transform-origin: center;
}

@keyframes captchayar-spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .captchayar-input-container {
        flex-direction: column;
    }
    
    .captchayar-input,
    .captchayar-refresh {
        width: 100%;
    }
}