/* Frontend Styles for Wholesale Customer Manager */

/* استایل بخش ورود */
.wcm-login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.wcm-login-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wcm-login-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.wcm-login-content p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.wcm-login-button {
    margin-top: 20px;
}

.wcm-login-button .digits-login_button {
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wcm-login-button .digits-login_button:hover {
    background: #005a87 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.wcm-notice {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.wcm-notice.wcm-error {
    background-color: #fef7f7;
    border-left-color: #d63638;
    color: #d63638;
}

.wcm-notice.wcm-info {
    background-color: #f7fcfe;
    border-left-color: #72aee6;
    color: #0073aa;
}

.wcm-notice.wcm-success {
    background-color: #f7fff7;
    border-left-color: #00a32a;
    color: #00a32a;
}

/* پیام ثابت برای درخواست‌های ارسال شده */
.wcm-persistent-message {
    background-color: #e7f5ff !important;
    border-left-color: #0073aa !important;
    color: #0073aa !important;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,115,170,0.1);
}

.wcm-request-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.wcm-request-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.wcm-request-form > p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.wcm-field {
    margin-bottom: 25px;
    text-align: left;
}

.wcm-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    text-align: right;
}

.wcm-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wcm-field input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.wcm-field button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.wcm-field button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.wcm-wholesale-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.wcm-wholesale-content h2 {
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 28px;
    display: inline-block;
}

.wcm-wholesale-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

#wcm-message {
    margin-top: 15px;
}

.wholesale-pricing-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-top: 20px;
}

/* Loading state */
.wcm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wcm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: wcm-spin 1s linear infinite;
}

@keyframes wcm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}