/* WooCommerce-specific styles for Project Operations Dropdown System */

/* ======= CONTAINER STYLES ======= */
.pro-container {
    width: 100%;
    max-width: 500px !important; /* Optimized size for WooCommerce */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 46, 109, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

/* Header styling */
.pro-header {
    background: linear-gradient(90deg, #052E54 0%, #4e4376 100%); /* Updated brand color */
    color: white;
    padding: 18px 25px;
    text-align: center;
    position: relative;
}

.pro-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
              rgba(5,46,84,0.8) 0%, 
              rgba(78,67,118,0.8) 50%, 
              rgba(5,46,84,0.8) 100%);
    filter: blur(10px);
}

.pro-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}



/* Project operations icon for Woocommerce */
.svg-icon--project {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
}

[dir="ltr"] .svg-icon--project {
    left: auto;
    right: 25px;
}

/* Content area */
.pro-content {
    padding: 25px;
    position: relative;
}

/* Content area */
.pro-content {
    padding: 25px;
    position: relative;
}

/* ======= NOTICE BOX ======= */
.pro-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.9rem; /* Slightly larger for better readability */
    color: #555;
    line-height: 1.5;
    border-radius: 4px;
    position: relative;
}

/* RTL notice box */
[dir="rtl"] .pro-notice {
    border-right: 3px solid #4e4376;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

/* LTR notice box */
[dir="ltr"] .pro-notice {
    border-left: 3px solid #4e4376;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #4e4376;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 67, 118, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 67, 118, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 67, 118, 0);
        transform: scale(1);
    }
}

.notice-text {
    flex: 1;
}

/* ======= SELECT FIELDS ======= */
.pro-select-group {
    margin-bottom: 20px;
    position: relative;
}

.pro-select-label {
    display: block;
    margin-bottom: 10px; /* Increased for better spacing */
    font-size: 0.95rem; /* Slightly larger for better readability */
    color: #4e4376;
    font-weight: 500;
}

.pro-select {
    width: 100%;
    padding: 14px 15px; /* Increased padding for better touch targets */
    border: 1px solid #e0e3e9;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
    font-size: 0.95rem; /* Slightly larger for better readability */
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e4376' 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;
    height: 55px; /* Increased height for better readability */
}

/* RTL specific styles */
[dir="rtl"] .pro-select {
    direction: rtl;
    text-align: right;
    background-position: left 15px center;
    padding-right: 15px;
}

/* LTR specific styles */
[dir="ltr"] .pro-select {
    direction: ltr;
    text-align: left;
    background-position: right 15px center;
    padding-left: 15px;
}

.pro-select:focus {
    outline: none;
    border-color: #4e4376;
    box-shadow: 0 0 0 2px rgba(78, 67, 118, 0.1);
    background-color: white;
}

.pro-select:disabled {
    opacity: 0.7;
    pointer-events: none;
    background-color: #f0f2f5;
}

.pro-select option {
    background-color: #ffffff;
    color: #333333;
    padding: 8px 10px;
    height: auto;
}

/* ======= RESULT MESSAGES ======= */
/* Available message */
.pro-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #f0f7f0;
    color: #2e7d32;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #c8e6c9;
    transition: all 0.3s;
    animation: fadeIn 0.5s;
}

/* Coming soon notice */
.pro-result.soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #ffe0b2;
    animation: fadeIn 0.5s;
}

.pro-result p {
    margin: 0;
}

/* Green check icon for available message */
.svg-icon--check {
    width: 24px;
    height: 24px;
    background-color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-icon--check svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======= SVG ICONS ======= */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.svg-icon svg {
    width: 100%;
    height: 100%;
}

/* ======= LOADING ANIMATION ======= */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #4e4376;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ======= LOGO ======= */
.pro-logo {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

/* ======= RESPONSIVE ADJUSTMENTS ======= */
@media (max-width: 768px) {
    .pro-header {
        padding: 15px 20px;
    }
    
    .pro-header h3 {
        font-size: 1rem;
    }
    
    .pro-content {
        padding: 20px;
    }
    
    .pro-select-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .pro-select {
        padding: 12px 15px;
        font-size: 0.9rem;
        height: 50px;
    }
    
    .pro-notice {
        padding: 12px 15px;
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .notice-icon {
        width: 22px;
        height: 22px;
    }
    
    .pro-result,
    .pro-result.soon {
        padding: 12px;
        font-size: 0.9rem;
    }
}
