/**
 * MetaSlider Lightbox - Admin Styles
 *
 * All administrative interface styles for the MetaSlider Lightbox plugin
 */

/* ==========================================================================
   ADMIN HEADER STYLES
   ========================================================================== */

.ml-lightbox-header {
    background: linear-gradient(135deg, #dd6923 0%, #b8571c 100%);
    color: white;
    padding: 30px;
    margin: 0 -20px 30px -20px;
    position: relative;
    overflow: hidden;
}

.ml-lightbox-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.ml-lightbox-header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.ml-lightbox-header h1 {
    color: white;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ml-lightbox-header p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.ml-lightbox-header .version {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 15px;
}

/* ==========================================================================
   ADMIN NAVIGATION STYLES
   ========================================================================== */

.ml-lightbox-nav {
    background: white;
    border-bottom: 1px solid #ccd0d4;
    margin: 0 -20px 20px -20px;
    padding: 0 20px;
}

.ml-lightbox-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.ml-lightbox-nav li {
    margin: 0;
}

.ml-lightbox-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.ml-lightbox-nav a:hover {
    color: #0073aa;
    background: #f8f9fa;
}

.ml-lightbox-nav a.current {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #f8f9fa;
}

/* ==========================================================================
   ADMIN CONTENT STYLES
   ========================================================================== */
.ml-lightbox-wrap {
    margin: 0;
}
.ml-lightbox-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ml-lightbox-content .card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.ml-lightbox-content .card h2 {
    margin-top: 0;
    color: #23282d;
    font-size: 1.3em;
}

.ml-lightbox-content .card h3 {
    color: #23282d;
    font-size: 1.1em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.ml-lightbox-content .card ul {
    padding-left: 20px;
}

.ml-lightbox-content .card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ==========================================================================
   ADMIN FORMS (FOR FUTURE USE)
   ========================================================================== */

.ml-lightbox-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ml-lightbox-form-table th,
.ml-lightbox-form-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.ml-lightbox-form-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 200px;
    vertical-align: top;
}

.ml-lightbox-form-table td {
    vertical-align: middle;
}

.ml-lightbox-form-table input[type="text"],
.ml-lightbox-form-table input[type="email"],
.ml-lightbox-form-table select,
.ml-lightbox-form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ml-lightbox-form-table input[type="checkbox"] {
    margin-right: 8px;
}

.ml-lightbox-form-table .description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* ==========================================================================
   ADMIN BUTTONS
   ========================================================================== */

.ml-lightbox-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #dd6923 0%, #b8571c 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ml-lightbox-button:hover {
    background: linear-gradient(135deg, #c55a1e 0%, #a14818 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ml-lightbox-button:active {
    transform: translateY(0);
}

.ml-lightbox-button.secondary {
    background: #f1f1f1;
    color: #555;
}

.ml-lightbox-button.secondary:hover {
    background: #e8e8e8;
    color: #333;
}

/* ==========================================================================
   ADMIN NOTICES
   ========================================================================== */
.ml-lightbox-content .notice {
    margin: 0;
}
.ml-lightbox-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
}

.ml-lightbox-notice.success {
    border-left-color: #46b450;
    background: #f0f8f0;
}

.ml-lightbox-notice.warning {
    border-left-color: #ffb900;
    background: #fff8e5;
}

.ml-lightbox-notice.error {
    border-left-color: #dc3232;
    background: #fbeaea;
}

.ml-lightbox-notice p {
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .ml-lightbox-header {
        padding: 20px;
        margin: 0 -10px 20px -10px;
    }

    .ml-lightbox-header h1 {
        font-size: 2em;
    }

    .ml-lightbox-nav {
        margin: 0 -10px 15px -10px;
        padding: 0 10px;
    }

    .ml-lightbox-nav ul {
        flex-direction: column;
    }

    .ml-lightbox-nav a {
        padding: 12px 15px;
        border-bottom: 1px solid #f1f1f1;
        border-right: none;
    }

    .ml-lightbox-nav a.current {
        border-bottom-color: #f1f1f1;
        border-left: 3px solid #0073aa;
    }

    .ml-lightbox-form-table th,
    .ml-lightbox-form-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .ml-lightbox-form-table th {
        background: none;
        font-weight: 600;
        border-bottom: none;
        padding-bottom: 5px;
    }

    .ml-lightbox-form-table td {
        padding-top: 0;
        padding-bottom: 15px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.ml-lightbox-text-center {
    text-align: center;
}

.ml-lightbox-text-right {
    text-align: right;
}

.ml-lightbox-margin-top {
    margin-top: 20px;
}

.ml-lightbox-margin-bottom {
    margin-bottom: 20px;
}

.ml-lightbox-hidden {
    display: none;
}

.ml-lightbox-flex {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ml-lightbox-flex-wrap {
    flex-wrap: wrap;
}

.ml-lightbox-flex-between {
    justify-content: space-between;
}

/* ==========================================================================
   ENHANCED TAB NAVIGATION
   ========================================================================== */

.nav-tab-wrapper {
    border-bottom: none;
    margin: 0 0 20px 0;
    padding: 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-tab {
    position: relative;
    display: inline-block;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 500;
    color: #646970;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
    border-bottom: 3px solid #F5F7F8
}

.nav-tab:hover {
    background: rgba(221, 105, 35, 0.1);
    color: #dd6923;
    border-bottom: 3px solid #BA581C;
}

.nav-tab-active {
	font-weight: bold;
	border-bottom: 3px solid #BA581C;
	color: #BA581C;
}

.nav-tab-active:hover {
    border-bottom: 3px solid #BA581C;
}

.nav-tab-active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #dd6923 0%, #b8571c 100%);
}

/* ==========================================================================
   ENHANCED TAB CONTENT
   ========================================================================== */

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0 !important;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content form {
    max-width: 800px;
}

.tab-content h2 {
    color: #1d2327;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.tab-content .form-table {
    margin-top: 20px;
}

.tab-content .form-table th {
    color: #1d2327;
    font-weight: 600;
    padding: 15px 10px 15px 0;
    width: 200px;
    background: transparent;
    border-radius: 4px 0 0 4px;
}

.tab-content .form-table td {
    padding: 15px 10px 15px 20px;
    vertical-align: top;
    background: white;
    border-radius: 0 4px 4px 0;
    position: relative;
}

.tab-content .form-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.tab-content .form-table tr:last-child {
    border-bottom: none;
}

.tab-content .form-table tr:hover {
    background: rgba(221, 105, 35, 0.02);
}

.tab-content .form-table tr:hover th {
    background: rgba(221, 105, 35, 0.05);
}

.tab-content .form-table tr:hover td {
    background: rgba(221, 105, 35, 0.02);
}

.tab-content .form-table td label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #1d2327;
    transition: color 0.3s ease;
}

.tab-content .form-table td label:hover {
    color: #dd6923;
}

.tab-content .form-table td input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #dd6923;
}

.tab-content .form-table td select {
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.tab-content .form-table td select:focus {
    border-color: #dd6923;
    outline: none;
    box-shadow: 0 0 0 2px rgba(221, 105, 35, 0.1);
}

.tab-content .form-table td .description {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
}

.tab-content .form-table td output {
    position: absolute;
    margin-left: 10px;
    top: 16px;
}

/* ==========================================================================
   ENHANCED SUBMIT BUTTON
   ========================================================================== */

.tab-content .submit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.tab-content .submit .button-primary {
    background: linear-gradient(135deg, #dd6923 0%, #b8571c 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(221, 105, 35, 0.3) !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
}

.tab-content .submit .button-primary:hover {
    background: linear-gradient(135deg, #c55a1e 0%, #a14818 100%) !important;
    box-shadow: 0 4px 8px rgba(221, 105, 35, 0.4) !important;
    transform: translateY(-1px) !important;
}

.tab-content .submit .button-primary:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

/* ==========================================================================
   RESPONSIVE TAB DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .nav-tab {
        padding: 12px 18px;
        font-size: 13px;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-content .form-table th {
        width: auto;
        display: block;
        padding: 10px 0 5px 0;
        background: none;
        border-radius: 0;
    }

    .tab-content .form-table td {
        display: block;
        padding: 5px 0 15px 0;
        background: none;
        border-radius: 0;
    }

    .tab-content .form-table td select {
        min-width: 100%;
    }
}

/* ==========================================================================
   PRO UPGRADE TAB STYLES
   ========================================================================== */

.pro-upgrade-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pro-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
}

.pro-header h2 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
    border: none;
    color: #dd6923;
}

.pro-header p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.pro-features {
    margin-bottom: 40px;
}

.pro-features h3 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
    color: #1d2327;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(221, 105, 35, 0.15);
    border-color: #dd6923;
}

.feature-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.feature-item h4 {
    color: #1d2327;
    font-size: 1.3em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.feature-item p {
    color: #646970;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.pro-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #dd6923;
    position: relative;
    overflow: hidden;
}

.pro-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(221, 105, 35, 0.05) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

.pro-cta h3 {
    color: #1d2327;
    font-size: 2em;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.pro-cta p {
    color: #646970;
    font-size: 1.1em;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.pro-upgrade-btn {
    background: linear-gradient(135deg, #dd6923 0%, #b8571c 100%) !important;
    border: none !important;
    color: white !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(221, 105, 35, 0.4) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 1 !important;
    text-shadow: none !important;
}

.pro-upgrade-btn:hover {
    background: linear-gradient(135deg, #c55a1e 0%, #a14818 100%) !important;
    box-shadow: 0 6px 20px rgba(221, 105, 35, 0.5) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.pro-upgrade-btn:active {
    transform: translateY(0) !important;
}

.pro-guarantee {
    margin-top: 20px !important;
    position: relative;
    z-index: 1;
}

.pro-guarantee small {
    color: #646970;
    font-size: 12px;
    font-style: italic;
}

/* ==========================================================================
   PRO UPGRADE TAB ANIMATIONS
   ========================================================================== */

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   COLOR PICKER FIXES
   ========================================================================== */

/* Fix WordPress color picker clear button alignment */
.wp-picker-container .wp-picker-clear {
    vertical-align: top !important;
    margin-left: 6px !important;
    height: 30px !important;
    line-height: 28px !important;
}

.wp-picker-container .wp-picker-input-wrap {
    vertical-align: top !important;
}

.ml-lightbox-content .wp-picker-input-wrap label {
    display: inline!Important;
}

/* ==========================================================================
   PRO UPGRADE TAB RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .pro-header {
        padding: 20px;
    }

    .pro-header h2 {
        font-size: 2em;
    }

    .pro-header p {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }

    .pro-cta {
        padding: 30px 20px;
    }

    .pro-cta h3 {
        font-size: 1.5em;
    }

    .pro-upgrade-btn {
        padding: 12px 30px !important;
        font-size: 16px !important;
    }
}