/* Overall Container and Background */
body.wp-admin {
    background-color: #f5f7fa;
}
.nav-tab {
    border: none;
    background-color: transparent;
    padding: 12px 25px;
    color: #7f8c8d;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: none !important;
}
.nav-tab:hover {
    color: #34495e;
}
.nav-tab-active, .nav-tab-active:hover {
    background-color: #ffffff;
    color: #3498db;
    border-bottom: 3px solid #3498db;
    pointer-events: none;
}
/* Form Table and Elements */
.form-table {
    border-collapse: separate;
}
.form-table tr {
    background-color: #fcfcfc;
    border-radius: 8px;
}
.form-table th, .form-table td {
    padding: 10px 25px;
    border-top: none; 
    vertical-align: middle;
}
.form-table p {
    margin-bottom: 10px !important;
}
/* Hide default checkbox */
label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    outline: none;
    margin: 6px;
    border: none;
    transition: background 0.3s;
}
/* Create toggle circle */
label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px !important;
    height: 16px !important;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
/* Checked state */
label input[type="checkbox"]:checked {
    background: #4caf50;
}
label input[type="checkbox"]:checked::before {
    transform: translateX(20px);
    margin: 0;
}
.twebsec-otp-timer-container {
    /* Set the size of the circular container */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0; /* The base color of the timer circle */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.1);
}
.twebsec-otp-timer-container::before {
    /* Creates the main background fill for the progress bar */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#4cd137 var(--progress), transparent 0deg);
    transition: background 0.5s ease;
}
.twebsec-otp-timer-container::after {
    /* Creates the inner circle to hide the middle of the progress bar */
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.twebsec-otp-timer-countdown {
    position: relative; /* Bring the text to the front */
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    z-index: 2;
}
/* Hide the old linear progress bar */
.twebsec-otp-timer-progress {
    display: none;
}
.wp-core-ui .button-primary {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}
.wp-core-ui .button-primary:hover {
    background-color: #217dbb;
    transform: translateY(-2px);
}
.wp-core-ui .button-secondary {
    background-color: #ffffff;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.wp-core-ui .button-secondary:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-2px); 
        border: 2px solid #3498db;
}
/* Modern table styling */
.widefat.fixed.striped {
    width: 100%;
    border-collapse: separate; /* For rounded corners */
    border-spacing: 0;
    margin-bottom: 1.5em;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.widefat.fixed.striped th,
.widefat.fixed.striped td {
    padding: 12px 15px;
    text-align: left;
}
.widefat.fixed.striped th {
    background: linear-gradient(to bottom, #f7f7f7, #eaeaea);
    font-weight: 600;
    color: #333;
}
.widefat.fixed.striped tr:nth-child(even) {
    background-color: #f9f9f9;
}
.widefat.fixed.striped tr:hover {
    background-color: #e0f7fa;
    transition: background-color 0.3s ease;
}
/* Pagination container */
.tablenav-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.tablenav-pages a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.tablenav-pages a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.tablenav-pages .current-page {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    pointer-events: none;
}
/* Responsive: make table scrollable on small screens */
@media screen and (max-width: 768px) {
    .widefat.fixed.striped {
        display: block;
        overflow-x: auto;
    }
}
.meta-scroll {
    max-height: 120px;   /* Adjust height as needed */
    overflow: auto;      /* Scrollbar appears if content exceeds height */
    padding: 6px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap; /* Preserve line breaks */
}
/* Style the More Info link */
.pp-toggle-info {
    margin-top: 5px;
    font-size: 12px;
    background: #ededed;
    color: #0073aa !important;
    text-decoration: none;
    cursor: pointer;
    padding: 2px;
}
.pp-toggle-info:hover {
    color: #00a0d2;
    /* text-decoration: underline; */
}
/* Style the info box */
.pp-info {
    background-color: #f7f7f7;
    border-left: 3px solid #0073aa;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    border-radius: 3px;
}
.pp-login-logo-preview {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    margin-top: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    border-radius: 4px;
    overflow: hidden;
}
.pp-login-logo-preview p {
    margin: 0;
    padding: 10px;
    text-align: center;
}
.pp-media-upload-wrap .button {
    margin-top: 10px;
    margin-right: 5px;
}
/* AJAX Loader Styling */
.pp-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    display: none; /* Hidden by default */
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pp-loading .pp-loader {
    display: inline-block;
}

.pp-loading button {
    opacity: 0.7;
    pointer-events: none;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: 1rem 0;
    border-radius: 8px;
}