/*
*
* Admin style goes here
*
*
*/

/* CMB2 styles removed - no longer needed */

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 1px;
    right: 10px;
    width: auto;
}
span.select2-selection.select2-selection--single {
    min-width: 200px;
    position: relative;
}
span.select2-dropdown.select2-dropdown {
    width: 200px !important;
}
span.select2-selection__clear,
input.select2-search__field{
    display: none;
}

/* Carbon Fields and CMB2 styles removed - no longer needed */

/*Posts style css*/
ul.mgpdl-list {
    margin: 0;
    padding: 0;
}

/* Row and Column Grid System */
.mg-cols,
.mgp-row,
.cols {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.mg-cols > [class*="mgp-col"],
.mgp-row > [class*="mgp-col"],
.cols > [class*="mgp-col"] {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Column Widths - 12 Column Grid */
.mgp-col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.mgp-col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mgp-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.mgp-col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.mgp-col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.mgp-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mgp-col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.mgp-col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.mgp-col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.mgp-col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.mgp-col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.mgp-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.mgp-col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

/* Medium Device Columns (default - all devices) */
.mgp-col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.mgp-col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.mgp-col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.mgp-col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.mgp-col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.mgp-col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mgp-col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.mgp-col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.mgp-col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.mgp-col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.mgp-col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.mgp-col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Alignment Utilities */
.mgp-row.align-items-center,
.cols.align-items-center,
.mg-cols.align-items-center {
    align-items: center;
}

.mgp-row.align-items-start,
.cols.align-items-start,
.mg-cols.align-items-start {
    align-items: flex-start;
}

.mgp-row.align-items-end,
.cols.align-items-end,
.mg-cols.align-items-end {
    align-items: flex-end;
}

.mgp-row.justify-content-center,
.cols.justify-content-center,
.mg-cols.justify-content-center {
    justify-content: center;
}

.mgp-row.justify-content-between,
.cols.justify-content-between,
.mg-cols.justify-content-between {
    justify-content: space-between;
}

.mgp-row.justify-content-around,
.cols.justify-content-around,
.mg-cols.justify-content-around {
    justify-content: space-around;
}

.mgp-row.justify-content-end,
.cols.justify-content-end,
.mg-cols.justify-content-end {
    justify-content: flex-end;
}

/* Text Alignment */
.mgp-text-left {
    text-align: left;
}

.mgp-text-center {
    text-align: center;
}

.mgp-text-right {
    text-align: right;
}

/* Margin Utilities */
.mgp-mt-1 { margin-top: 0.25rem; }
.mgp-mt-2 { margin-top: 0.5rem; }
.mgp-mt-3 { margin-top: 1rem; }
.mgp-mt-4 { margin-top: 1.5rem; }
.mgp-mt-5 { margin-top: 3rem; }

.mgp-mb-1 { margin-bottom: 0.25rem; }
.mgp-mb-2 { margin-bottom: 0.5rem; }
.mgp-mb-3 { margin-bottom: 1rem; }
.mgp-mb-4 { margin-bottom: 1.5rem; }
.mgp-mb-5 { margin-bottom: 3rem; }

.mgp-ml-1 { margin-left: 0.25rem; }
.mgp-ml-2 { margin-left: 0.5rem; }
.mgp-ml-3 { margin-left: 1rem; }
.mgp-ml-4 { margin-left: 1.5rem; }
.mgp-ml-5 { margin-left: 3rem; }

.mgp-mr-1 { margin-right: 0.25rem; }
.mgp-mr-2 { margin-right: 0.5rem; }
.mgp-mr-3 { margin-right: 1rem; }
.mgp-mr-4 { margin-right: 1.5rem; }
.mgp-mr-5 { margin-right: 3rem; }

.mgp-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mgp-my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.mgp-ml-auto { margin-left: auto; }
.mgp-mr-auto { margin-right: auto; }

.mgp-ms-2 { margin-left: 0.5rem; }
.mgp-ms-3 { margin-left: 1rem; }

/* Padding Utilities */
.mgp-pt-1 { padding-top: 0.25rem; }
.mgp-pt-2 { padding-top: 0.5rem; }
.mgp-pt-3 { padding-top: 1rem; }
.mgp-pt-4 { padding-top: 1.5rem; }
.mgp-pt-5 { padding-top: 3rem; }

.mgp-pb-1 { padding-bottom: 0.25rem; }
.mgp-pb-2 { padding-bottom: 0.5rem; }
.mgp-pb-3 { padding-bottom: 1rem; }
.mgp-pb-4 { padding-bottom: 1.5rem; }
.mgp-pb-5 { padding-bottom: 3rem; }

.mgp-pl-1 { padding-left: 0.25rem; }
.mgp-pl-2 { padding-left: 0.5rem; }
.mgp-pl-3 { padding-left: 1rem; }
.mgp-pl-4 { padding-left: 1.5rem; }
.mgp-pl-5 { padding-left: 3rem; }

.mgp-pr-1 { padding-right: 0.25rem; }
.mgp-pr-2 { padding-right: 0.5rem; }
.mgp-pr-3 { padding-right: 1rem; }
.mgp-pr-4 { padding-right: 1.5rem; }
.mgp-pr-5 { padding-right: 3rem; }

.mgp-p-1 { padding: 0.25rem; }
.mgp-p-2 { padding: 0.5rem; }
.mgp-p-3 { padding: 1rem; }
.mgp-p-4 { padding: 1.5rem; }
.mgp-p-5 { padding: 3rem; }

/* Display Utilities */
.mgp-d-none { display: none; }
.mgp-d-block { display: block; }
.mgp-d-inline { display: inline; }
.mgp-d-inline-block { display: inline-block; }
.mgp-d-flex { display: flex; }
.mgp-d-inline-flex { display: inline-flex; }

/* Flex Utilities */
.mgp-flex-row { flex-direction: row; }
.mgp-flex-column { flex-direction: column; }
.mgp-flex-wrap { flex-wrap: wrap; }
.mgp-flex-nowrap { flex-wrap: nowrap; }
.mgp-flex-grow-1 { flex-grow: 1; }
.mgp-flex-shrink-0 { flex-shrink: 0; }

/* Width Utilities */
.mgp-w-25 { width: 25%; }
.mgp-w-50 { width: 50%; }
.mgp-w-75 { width: 75%; }
.mgp-w-100 { width: 100%; }
.mgp-w-auto { width: auto; }

/* Height Utilities */
.mgp-h-25 { height: 25%; }
.mgp-h-50 { height: 50%; }
.mgp-h-75 { height: 75%; }
.mgp-h-100 { height: 100%; }
.mgp-h-auto { height: auto; }

/* Gap Utilities */
.mgp-gap-1 { gap: 0.25rem; }
.mgp-gap-2 { gap: 0.5rem; }
.mgp-gap-3 { gap: 1rem; }
.mgp-gap-4 { gap: 1.5rem; }
.mgp-gap-5 { gap: 3rem; }

/* Alert Styles */
.mgp-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.mgp-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mgp-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mgp-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.mgp-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Shadow Utilities */
.mg-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mg-shadow-sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mg-shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Border Utilities */
.mgp-border { border: 1px solid #dee2e6; }
.mgp-border-0 { border: 0; }
.mgp-rounded { border-radius: 0.25rem; }
.mgp-rounded-lg { border-radius: 0.5rem; }
.mgp-rounded-circle { border-radius: 50%; }

/* Responsive Columns */
@media (max-width: 991px) {
    .mgp-col-2,
    .mgp-col-3,
    .mgp-col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .mgp-col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .mgp-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .mgp-col-1,
    .mgp-col-2,
    .mgp-col-3,
    .mgp-col-4,
    .mgp-col-5,
    .mgp-col-6,
    .mgp-col-7,
    .mgp-col-8,
    .mgp-col-9,
    .mgp-col-10,
    .mgp-col-11,
    .mgp-col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .mg-cols,
    .mgp-row,
    .cols {
        margin: 0;
    }
    
    .mg-cols > [class*="mgp-col"],
    .mgp-row > [class*="mgp-col"],
    .cols > [class*="mgp-col"] {
        padding: 0;
    }
    
    .mgp-d-sm-none { display: none; }
    .mgp-d-sm-block { display: block; }
    .mgp-d-sm-flex { display: flex; }
    
    .mgp-text-sm-center { text-align: center; }
}

/* Enhanced Admin Notice Styles with Animation */
.mgadin-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.6s ease-out;
    transition: all 0.3s ease;
}

.mgadin-hero:hover {
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

/* Animated Background Gradient */
.mgadin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

/* Content Container */
.mge-info-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.mge-info-hello {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.mge-info-title {
    font-size: 24px;
    display: block;
    line-height: 1.4;
    font-weight: 600;
    color: #1a202c;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mge-info-desc {
    font-size: 16px;
    line-height: 1.5;
    margin: 15px 0 25px;
    color: #4a5568;
}

.mge-info-desc div {
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mge-info-desc div.mge-offer {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 17px;
    padding: 10px 15px;
    border-left: 4px solid #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    animation: pulse 2s infinite, fadeInUp 0.8s ease-out 0.5s both;
}

.mge-info-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.mge-info-actions a.button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mge-info-actions a.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mge-info-actions a.button:hover::before {
    width: 300px;
    height: 300px;
}

.mge-info-actions .upgrade-btn {
    background: linear-gradient(45deg, #007cba, #0096dc);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    animation: buttonBounce 2s infinite;
}

.mge-info-actions .upgrade-btn:hover {
    background: linear-gradient(45deg, #005a87, #007bb5);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    transform: translateY(-2px);
}

.mge-info-actions .demo-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.mge-info-actions .demo-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea379);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.mge-info-actions .mgad-dismiss {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mge-info-actions .mgad-dismiss:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.mge-info-actions .button i {
    margin-left: 15px;
}

/* Keyframe Animations */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes buttonBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mgadin-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .mge-info-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .mge-info-actions a.button {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Enhancement Elements */
.mgadin-hero::after {
    content: '🚀';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Image and Review Styles */
.mge-info-image {
    flex: 0 0 400px;
    overflow: hidden;
    border-radius: 8px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.mge-info-image img {
    max-width: 100%;
    min-width: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mge-info-image img:hover {
    transform: scale(1.05);
}

.mge-info-rev strong {
    margin: 10px 0 1px;
    display: block;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.mge-info-actions.mgerev-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mge-info-rev .button {
    padding: 8px 20px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 15px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}