/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

.dashicons-wsww-spin:before {
    content: "";
    display: inline-block;
    line-height: 1;
    width: 20px;
    height: 20px;
    font-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.wsww-spin-add-table {
    width: 100%;
}

.wsww-spin-add-table tr {
    line-height: 3.5;
}

.wsww-spin-add-table th {
    width: 20%;
}

.wsww-spin-add-table td {
    width: 80%;
}

.wsww-repeater-add-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.custom_form_layout table th {
    text-align: left;
}

iframe#Wsww_user_email_body_ifr {
    border-right: 3px solid #00000012;
}

iframe#Wsww_admin_email_body_ifr {
    border-right: 3px solid #00000012;
}


.template-setting .template-option {
    border: 1px solid rgba(0, 0, 0, .125);
}



@media screen and (max-width: 480px) {
    #probability-total-container .probability-progress-bar_area {
        width: 100% !important;
    }

    #probability-total-container .probability-progress-bar_area #probability-progress-bar {
        width: 100% !important;
    }
}


.wp-has-current-submenu .dashicons-wsww-spin:before {
    margin-top: 7px;
}

/* spin_button */
body.spin_button .wsww-spin-button-only {
    display: none;
}
body #initial_button_section {
    display: none;
}
body.spin_button #initial_button_section {
    display: block;
}

.content_section {
    width: 100%;
}
.wsww-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}



.wsww-spin-table-button tbody tr{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  

  span.wsww-button-row-item-right-text {
    font-size: 18px;
    margin-right: 16px;
    font-weight: 600;
}

.wsww-button-color {
    background: #0073AA !important;
    color: white !important;
}
.wsww-button-color:hover {
    background: #005a8c !important;
    color: white !important;
}
.tdw-buttom-continer{
    float: left !important;
}

/* Claim Status Styling */
.claim-yes {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

.claim-no {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
}

/* Custom width utility classes */
.w-10 {
    width: 10% !important;
}

.w-20 {
    width: 20% !important;
}

.w-5 {
    width: 5% !important;
}
.w-30 {
    width: 30% !important;
}
.w-40 {
    width: 40% !important;
}
.w-50 {
    width: 50% !important;
}
.w-60 {
    width: 60% !important;
}
.w-3 {
    width: 3% !important;
}
.w-7 {
    width: 7% !important;
}

.wsww-button-inline {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 20px;
}

/* Tab functionality - Bootstrap handles tabs, but keep nav-tab styles for compatibility */
.nav-tab {
    cursor: pointer;
}

.nav-tab-active {
    background-color: #0073aa !important;
    color: #fff !important;
}

/* Bootstrap handles tab visibility via .tab-pane, don't hide .tab-content wrapper */

/* Ensure spin content table is visible */
.wsww-spin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wsww-repeater>table {
    margin: 0 0 8px;
    background: #F9F9F9;
}

.wsww-spin-table {
    border: #DFDFDF solid 1px;
    background: #fff;
    border-spacing: 0;
    border-radius: 0;
    table-layout: auto;
    padding: 0;
    margin: 0;
    width: 100%;
    clear: both;
}

.wsww-spin-table>thead>tr>th:first-child {
    border-left-width: 0;
}

.wsww-spin-table>tbody>tr:first-child>td {
    border-top-width: 0;
}

.wsww-spin-table>tbody>tr>td {
        border-color: #EDEDED;

        border-width: 1px 0 0 1px;

}

.wsww-repeater .acf-row-handle {
    width: 16px;
    text-align: center !important;
    vertical-align: middle !important;
    position: relative;
}

.wsww-spin-table>thead>tr>th {
    border-color:#E1E1E1;
    border-width: 0 0 1px 1px;
    border-left-width: 1px;
    color: #23282d !important;
}

.wsww-spin-table>tbody>tr>th,
.wsww-spin-table>tbody>tr>td,
.wsww-spin-table>thead>tr>th,
.wsww-spin-table>thead>tr>td {
    padding: 8px;
    vertical-align: top;
    background: #fff;
    text-align: left;
    border-style: solid;
    font-weight: normal;
}

.wsww-w-65 {
    width: 65px;
}

.wsww-w-full {
    width: 100%;
}

.wsww-row-handle {
    width: 60px;
    text-align: center !important;
    vertical-align: middle !important;
}

.wsww-spin-view .wsww-spin-table thead>tr>th {
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

.wsww-spin-view .wsww-spin-table tbody>tr>td {
    text-align: center;
    font-size: 15px;
}

.wsww-spin-winner-table {
    width: 100%;
    border-collapse: collapse;
}

.wsww-spin-winner-table>tbody>tr>th,
.wsww-spin-winner-table>tbody>tr>td,
.wsww-spin-winner-table>thead>tr>th,
.wsww-spin-winner-table>thead>tr>td {
    padding: 8px;
    vertical-align: middle;
    background: #fff;
    text-align: left;
    border-style: solid;
    font-weight: normal;
    border: none;
}

.wsww-spin-winner-table>tbody>tr>th {
    font-weight: bolder;
}

.claim-no {
    display: inline-block;
    width: 50px;
    height: 22px;
    border-radius: 3px;
    background-color: #e84747;
    text-align: center;
    line-height: 22px;
    color: white;
}

.claim-yes {
    display: inline-block;
    width: 50px;
    height: 22px;
    border-radius: 3px;
    background-color: #65bd63;
    text-align: center;
    line-height: 22px;
    color: white;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.hide {
    display: none;
}

.description.error {
    color: #e84747;
    font-weight: 600;
}

.wsww-row-remove-btn {
    color: #e84747 !important;
    padding: 10px;
    display: inline-flex;
    border-radius: 100%;
    background-color: #fff;
}

.wsww-row-remove-btn:hover {
    background-color: antiquewhite !important;
}

/* Only apply to plugin-specific form tables, not all WordPress admin forms */
.section-continer .form-table,
.wsww-spin-view .form-table {
    width: 100%;
}

.section-continer .form-table tr,
.wsww-spin-view .form-table tr {
    vertical-align: top;
}

.section-continer .form-table th,
.section-continer .form-table td,
.wsww-spin-view .form-table th,
.wsww-spin-view .form-table td {
    text-align: left;
    padding-bottom: 15px;
}

/* Remove flex from all form-table td to prevent breaking WordPress admin */
/* WordPress admin forms use table layout, flex breaks the display */
.section-continer .form-table ul,
.wsww-spin-view .form-table ul {
    margin: 0;
}

.custom-form {
    width: 70% !important;
    max-width: 100% !important;
}

.wsww-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.regular-text {
    width: 50%;
}

.wp-core-ui.wp-editor-wrap {
    width: 70%;
}

.copy-btn {
    cursor: pointer;
    border: 1px solid lightgrey;
    border-radius: 5px;
    padding: 3px 8px;
    margin-left: 5px;
}

.copy-btn span {
    margin-left: 5px;
}

.copy-btn:hover,
.copy-btn:active,
.copy-btn:focus {
    background-color: aliceblue;
}

.copy-btn {
    position: relative;
    display: inline-block;
}

.tooltiptext {
    visibility: hidden;
    width: 110px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 130%;
    left: -50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.copy-btn:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.wsww-winner-actions-left,
.wsww-winner-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsww-winner-actions-right .wsww-winner-count {
    margin-left: 4px;
}

body.toplevel_page_wsww-spin-winner .tablenav.top .tablenav-pages,
body[class*="wsww-spin-winner"] .tablenav.top .tablenav-pages {
    display: none;
}

body.toplevel_page_wsww-spin-winner .tablenav.top {
    margin-top: 14px;
    margin-bottom: 12px;
}

body.toplevel_page_wsww-spin-winner .wp-list-table {
    margin-top: 8px;
}

.wsww-winner-list-page .tablenav.top {
    margin-top: 16px;
    margin-bottom: 16px;
}

.wsww-winner-list-page .wp-list-table {
    margin-top: 12px;
}

.wsww-spin-list-page .button.button-primary {
    margin-left: 10px;
    vertical-align: middle;
}

.wsww-spin-list-page .tablenav.top {
    margin-top: 14px;
    margin-bottom: 12px;
}

.wsww-spin-list-page .tablenav.top .actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsww-spin-list-page .tablenav.top .actions select,
.wsww-spin-list-page .tablenav.top .actions input[type="search"] {
    margin: 0;
}

.wsww-spin-list-page .wp-list-table {
    margin-top: 8px;
}

.wsww-create-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsww-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #50575e;
    text-decoration: none;
    font-weight: 500;
}

.wsww-back-link:hover,
.wsww-back-link:focus {
    color: #2271b1;
    text-decoration: none;
}

.wsww-back-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.wsww-back-link .wsww-back-link-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wsww-floating-notice {
    position: fixed !important;
    top: 44px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 100000;
    min-width: 320px;
    max-width: 560px;
    width: max-content;
    margin: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.wsww-floating-notice.wsww-notice-fadeout {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

