/* Advanced Search Anywhere - Admin CSS */

.awas-admin-wrap {
    margin: 20px 20px 0 2px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.awas-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccd0d4;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.awas-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.awas-logo .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
}

.awas-logo h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
}

.awas-version {
    background: #e4e5e7;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
}

.awas-admin-body {
    display: flex;
    min-height: 600px;
}

.awas-sidebar {
    width: 220px;
    border-right: 1px solid #ccd0d4;
    background: #fcfcfc;
}

.awas-nav-tabs {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.awas-nav-tabs li {
    padding: 12px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #50575e;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.awas-nav-tabs li:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.awas-nav-tabs li.active {
    background: #fff;
    color: #2271b1;
    border-left-color: #2271b1;
    font-weight: 600;
}

.awas-content {
    flex: 1;
    padding: 30px;
    background: #fff;
}

.awas-tab-content {
    animation: fadeIn 0.3s;
}

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

.awas-tab-content h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.awas-form-table th {
    font-weight: 600;
    width: 250px;
}

/* Custom Toggle Switch */
.awas-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.awas-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.awas-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.awas-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .awas-slider {
    background-color: #2271b1;
}

input:focus + .awas-slider {
    box-shadow: 0 0 1px #2271b1;
}

input:checked + .awas-slider:before {
    transform: translateX(22px);
}

.awas-slider.round {
    border-radius: 24px;
}

.awas-slider.round:before {
    border-radius: 50%;
}

/* Custom Checkbox Group */
.awas-checkbox-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Card Style for Index Tab */
.awas-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
    max-width: 500px;
}

.awas-card-body {
    padding: 20px;
}

.awas-status-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.awas-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.awas-badge-success {
    background: #e5f6e8;
    color: #12803b;
}

 / *   Q u e r y   B u i l d e r   U I   * / 
 . a w a s - q u e r y - b u i l d e r   { 
         m a r g i n - b o t t o m :   1 0 p x ; 
 } 
 . a w a s - q b - g r o u p   { 
         m a r g i n - b o t t o m :   1 5 p x ; 
 } 
 . a w a s - q b - r o w   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   1 0 p x ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
 } 
 . a w a s - q b - f i e l d ,   . a w a s - q b - o p e r a t o r   { 
         m i n - w i d t h :   1 5 0 p x ; 
 } 
 . a w a s - q b - v a l u e ,   . a w a s - q b - v a l u e - i n p u t   { 
         f l e x :   1 ; 
         m a x - w i d t h :   2 0 0 p x ; 
 } 
 . a w a s - q b - a n d - b t n ,   . a w a s - q b - o r - b t n   { 
         c o l o r :   # 2 2 7 1 b 1   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   # 2 2 7 1 b 1   ! i m p o r t a n t ; 
         b a c k g r o u n d :   t r a n s p a r e n t   ! i m p o r t a n t ; 
 } 
 . a w a s - q b - a n d - b t n : h o v e r ,   . a w a s - q b - o r - b t n : h o v e r   { 
         b a c k g r o u n d :   # f 0 f 6 f c   ! i m p o r t a n t ; 
 } 
 . a w a s - q b - o r - b t n   { 
         m a r g i n - t o p :   5 p x ; 
 } 
  
 