/**
// Copyright upvimeo.com (https://upvimeo.com)
// 2025. All Rights Reserved.
// This file is licensed under the GPLv2 License.
// License text available at https://opensource.org/licenses/gpl-2.0.php
*/

/* --- Modern UI Variables & Reset --- */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {

    --upvimeo-primary: #00ADEF;
    /* Vimeo Blue */
    --upvimeo-primary-hover: #008cc2;
    --upvimeo-bg: #F9FAFB;
    --upvimeo-card-bg: #ffffff;
    --upvimeo-text: #595d69;
    --upvimeo-border: #e2e4e7;
    --upvimeo-radius: 12px;
    --upvimeo-shadow: 0 0 20px 0 rgba(29, 33, 67, .05);
}

.upvimeo-wrap,
.upvimeo-settings-page {
    margin: 20px 20px 0 0;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--upvimeo-text);

}

.upvimeo-settings-page {
    margin-right: 20px;
    max-width: 100%;
}

.upvimeo-wrap h1,
.upvimeo-wrap h2,
.upvimeo-settings-page h2 {
    color: #161c2d;
    font-weight: 700;

    font-size: 24px;
    margin-bottom: 25px !important;
}

/* --- Layout & Grid --- */
.wvv-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: auto;
    float: none;
}

.wvv-col {
    padding: 0 15px;
    box-sizing: border-box;
    float: none;
}

.wvv-col-60 {
    width: 60%;
}

.wvv-col-40 {
    width: 40%;
}

/* Full Width Override for Settings Page */
.upvimeo-settings-page .wvv-col-60,
.upvimeo-settings-page .wvv-col-40,
.upvimeo.upvimeo-settings-page .upvimeo-settings-section {
    width: 100%;
    margin-bottom: 20px;
}

@media(max-width: 960px) {

    .wvv-col-60,
    .wvv-col-40 {
        width: 100%;
    }

    .wvv-mb-20 {
        margin-bottom: 20px;
    }
}

/* --- Modern Card Style --- */
.wvv-box,
.wvv-news-panel,
.instructions .upvimeo-instructions-card,
.wp-block .upvimeo-vimeo-upload-form {
    background: var(--upvimeo-card-bg);
    padding: 30px;
    border-radius: var(--upvimeo-radius);
    box-shadow: var(--upvimeo-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border instead of harsh one */
    margin-bottom: 25px;
    box-sizing: border-box;
}

/* --- Headings --- */
h2.wvv-form-heading {
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
    margin-top: 0;
    color: #2c3338;
}

.wvv-mb-20 {
    margin-bottom: 20px !important;
}

/* --- Forms & Inputs --- */
.form-row {
    margin-bottom: 20px;
}

.form-row>label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.form-row input[type=text],
.form-row input[type=password],
.form-row textarea,
.form-row select,
.tablenav .select2-container .select2-selection--single {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--upvimeo-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: auto;
    font-family: "Sora", sans-serif;
    font-size: 14px;

    transition: all 0.2s ease;
    height: auto;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    line-height: normal;
}

/* Password Toggle Wrapper */
.upvimeo-password-wrapper {
    position: relative;
    width: 100%;
}

.upvimeo-password-wrapper input {
    width: 100% !important;
    padding-right: 40px !important;
    /* Make room for the eye icon */
}

.upvimeo-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #a0aec0;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
    z-index: 2;
}

.upvimeo-password-toggle:hover {
    color: var(--upvimeo-primary);
}


.form-row input[type=text]:focus,
.form-row input[type=password]:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--upvimeo-primary);
    box-shadow: 0 0 0 1px var(--upvimeo-primary);
    outline: none;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkboxes */
.form-row-checkbox {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.form-row-checkbox input[type="checkbox"] {
    margin-top: 0;
    margin-right: 10px;
    transform: scale(1.1);
}

.form-row-checkbox label {
    font-weight: normal !important;
    cursor: pointer;
}

/* Select2 fixes for modern look */
.select2-container .select2-selection--single {
    height: 40px !important;
    border-color: var(--upvimeo-border) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

/* --- API Info Table --- */
.vimeo-api-info {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.vimeo-api-info table {
    width: 100%;
    border-collapse: collapse;
}

.vimeo-api-info tr {
    border-bottom: 1px solid #eee;
}

.vimeo-api-info tr:last-child {
    border-bottom: none;
}

.vimeo-api-info th {
    text-align: left;
    padding: 12px 10px;
    color: #555;
    font-weight: 600;
    width: 30%;
    vertical-align: top;
}

.vimeo-api-info td {
    padding: 12px 10px;
    color: #222;
}

.vimeo-api-info p.wvv-status-green {
    color: #00a32a;
    font-weight: 700;
}

.vimeo-api-info p.wvv-status-red {
    color: #d63638;
    font-weight: 700;
}

.vimeo-api-info p.wvv-status-yellow {
    color: #dba617;
    font-weight: 700;
}

/* --- Buttons --- */
.form-row.with-border {
    border-top: 2px solid #f0f0f1;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.button-primary.upvimeo-settings-save {
    background: var(--upvimeo-primary);
    border-color: var(--upvimeo-primary);
    padding: 8px 10px;
    font-size: 14px;
    height: auto;
    border-radius: 4px;
    transition: background 0.2s;
}

.button-primary.upvimeo-settings-save:hover {
    background: var(--upvimeo-primary-hover);
}

.button-secondary {
    padding: 8px 10px;
    height: auto;
    font-size: 14px;
}

/* --- Styled Fetch Button (Brand) --- */
#upvimeo-fetch-domains-btn {
    background-color: var(--upvimeo-primary);
    color: #fff;
    border: 1px solid var(--upvimeo-primary);
    border-radius: 6px;
    padding: 10px 24px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(62, 100, 222, 0.15);
    text-decoration: none;
    line-height: normal;
}

#upvimeo-fetch-domains-btn:hover {
    background-color: var(--upvimeo-primary-hover);
    border-color: var(--upvimeo-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 100, 222, 0.25);
    color: #fff;
}

#upvimeo-fetch-domains-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

#upvimeo-fetch-domains-btn:focus {
    box-shadow: 0 0 0 3px rgba(62, 100, 222, 0.3);
    outline: none;
}

#upvimeo-fetch-domains-btn .dashicons {
    color: #fff;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin-right: 0;
}

.upvimeo-fetch-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}

/* --- Notices & Problems --- */
.wvv-problems {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    padding: 15px;
    margin-top: 15px;
}

.wvv-problems ol {
    margin: 5px 0 0 20px;
}

/* --- Upload Form (Media Library) --- */
.upvimeo-vimeo-upload-form h4 {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px !important;
}

.upvimeo-progress-bar {
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.upvimeo-progress-bar-inner {
    background: var(--upvimeo-primary);
    transition: width 0.3s ease;
}

.upvimeo-progress-bar-value {
    line-height: 24px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Stats Table --- */
.upvimeo-stats-table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e4e7;
}

.upvimeo-stats-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    border: 1px solid #e2e4e7;
    padding: 12px;
}

.upvimeo-stats-table td {
    border: 1px solid #e2e4e7;
    padding: 12px;
}

/* --- Embed Container --- */
.upvimeo-embed-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Utilities --- */
.upvimeo-clear-selection {
    text-decoration: none;
    color: inherit;
}

.wvv-notice-wrapper {
    max-width: 100%;
    margin-bottom: 20px;
}

.upvimeo-font-weight-normal {
    font-weight: normal !important;
}

/* --- Responsive --- */
@media(max-width: 782px) {
    .wvv-box {
        padding: 20px;
    }

    .vimeo-api-info th,
    .vimeo-api-info td {
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .vimeo-api-info th {
        padding-top: 15px;
    }
}

/* Vimeo Privacy Settings UI */
.upvimeo-privacy-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.upvimeo-privacy-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.upvimeo-privacy-option:hover {
    border-color: #00ADEF;
    /* Vimeo Blue */
    background: #f9f9f9;
}

.upvimeo-privacy-option.selected {
    border-color: #00ADEF;
    background: #f0f9ff;
    box-shadow: 0 0 0 1px #00ADEF;
}

.upvimeo-privacy-option input[type='radio'] {
    margin-top: 4px;
    margin-right: 15px;
}

.upvimeo-privacy-content {
    flex: 1;
}

.upvimeo-privacy-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.upvimeo-privacy-icon {
    margin-right: 8px;
    color: #555;
    font-size: 20px;
}

.upvimeo-privacy-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.upvimeo-privacy-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.upvimeo-privacy-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* --- Library Page Styles --- */
.upvimeo-library-page .wvv-box {
    padding: 0;
    overflow: hidden;
    /* For table border radius */
}

/* Header Actions */
.upvimeo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upvimeo-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upvimeo-header-actions .button-primary,
.upvimeo-header-actions .button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    font-weight: 500;
}

/* Table Styling */
.upvimeo-library-page .wp-list-table {
    border: none;
    box-shadow: none;
    margin: 0;
}

.upvimeo-library-page .wp-list-table thead th,
.upvimeo-library-page .wp-list-table tfoot th {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e4e7;
    border-top: none;
    padding: 15px;
    font-weight: 600;
    color: #555;
}

.upvimeo-library-page .wp-list-table tr:last-child td {
    border-bottom: none;
}

.upvimeo-library-page .wp-list-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.upvimeo-library-page .wp-list-table tr:hover td {
    background: #fcfcfc;
}

.upvimeo-library-page .column-title strong {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--upvimeo-primary);
    margin-bottom: 5px;
    display: block;
}

.upvimeo-library-page .column-title .row-actions {
    visibility: hidden;
    margin-top: 8px;
}

.upvimeo-library-page .column-title:hover .row-actions {
    visibility: visible;
}

/* Thumbnail */
.wvv-thumb-link img {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 120px;
    height: auto;
}

/* Embed Code */
.upvimeo-embed-code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 5px;
  color: #c92a2a;
  word-break: break-all;
  white-space: pre-wrap;
  margin-right: 5px;
}

.upvimeo-copy-embed-code {
  cursor: pointer;
  color: #2271b1;
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1.5;
}

.upvimeo-copy-embed-code:hover {
    color: var(--upvimeo-primary);
}

/* Search Box & Filters */
.upvimeo-library-page .search-box {
    margin-bottom: 20px;
    float: right;
    padding: 20px 20px 0 0;
}

.upvimeo-library-page .tablenav.top {
    padding: 10px 20px;
}

.upvimeo-library-page .tablenav.bottom {
    padding: 10px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.upvimeo-library-page .tablenav .actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Edit Page New Layout (Vimeo Style) --- */

.upvimeo-edit-page-wrapper {
    max-width: 98%;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Header */
.upvimeo-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.upvimeo-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upvimeo-back-link {
    font-size: 14px;
    text-decoration: none;
    color: #555;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s;
}

.upvimeo-back-link:hover {
    color: var(--upvimeo-primary);
}

.upvimeo-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 !important;
    color: #1a1a1a;
}

.upvimeo-permalink-wrapper {
    font-size: 13px;
}

.upvimeo-permalink {
    color: #0073aa;
    text-decoration: none;
}

/* Full Width Player */
/* Full Width Player */
.upvimeo-player-full-width {
    width: 100%;
    background: #000;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

/* Ensure the embed container inside the full-width player responds correctly */
.upvimeo-player-full-width .upvimeo-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.upvimeo-player-full-width .upvimeo-embed-container iframe,
.upvimeo-player-full-width .upvimeo-embed-container object,
.upvimeo-player-full-width .upvimeo-embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Grid System */
.upvimeo-edit-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

@media (max-width: 960px) {
    .upvimeo-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.upvimeo-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: none;
}

.upvimeo-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Form Elements */
.upvimeo-form-group {
    margin-bottom: 25px;
}

.upvimeo-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.upvimeo-input-lg,
.upvimeo-textarea,
.upvimeo-select-full {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.upvimeo-input-lg:focus,
.upvimeo-textarea:focus,
.upvimeo-select-full:focus {
    border-color: var(--upvimeo-primary);
    box-shadow: 0 0 0 3px rgba(62, 100, 222, 0.1);
    outline: none;
}

.upvimeo-form-actions {
    margin-top: 20px;
}

/* Admin Menu Icon Styling */
#toplevel_page_upvimeo .wp-menu-image img {
    padding-top: 5px !important;
    width: 20px !important;
    height: auto !important;
}

/* Buttons */
.button.button-hero {
    font-size: 16px;
    padding: 12px 30px;
    height: auto;
    font-weight: 600;
    border-radius: 4px;
}

.upvimeo-btn-block {
    width: 100%;
    justify-content: center;
    height: 42px !important;
    font-size: 15px !important;
    border-radius: 4px !important;
}

/* Input Group */
.upvimeo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.upvimeo-input-group input {
    flex: 1;
    border: 1px solid #d0d2d3;
    border-radius: 4px;
    padding: 8px 12px;
}

/* Lists */
.privacy-embed-whitelisted-domains-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #eee;
    border-radius: 4px;
}

.privacy-embed-whitelisted-domains-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    margin: 0;
}

.privacy-embed-whitelisted-domains-list li:last-child {
    border-bottom: none;
}

.upvimeo-delete-domain {
    color: #d63638;
    text-decoration: none;
}

.upvimeo-delete-domain:hover {
    color: #a00;
}

/* --- Modern Upload Form UI --- */
.upvimeo-upload-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.upvimeo-upload-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft modern shadow */
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.upvimeo-upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upvimeo-upload-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px;
}

.upvimeo-upload-header p {
    color: #646970;
    font-size: 14px;
    margin: 0;
}

.wvv-video-upload .form-row label {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.wvv-video-upload input[type="text"],
.wvv-video-upload textarea,
.wvv-video-upload select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.wvv-video-upload input[type="text"]:focus,
.wvv-video-upload textarea:focus,
.wvv-video-upload select:focus {
    border-color: var(--upvimeo-primary);
    box-shadow: 0 0 0 1px var(--upvimeo-primary);
    outline: none;
}

.wvv-video-upload textarea {
    min-height: 100px;
    resize: vertical;
}

/* File Input Styling */
.upvimeo-file-input-wrapper {
    background: #f8f9fa;
    border: 2px dashed #dcdcde;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.upvimeo-file-input-wrapper:hover {
    border-color: var(--upvimeo-primary);
    background: #fff;
}

.wvv-video-upload input[type="file"] {
    width: 100%;
}


/* Footer Actions */
.form-row.with-border {
    border-top: 1px solid #f0f0f1;
    padding-top: 25px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    /* Button on right */
}

.upvimeo-btn-primary {
    background: var(--upvimeo-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upvimeo-btn-primary:hover {
    background: var(--upvimeo-primary-hover);
    color: #fff;
}


.upvimeo-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modern SVG Loader */
.upvimeo-modern-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--upvimeo-primary);
    font-weight: 600;
    font-size: 14px;
}

.upvimeo-spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.upvimeo-spinner .path {
    stroke: var(--upvimeo-primary);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.upvimeo-back-link-container {
    text-align: center;
    margin-top: 20px;
}

.upvimeo-back-link-container a {
    color: #646970;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.upvimeo-back-link-container a:hover {
    color: var(--upvimeo-primary);
}

/* Upgrade Notice */
.upvimeo-upgrade-notice {
    background: #fdf6e5;
    border: 1px solid #f0dcbf;
    color: #8a6d3b;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.upvimeo-upgrade-notice p {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
}

/* --- Remote List Table --- */
.upvimeo-remote-list-table .column-image {
    width: 160px;
    vertical-align: top;
}

.upvimeo-remote-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upvimeo-remote-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upvimeo-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.upvimeo-remote-video-thumb:hover .upvimeo-play-overlay {
    opacity: 1;
}

.upvimeo-play-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upvimeo-play-icon:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
    margin-left: 4px;
}

.upvimeo-remote-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.upvimeo-remote-meta {
    font-size: 12px;
    color: #646970;
}

.upvimeo-badge-imported {
    display: inline-block;
    background: #e5e5e5;
    color: #646970;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.upvimeo-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 12px;
    color: #50575e;
}

.upvimeo-privacy-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* --- Modern Tabs (Views) --- */
.upvimeo-wrap .subsubsub {
    float: none;
    margin: 20px 0;
    padding: 0;
    border-bottom: 2px solid #e2e4e7;
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.upvimeo-wrap .subsubsub li {
    margin: 0;
    padding: 0;
    display: block;
}

.upvimeo-wrap .subsubsub a {
    text-decoration: none;
    color: #646970;
    padding: 10px 0;
    display: block;
    line-height: 1;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.upvimeo-wrap .subsubsub a:hover,
.upvimeo-wrap .subsubsub a.current {
    color: var(--upvimeo-primary);
    border-bottom-color: var(--upvimeo-primary);
}

.upvimeo-wrap .subsubsub .count {
    color: #8c8f94;
    font-weight: 400;
    margin-left: 4px;
}

/* Remove pipes */
.upvimeo-wrap .subsubsub li:after {
    display: none;
    /* Hide standard WP pipes */
}


/* --- Modern Buttons --- */
.upvimeo-wrap .button,
.upvimeo-wrap .button-primary,
.upvimeo-wrap .button-secondary {
    border-radius: 4px !important;
    /* Sharp/Slightly rounded */
    padding: 6px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    height: auto !important;
    line-height: normal !important;
    transition: all 0.2s;
    box-shadow: none !important;
    outline: none !important;
}

/* Primary Button Polish */
.upvimeo-wrap .button-primary {
    background: var(--upvimeo-primary) !important;
    border-color: var(--upvimeo-primary) !important;
    color: #fff !important;
}

.upvimeo-wrap .button-primary:hover,
.upvimeo-wrap .button-primary:focus {
    background: var(--upvimeo-primary-hover) !important;
    border-color: var(--upvimeo-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(62, 100, 222, 0.2) !important;
}

/* Secondary/Default Button Polish */
.upvimeo-wrap .button-secondary,
.upvimeo-wrap .button.action {
    background: #fff !important;
    border: 1px solid #dcdcde !important;
    color: #2271b1 !important;
}

.upvimeo-wrap .button-secondary:hover,
.upvimeo-wrap .button.action:hover {
    background: #f6f7f7 !important;
    border-color: #2271b1 !important;
    color: #135e96 !important;
}

/* Import Button Specifics */
.upvimeo-import-video {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #2271b1;
    color: #2271b1;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.upvimeo-import-video:hover {
    background: #f0f6fc;
    border-color: #0a4b78;
    color: #0a4b78;
}

.upvimeo-import-video.disabled {
    opacity: 0.6;
    cursor: default;
    border-color: #ddd;
    color: #aaa;
    background: #f9f9f9;
}

/* --- Enhanced Header Buttons --- */
.upvimeo-header-actions .button-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 20px !important;
    /* Larger click area */
    font-size: 14px !important;
    border-radius: 6px !important;
    /* Softer corners */
    box-shadow: 0 4px 6px rgba(19, 94, 150, 0.2) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.upvimeo-header-actions .button-primary:hover,
.upvimeo-header-actions .button-primary:focus {
    background: linear-gradient(135deg, #0a4b78 0%, #083c61 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(19, 94, 150, 0.3) !important;
}

.upvimeo-header-actions .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(19, 94, 150, 0.2) !important;
}

.upvimeo-header-actions .button-primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: normal;
    /* Fix alignment */
}


/* Enhanced Settings Button */
.upvimeo-header-actions .button-secondary {
    background: #fff !important;
    border: 1px solid #dcdcde !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    height: auto !important;
    transition: all 0.25s ease !important;
    color: #50575e !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.upvimeo-header-actions .button-secondary:hover {
    border-color: #2271b1 !important;
    color: #2271b1 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    background: #fff !important;
}

.upvimeo-header-actions .button-secondary .dashicons {
    transition: transform 0.4s ease;
}

.upvimeo-header-actions .button-secondary:hover .dashicons {
    transform: rotate(90deg);
}

/* --- Upload Page Branding --- */
.upvimeo-text-center {
    text-align: center;
}

.upvimeo-branding-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    display: inline-block;
}

.upvimeo-header-desc {
    max-width: 600px;
    margin: 0 auto;
}

.upvimeo-header-desc p {
    font-size: 16px;
    color: #1d2327;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}

.upvimeo-header-desc .upvimeo-sub-desc {
    font-size: 13px;
    color: #646970;
    margin-bottom: 0;
    font-weight: 400;
}

.wvv-mb-30 {
    margin-bottom: 30px !important;
}

/* Domain Whitelist Styles */
.upvimeo-tags-input-container {
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-height: 40px;
    transition: all 0.2s;
    cursor: text;
}

.upvimeo-tags-input-container:focus-within {
    border-color: var(--upvimeo-primary);
    box-shadow: 0 0 0 1px var(--upvimeo-primary);
}

.upvimeo-tags-list {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.upvimeo-tags-list li {
    background: #eef1f6;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.upvimeo-remove-tag {
    margin-left: 6px;
    cursor: pointer;
    color: #888;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.upvimeo-remove-tag:hover {
    color: #d63638;
}

.upvimeo-new-domain-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 5px !important;
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    margin: 0 !important;
}

.upvimeo-new-domain-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.upvimeo-whitelist-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upvimeo-fetch-spinner {
    float: none;
    margin: 0;
    visibility: hidden;
}

.upvimeo-fetch-spinner.is-active {
    visibility: visible;
}

/* --- MODERN UI ADDITIONS (v2.0) --- */

/* CSS Switch */
.upvimeo-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

.upvimeo-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.upvimeo-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.upvimeo-switch input:checked+.upvimeo-slider {
    background: linear-gradient(135deg, #00ADEF 0%, #007bb5 100%);
}

.upvimeo-switch input:focus+.upvimeo-slider {
    box-shadow: 0 0 1px #00ADEF;
}

.upvimeo-switch input:checked+.upvimeo-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.upvimeo-switch-label-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.upvimeo-switch-text {
    font-weight: 500;
    color: #444;
}

/* API Status Indicator */
.upvimeo-api-status-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    background: #fff;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    vertical-align: middle;
}

.upvimeo-status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.upvimeo-status-dot.connected {
    background-color: #00a32a;
    box-shadow: 0 0 0 2px rgba(0, 163, 42, 0.2);
}

.upvimeo-status-dot.disconnected {
    background-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.2);
}

/* Updated Button Gradients */
.button-primary.upvimeo-settings-save,
#upvimeo-fetch-domains-btn {
    background: linear-gradient(135deg, #00ADEF 0%, #007bb5 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(0, 173, 239, 0.25) !important;
    transition: all 0.3s ease !important;
}

.button-primary.upvimeo-settings-save:hover,
#upvimeo-fetch-domains-btn:hover {
    box-shadow: 0 6px 12px rgba(0, 173, 239, 0.35) !important;
    transform: translateY(-1px);
}

.button-primary.upvimeo-settings-save:active,
#upvimeo-fetch-domains-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 173, 239, 0.2) !important;
}

/* Section Cards (replacing single form box) */
.upvimeo-settings-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}

/* Typography Updates */
.wvv-form-heading {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

/* Select styling enhancement to mimic TomSelect feel */
.upvimeo-select2+.select2-container .select2-selection--single {
    height: 42px !important;
    border-color: #e2e4e7 !important;
    background-color: #fff;
    border-radius: 8px !important;
    padding-top: 6px;
}

/* Select2 Dropdown Premium Styling */
.select2-dropdown {
    border: 1px solid #e2e4e7 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 5px 0;
}

.select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--upvimeo-primary) !important;
    color: white !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e4e7 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

/* Select2 Premium Styling mimicking Vimeo Library */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Softer, slightly larger radius */
    height: 48px;
    /* Taller input for modern feel */
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #00ADEF;
    /* Vimeo Blue */
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #00ADEF;
    box-shadow: 0 0 0 1px rgba(0, 173, 239, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 15px;
    padding-right: 30px;
    color: #1a2e3b;
    /* Darker text */
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    width: 30px;
    right: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

/* Dropdown Results Styling */
.select2-dropdown {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    padding: 8px;
    margin-top: 5px;
    z-index: 99999;
    /* Ensure it floats above */
    overflow: hidden;
}

.select2-results__options {
    padding: 0;
    max-height: 300px;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
    color: #1a2e3b;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #F2F4F7;
    color: #00ADEF;
    font-weight: 500;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #E6F7FF;
    color: #0088CC;
}

/* Library Item Template Styles */
.upvimeo-library-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upvimeo-library-icon {
    color: #7d8b99;
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* Hover/Active states for icon */
.select2-results__option--highlighted .upvimeo-library-icon,
.select2-results__option[aria-selected="true"] .upvimeo-library-icon {
    color: #00ADEF;
}

.upvimeo-library-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Box inside dropdown */
.select2-search--dropdown {
    padding: 8px 12px;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #00ADEF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 173, 239, 0.1);
}

/* Modern Button Styling for Settings Page */

/* Shared Styles for Consistency */
.upvimeo-settings-save.button-primary,
.upvimeo-purge-cache.button-secondary {
    padding: 0 25px !important;
    height: 48px !important;
    /* Proper touch-friendly height */
    line-height: 48px !important;
    /* Perfect vertical centering */
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    /* Modern softer rounding */
    min-width: 180px !important;
    /* Enforce equal width */
    text-align: center;
    justify-content: center;
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

/* Save Button - Primary Action */
.upvimeo-settings-save.button-primary {
    background: linear-gradient(135deg, #00adef 0%, #0093cc 100%) !important;
    /* Subtle depth */
    border: 1px solid transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.25) !important;
    text-shadow: none !important;
}

.upvimeo-settings-save.button-primary:hover,
.upvimeo-settings-save.button-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 173, 239, 0.35) !important;
    background: linear-gradient(135deg, #00baff 0%, #00a0dd 100%) !important;
}

.upvimeo-settings-save.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 173, 239, 0.2) !important;
}

/* Purge Cache Button - Secondary Action */
.upvimeo-purge-cache.button-secondary {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    /* Subtle grey border */
    color: #4b5563 !important;
    /* Slate grey text */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.upvimeo-purge-cache.button-secondary:hover {
    border-color: #00adef !important;
    color: #00adef !important;
    /* Blue on hover to indicate interactivity */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background-color: #f9fafb !important;
}

.upvimeo-purge-cache.button-secondary:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Disabled state */
.upvimeo-purge-cache:disabled,
.upvimeo-settings-save:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Spinner adjustment in button */
.upvimeo-spin {
    margin-right: 8px !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 0 !important;
    /* Fix vertical alignment in flex container */
    animation: upvimeo-spin 1s infinite linear;
}

@keyframes upvimeo-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* ==========================================================================
   UpVimeo Premium Settings UI Enhancements
   ========================================================================== */

/* 1. Card Highlights (Catching Eye effect) */
.upvimeo-card-highlight {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upvimeo-card-highlight:hover {
    box-shadow: 0 10px 15px rgba(0, 173, 239, 0.05);
    /* Subtle Blue Glow */
    border-color: #bce0fd;
    transform: translateY(-2px);
}

/* 2. Section Headers with Icons */
.upvimeo-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 15px;
}

.upvimeo-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00adef 0%, #0088cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 173, 239, 0.3);
}

.upvimeo-section-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.upvimeo-section-desc {
    color: #646970;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
    margin-left: 51px;
    /* Align with title text */
}

/* 3. Typography Enhancements */
.upvimeo-label-bold {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.upvimeo-description-text {
    font-size: 13px !important;
    color: #646970 !important;
    font-style: normal !important;
    margin-top: 8px !important;
}

/* 4. Advanced Toggle Button */
.upvimeo-advanced-wrapper {
    margin-top: 20px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
}

.upvimeo-advanced-toggle-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    color: #50575e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.upvimeo-advanced-toggle-btn:hover,
.upvimeo-advanced-toggle-btn.active {
    background-color: #fff;
    border-color: #00adef;
    color: #00adef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.upvimeo-advanced-toggle-btn .dashicons {
    margin-right: 6px;
    font-size: 16px;
    color: #8c8f94;
    transition: color 0.2s ease;
}

.upvimeo-advanced-toggle-btn:hover .dashicons,
.upvimeo-advanced-toggle-btn.active .dashicons {
    color: #00adef;
}

.upvimeo-advanced-toggle-btn .toggle-icon {
    margin-left: auto;
    margin-right: -4px;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.upvimeo-advanced-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* 5. Advanced Content Area */
.upvimeo-advanced-content {
    display: none;
    background: #fcfcfc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.upvimeo-advanced-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 10px;
    height: 10px;
    background: #fcfcfc;
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    transform: rotate(45deg);
}

/* 6. Input Group Enhancement */
.upvimeo-input-group {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.upvimeo-standard-select {
    width: 100%;
    max-width: 400px;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 0 12px;
    font-size: 14px;
    color: #2c3338;
}

.upvimeo-notice-inline {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 12px 16px;
    border-radius: 4px;
}

.upvimeo-notice-info {
    border-color: #00adef;
    background: rgba(0, 173, 239, 0.05);
}
/* --- Hero Banner Styling --- */
.upvimeo-hero-banner-wrapper {
    margin: 20px 0 30px;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #100f2c 0%, #1e1b4b 50%, #2e1065 100%);
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 60px 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.upvimeo-hero-content-left {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.upvimeo-hero-content-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.upvimeo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.upvimeo-hero-badge.upvimeo-badge-pro {
    background: linear-gradient(90deg, #ff007f, #7928ca);
    border: none;
}

.upvimeo-hero-headline {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    padding: 0 !important;
}

.upvimeo-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.upvimeo-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upvimeo-hero-cta {
    background: #ffffff !important;
    color: #1e1b4b !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.upvimeo-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    background: #f8fafc !important;
}

.upvimeo-hero-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMyIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjOTRhM2I4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0zLjA2NSAxMC41OUwxMC41IDEuMzU0bSAwIDBIMS44NzltOC42MjEgMHY4LjEwMyIvPjwvc3ZnPg==) no-repeat right center;
    padding-right: 18px;
}

.upvimeo-hero-link:hover {
    color: #ffffff;
}

.upvimeo-hero-dismiss {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
    z-index: 10;
}

.upvimeo-hero-dismiss:hover {
    color: #ffffff;
}

.upvimeo-hero-dismiss .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.upvimeo-hero-illustration {
    position: relative;
}

.upvimeo-hero-illustration img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: upvimeoFloat 6s ease-in-out infinite;
}

/* Background floating elements */
.upvimeo-hero-banner-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    transform: rotate(30deg);
    z-index: 1;
    pointer-events: none;
}

.upvimeo-hero-banner-wrapper::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes upvimeoFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 960px) {
    .upvimeo-hero-banner-wrapper {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }
    .upvimeo-hero-content-left {
        max-width: 100%;
    }
    .upvimeo-hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    .upvimeo-hero-headline {
        font-size: 28px !important;
    }
    .upvimeo-hero-content-right {
        justify-content: center;
    }
}
