/**
 * Content Locker Admin Styles
 */

/* Meta box styles */
.lockerco-admin-container {
    margin-bottom: 1rem;
}

.lockerco-global-toggle {
    margin-bottom: 1rem;
}

.lockerco-type-selector {
    margin-bottom: 1rem;
}

.lockerco-type-selector select {
    width: 100%;
    margin-top: 0.5rem;
}

.lockerco-type-settings {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.lockerco-advanced-toggle {
    margin-bottom: 0.5rem;
}

.lockerco-custom-css textarea {
    font-family: monospace;
    font-size: 12px;
    height: 150px;
}

/* Settings page styles */
.lockerco-settings-wrap {
    max-width: 800px;
}

.lockerco-settings-section {
    margin-bottom: 2rem;
}

.lockerco-settings-field {
    margin-bottom: 1rem;
}

.lockerco-settings-field label {
    display: block;
    margin-bottom: 0.5rem;
}

/**
 * Locker Content Pro Admin Styles
 * Professional styling for the WordPress admin interface
 */

/* Global container styles */
.lockerco-admin-container {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Section dividers */
.lockerco-pro-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    border: none;
    margin: 25px 0 15px;
}

/* Pro badge styling */
.lockerco-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Form group styling */
.lockerco-form-group {
    margin-bottom: 15px;
}

/* General input styling */
.lockerco-admin-container input[type="text"],
.lockerco-admin-container input[type="number"],
.lockerco-admin-container input[type="email"],
.lockerco-admin-container select,
.lockerco-admin-container textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
    padding: 6px 8px;
    transition: border-color 0.15s ease-in-out;
}

.lockerco-admin-container input[type="text"]:focus,
.lockerco-admin-container input[type="number"]:focus,
.lockerco-admin-container input[type="email"]:focus,
.lockerco-admin-container select:focus,
.lockerco-admin-container textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Checkbox & radio styling */
.lockerco-admin-container input[type="checkbox"],
.lockerco-admin-container input[type="radio"] {
    margin-right: 8px;
    border: 1px solid #8c8f94;
}

/* Label styling */
.lockerco-admin-container label {
    font-weight: 500;
    margin-bottom: 5px;
    display: inline-block;
}

/* Description text */
.description {
    color: #646970;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

/* Button styling */
.lockerco-admin-container .button {
    transition: all 0.15s ease-in-out;
}

.lockerco-admin-container .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.lockerco-admin-container .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.lockerco-admin-container .button-secondary {
    color: #2271b1;
    border-color: #2271b1;
}

.lockerco-admin-container .button-secondary:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

/* Password Generator styles */
#lockerco_password_generator {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

#lockerco_password_generator .dashicons {
    margin-right: 5px;
}

/* Multiple passwords field */
#lockerco_multiple_passwords_field {
    margin-top: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

#lockerco_password_multi {
    font-family: Consolas, Monaco, monospace;
    line-height: 1.4;
}

/* Type selector styling */
.lockerco-type-selector {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.lockerco-type-selector select {
    min-width: 200px;
}

/* 2FA Section */
#lockerco_2fa_options {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 3px solid #2271b1;
}

#lockerco_2fa_enabled {
    margin-top: 1px;
}

/* Password Generator Modal */
.lockerco-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lockerco-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.modal-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-title .dashicons {
    margin-right: 8px;
    color: #2271b1;
}

.modal-body {
    padding: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
    transition: color 0.15s ease-in-out;
}

.close-modal:hover {
    color: #333;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    background-color: #f9f9f9;
}

.password-generator-section {
    margin-bottom: 15px;
}

.section-header {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}

.section-body {
    padding: 15px;
}

.password-generator-row {
    display: flex;
    margin: 0 -10px;
}

.password-generator-col,
.password-generator-col-7,
.password-generator-col-5 {
    padding: 0 10px;
    box-sizing: border-box;
}

.password-generator-col {
    flex: 1;
}

.password-generator-col-7 {
    flex: 0 0 70%;
    max-width: 70%;
}

.password-generator-col-5 {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
}

.strength-weak {
    color: #dc3545;
}

.strength-strong {
    color: #28a745;
}

#generate_password_button,
#insert_passwords {
    width: 100%;
    height: 36px;
}

#password_strength {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(to right, #dc3545, #ffc107, #28a745);
    border-radius: 3px;
    outline: none;
}

#password_strength::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    border: none;
}

#password_strength::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    border: none;
}

#generated_passwords {
    font-family: Consolas, Monaco, monospace;
    resize: vertical;
}

/* Geo Restrictions Styles */
#lockerco_geo_restrictions {
    position: relative;
}

.lockerco-geo-select-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.lockerco-geo-select-all,
.lockerco-geo-select-none {
    font-size: 11px;
    line-height: 1.2;
    padding: 3px 6px;
    text-align: center;
    flex: 1;
}

/* Select2 Enhancement */
.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
    min-height: 150px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f6fc;
    border-color: #c5d9ed;
    color: #0a4b78;
    padding: 3px 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus{
  background-color: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
  border-right: none !important;
  top:4px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2271b1;
}

/* Test IP Section */
.lockerco-geo-test-ip {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.lockerco-geo-test-ip h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.lockerco-geo-test-ip-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#lockerco_geo_test_ip {
    flex: 1;
}

.lockerco-geo-test-result {
    margin-top: 10px;
}

.lockerco-geo-loading,
.lockerco-geo-error,
.lockerco-geo-success {
    padding: 10px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.lockerco-geo-loading {
    background-color: #f0f6fc;
    border: 1px solid #c5d9ed;
    color: #0a4b78;
}

.lockerco-geo-error {
    background-color: #fcf0f1;
    border: 1px solid #f1c5c7;
    color: #761c19;
}

.lockerco-geo-success {
    background-color: #f7fcf0;
    border: 1px solid #dbedc5;
    color: #3c763d;
}

.lockerco-geo-success p {
    margin: 5px 0;
}

.lockerco-geo-allowed {
    color: #28a745;
    font-weight: bold;
}

.lockerco-geo-blocked {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .password-generator-row {
        flex-direction: column;
    }
    
    .password-generator-col,
    .password-generator-col-7,
    .password-generator-col-5 {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .lockerco-geo-test-ip-form {
        flex-direction: column;
    }
    
    #lockerco_geo_test_button {
        width: 100%;
    }
}


/**
 * Content Locker Admin Styles
 * Professional admin interface for Content Locker plugin
 */

/* General Admin Styles */
.lockerco-admin-wrap {
  max-width: 1200px;
  margin: 20px 0;
  position: relative;
}

.lockerco-admin-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #23282d;
  font-size: 23px;
  font-weight: 400;
}

.lockerco-admin-title .dashicons {
  margin-right: 10px;
  color: #2271b1;
  font-size: 28px;
  width: 28px;
  height: 28px;
}

.lockerco-subtitle {
  font-size: 14px;
  color: #646970;
  margin-left: 15px;
  font-weight: normal;
  padding-left: 15px;
  border-left: 1px solid #dcdcde;
}

/* Meta Box Styles */
.lockerco-admin-container {
  padding: 10px 0;
}

.lockerco-global-toggle {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.lockerco-global-toggle label {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.lockerco-global-toggle input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.lockerco-type-selector {
  margin-bottom: 20px;
}

.lockerco-type-selector select {
  min-width: 250px;
  margin-top: 5px;
}

.lockerco-type-settings {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.lockerco-advanced-toggle {
  margin: 15px 0;
}

.lockerco-advanced-toggle a {
  color: #2271b1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.lockerco-advanced-toggle a:before {
  content: "\f140";
  font-family: dashicons;
  margin-right: 5px;
  font-size: 16px;
}

.lockerco-advanced-toggle a.open:before {
  content: "\f142";
}

.lockerco-advanced-settings {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 15px;
  margin-top: 10px;
}

.lockerco-custom-css textarea {
  font-family: monospace;
  font-size: 13px;
  resize: vertical;
  min-height: 120px;
}

.lockerco-dashboard-widgets {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.lockerco-dashboard-widget {
  flex: 1 1 calc(50% - 20px);
  margin: 0 10px 20px;
  min-width: 300px;
  background-color: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.lockerco-dashboard-widget-header {
  border-bottom: 1px solid #e5e5e5;
  background-color: #f8f9fa;
  padding: 10px 15px;
}

.lockerco-dashboard-widget-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.lockerco-dashboard-widget-content {
  padding: 15px;
  position: relative;
}

.lockerco-stats-overview {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lockerco-stat-card {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  position: relative;
}

.lockerco-stat-card:not(:last-child):after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: #e5e5e5;
}

.lockerco-stat-number {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #2271b1;
  margin-bottom: 5px;
}

.lockerco-stat-label {
  display: block;
  font-size: 12px;
  color: #646970;
  text-transform: uppercase;
}

.lockerco-chart-container {
  height: 200px;
  margin-bottom: 15px;
}

.lockerco-recent-table {
  width: 100%;
  border-collapse: collapse;
}

.lockerco-recent-table th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 600;
  font-size: 13px;
}

.lockerco-recent-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f1;
}

.lockerco-recent-table tr:last-child td {
  border-bottom: none;
}

.lockerco-no-items {
  text-align: center;
  color: #646970;
  padding: 30px 0;
}

.lockerco-pro-features {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
}

.lockerco-pro-header {
  text-align: center;
  margin-bottom: 15px;
}

.lockerco-pro-header h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
  color: #2271b1;
}

.lockerco-pro-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lockerco-pro-features-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.lockerco-pro-features-list li .dashicons {
  position: absolute;
  left: 0;
  top: 2px;
  color: #2271b1;
}

.lockerco-upgrade-button-container {
  text-align: center;
  margin-top: 20px;
}

.lockerco-tips {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lockerco-tip {
  display: flex;
  align-items: flex-start;
}

.lockerco-tip-icon {
  flex-shrink: 0;
  margin-right: 15px;
}

.lockerco-tip-icon .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
  color: #2271b1;
}

.lockerco-tip-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.lockerco-tip-content p {
  margin-top: 0;
  color: #646970;
}

.lockerco-testimonials {
  margin-top: 30px;
}

.lockerco-testimonials h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.lockerco-testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.lockerco-testimonial {
  flex: 1 1 calc(50% - 10px);
  min-width: 300px;
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.lockerco-testimonial-content {
  font-style: italic;
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
}

.lockerco-testimonial-content:before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 30px;
  color: #2271b1;
  line-height: 1;
}

.lockerco-testimonial-author {
  display: flex;
  align-items: center;
}

.lockerco-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.lockerco-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lockerco-author-name {
  font-weight: 600;
  font-size: 14px;
}

.lockerco-author-title {
  font-size: 12px;
  color: #646970;
}

/* Settings Page Styles */
.lockerco-tabs-container {
  margin-top: 20px;
}

.lockerco-settings-container {
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-top: none;
  padding: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.lockerco-settings-section {
  margin-bottom: 30px;
  position: relative;
}

.lockerco-settings-section h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.lockerco-settings-section .description {
  margin-bottom: 15px;
  color: #646970;
}

.lockerco-post-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.lockerco-post-type-item {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 10px;
}

.lockerco-post-type-item label {
  display: flex;
  align-items: center;
}

.lockerco-post-type-item input[type="checkbox"] {
  margin-right: 8px;
}

.lockerco-settings-info {
  display: flex;
  align-items: flex-start;
  background-color: #f0f6fc;
  border-left: 4px solid #2271b1;
  padding: 15px;
  margin-top: 15px;
  border-radius: 0 4px 4px 0;
}

.lockerco-settings-info-icon {
  flex-shrink: 0;
  margin-right: 15px;
}

.lockerco-settings-info-icon .dashicons {
  color: #2271b1;
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.lockerco-settings-info-content p {
  margin: 0;
  color: #1e1e1e;
}

.lockerco-unit {
  margin-left: 10px;
  color: #646970;
}

.lockerco-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

.lockerco-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.lockerco-toggle-switch input:checked + .lockerco-toggle-slider {
  background-color: #2271b1;
}

.lockerco-toggle-switch input:checked + .lockerco-toggle-slider:before {
  transform: translateX(26px);
}

.lockerco-color-picker {
  width: 65px;
}

.lockerco-preview-button {
  margin-top: 15px;
}


.lockerco-preview-modal {
  background-color: #fff;
  border-radius: 4px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lockerco-preview-modal h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.lockerco-close-preview {
  margin-top: 15px;
}

.lockerco-pro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.lockerco-pro-message {
  background-color: #fff;
  border: 1px solid #2271b1;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 90%;
}

.lockerco-pro-message h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2271b1;
  font-size: 18px;
}

.lockerco-pro-message p {
  margin-bottom: 15px;
}

/* Statistics Page Styles */
.lockerco-statistics-container {
  margin-top: 20px;
}

.lockerco-statistics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.lockerco-statistics-overview {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.lockerco-stat-card {
  flex: 1;
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.lockerco-stat-card-inner {
  display: flex;
  align-items: center;
  padding: 20px;
}

.lockerco-stat-icon {
  margin-right: 15px;
}

.lockerco-stat-icon .dashicons {
  width: 36px;
  height: 36px;
  font-size: 36px;
  color: #2271b1;
}

.lockerco-statistics-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.lockerco-chart-container, 
.lockerco-top-content {
  flex: 1 1 calc(50% - 10px);
  min-width: 300px;
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  position: relative;
}

.lockerco-chart-container h3,
.lockerco-top-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
}

.lockerco-chart-placeholder,
.lockerco-top-content-placeholder {
  height: 300px;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #646970;
  font-style: italic;
  position: relative;
}

/* Upgrade Page Styles */
.lockerco-upgrade-container {
  margin-top: 20px;
  max-width: 1000px;
}

.lockerco-upgrade-header {
  text-align: center;
  margin-bottom: 30px;
}

.lockerco-upgrade-subtitle {
  font-size: 16px;
  color: #646970;
  margin-top: 0;
}

.lockerco-upgrade-content {
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.lockerco-feature-section {
  padding: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.lockerco-feature-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.lockerco-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.lockerco-feature-card {
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lockerco-feature-icon {
  margin-bottom: 15px;
  text-align: center;
}

.lockerco-feature-icon .dashicons {
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #2271b1;
}

.lockerco-feature-details {
  flex-grow: 1;
}

.lockerco-feature-details h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  text-align: center;
}

.lockerco-feature-details p {
  margin: 0;
  color: #646970;
  text-align: center;
}

.lockerco-pricing-section {
  padding: 30px;
}

.lockerco-pricing-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.lockerco-pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.lockerco-pricing-column {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
  max-width: 350px;
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.lockerco-pricing-column.popular {
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
  position: relative;
}

.lockerco-pricing-column.popular:before {
  content: "MOST POPULAR";
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: #ff6d21;
  color: #fff;
  font-size: 10px;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lockerco-pricing-header {
  background-color: #fff;
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.lockerco-pricing-header h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.lockerco-pricing-price {
  margin-bottom: 20px;
}

.lockerco-currency {
  font-size: 20px;
  font-weight: 600;
  vertical-align: top;
  position: relative;
  top: 6px;
}

.lockerco-amount {
  font-size: 40px;
  font-weight: 700;
  color: #2271b1;
}

.lockerco-period {
  font-size: 14px;
  color: #646970;
}

.lockerco-pricing-features {
  padding: 20px;
}

.lockerco-pricing-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lockerco-pricing-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.lockerco-pricing-features li .dashicons {
  position: absolute;
  left: 0;
  top: 2px;
  color: #2271b1;
}

.lockerco-satisfaction-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #646970;
}

.lockerco-satisfaction-guarantee .dashicons {
  color: #2271b1;
  margin-right: 10px;
  font-size: 20px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
  .content-locker-welcome-panel-column-container {
    flex-direction: column;
  }
  
  .content-locker-welcome-panel-column {
    margin-bottom: 20px;
  }
  
  .lockerco-statistics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .lockerco-statistics-overview {
    flex-direction: column;
  }
  
  .lockerco-stat-card:not(:last-child):after {
    display: none;
  }
  
  .lockerco-pricing-column {
    max-width: 100%;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.lockerco-animation-fade {
  animation: fadeIn 0.3s ease-in-out;
}

.lockerco-animation-slide {
  animation: slideIn 0.4s ease-out;
}

.lockerco-animation-zoom {
  animation: zoomIn 0.3s ease-in-out;
}

.lockerco-animation-bounce {
  animation: bounceIn 0.5s ease-in-out;
}

/* Color Picker Enhancements */
.wp-picker-container {
  display: inline-block;
}

.wp-color-result {
  border-radius: 3px;
  box-shadow: 0 1px 0 #ccc;
}

.wp-picker-container .wp-color-result.button {
  height: 30px;
}

/* jQuery UI Tabs Customization */
.ui-tabs-nav {
  background: none;
  border: none;
  padding: 0;
}

.ui-tabs-tab {
  background: #fff;
  border-radius: 3px 3px 0 0;
}

.ui-tabs-active {
  background: #f8f9fa;
}

/* Sortable Items Styling */
.ui-sortable-handle {
  cursor: move;
}

.ui-sortable-helper {
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ui-sortable-placeholder {
  visibility: visible !important;
  border: 1px dashed #ccc;
  background-color: #f9f9f9;
  height: 40px;
}


/**
 * Content Locker Welcome Panel Styles
 * Professional styling for the plugin's welcome panel
 */

/* Welcome Panel Container */
.lockerco-welcome-panel {
    background-color: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lockerco-welcome-panel:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Welcome Panel Content */
.lockerco-welcome-panel-content {
    padding: 25px 30px;
}

.lockerco-welcome-panel-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1d2327;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    padding-left: 30px;
}

.lockerco-welcome-panel-content h2::before {
    content: '\f160'; /* WordPress dashicon lock */
    font-family: dashicons;
    position: absolute;
    left: 0;
    top: 3px;
    color: #2271b1;
    font-size: 24px;
}

.about-description {
    margin: 0 0 25px;
    font-size: 16px;
    line-height: 1.5;
    color: #50575e;
    max-width: 700px;
}

/* Column Layout */
.content-locker-welcome-panel-column-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.content-locker-welcome-panel-column {
    flex: 1;
    min-width: 240px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.content-locker-welcome-panel-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2271b1;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
}

.content-locker-welcome-panel-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-locker-welcome-panel-column ul li {
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 22px;
}

.content-locker-welcome-panel-column ul li::before {
    content: '\f345'; /* WordPress dashicon arrow-right-alt2 */
    font-family: dashicons;
    position: absolute;
    left: 0;
    top: 2px;
    color: #2271b1;
    font-size: 14px;
}

.content-locker-welcome-panel-column ul li a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-locker-welcome-panel-column ul li a:hover,
.content-locker-welcome-panel-column ul li a:focus {
    color: #135e96;
    text-decoration: underline;
}

.content-locker-welcome-panel-column ul li .button {
    padding-left: 12px;
    padding-right: 12px;
}

.content-locker-welcome-panel-column ul li .button.button-primary {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.content-locker-welcome-panel-column ul li .button.button-primary:hover,
.content-locker-welcome-panel-column ul li .button.button-primary:focus {
    background-color: #135e96;
    border-color: #135e96;
    color: #fff;
}

/* Create a subtle diagonal pattern background */
.lockerco-welcome-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(135deg, transparent 45%, rgba(225, 228, 232, 0.5) 45%, rgba(225, 228, 232, 0.5) 55%, transparent 55%);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Add a slight gradient on hover */
.lockerco-welcome-panel:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(34, 113, 177, 0.05), transparent);
    z-index: 0;
    pointer-events: none;
}

/* External links icon */
.content-locker-welcome-panel-column ul li a[target="_blank"]::after {
    content: '\f504'; /* WordPress dashicon external */
    font-family: dashicons;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    margin-left: 5px;
    text-decoration: none;
    vertical-align: middle;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .content-locker-welcome-panel-column-container {
        flex-direction: column;
    }
    
    .content-locker-welcome-panel-column {
        width: 100%;
        margin-bottom: 25px;
    }
    
    .content-locker-welcome-panel-column:last-child {
        margin-bottom: 0;
    }
    
    .lockerco-welcome-panel-content {
        padding: 20px;
    }
    
    .lockerco-welcome-panel-content h2 {
        font-size: 22px;
    }
    
    .about-description {
        font-size: 14px;
    }
}

/* Visual Enhancement - Subtle Animation */
@keyframes welcomePanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lockerco-welcome-panel {
    animation: welcomePanelFadeIn 0.4s ease-out;
}

/* Add a subtle highlight to the first list item in the first column */
.content-locker-welcome-panel-column:first-child ul li:first-child {
    background-color: rgba(34, 113, 177, 0.05);
    border-radius: 4px;
    padding: 10px 15px 10px 30px;
    margin-left: -8px;
    margin-bottom: 15px;
}

.content-locker-welcome-panel-column:first-child ul li:first-child::before {
    left: 8px;
    top: 12px;
}

/* Add a small badge to external links */
.content-locker-welcome-panel-column-last ul li a[target="_blank"] {
    position: relative;
}

.content-locker-welcome-panel-column-last ul li a[target="_blank"]::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 2px;
    width: 14px;
    height: 14px;
    background-color: #2271b1;
    border-radius: 50%;
    z-index: 1;
}

.content-locker-welcome-panel-column-last ul li::before {
    color: #fff;
    z-index: 2;
    font-size: 12px;
    top: 3px;
}

/**
 * Content Locker Dashboard Stats & Chart Styles
 * Professional styling for dashboard statistics and charts
 */

/* Dashboard Widget Content Container */
.lockerco-dashboard-widget-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
}

/* Stats Overview Container */
.lockerco-stats-overview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* Stat Cards */
.lockerco-stat-card {
    flex: 1;
    padding: 18px 15px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    position: relative;
    transition: all 0.2s ease;
}

.lockerco-stat-card:hover {
    background: linear-gradient(to bottom, #fff, #f0f6fc);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    z-index: 2;
}

/* Add subtle borders between cards */
.lockerco-stat-card:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Top color indicators for stat cards */
.lockerco-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
}

.lockerco-stat-card:nth-child(1)::before {
    background-color: #2271b1; /* WordPress blue */
}

.lockerco-stat-card:nth-child(2)::before {
    background-color: #3582c4; /* Lighter blue */
}

.lockerco-stat-card:nth-child(3)::before {
    background-color: #135e96; /* Darker blue */
}

/* Stat Number */
.lockerco-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.lockerco-stat-card:hover .lockerco-stat-number {
    color: #2271b1;
    transform: scale(1.05);
}

/* Stat Label */
.lockerco-stat-label {
    display: block;
    font-size: 13px;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Chart Container */
.lockerco-chart-container {
    margin-top: 25px;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 350px;
}

/* Chart Switcher */
.lockerco-chart-switcher {
    margin-bottom: 20px !important;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lockerco-chart-switcher button {
    padding: 6px 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lockerco-chart-switcher button:not(.button-primary) {
    background-color: #fff;
    border-color: #c3c4c7;
    color: #50575e;
}

.lockerco-chart-switcher button:not(.button-primary):hover {
    background-color: #f0f0f1;
    border-color: #8c8f94;
    color: #1d2327;
}

.lockerco-chart-switcher button.button-primary {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.lockerco-chart-switcher button.button-primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Chart Canvas */
#lockerco-overview-chart {
    height: 300px !important;
    width: 100% !important;
    max-height: 300px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    opacity: 1 !important;
}

/* Modern Tooltips for Charts */
.chartjs-tooltip {
    background-color: rgba(29, 35, 39, 0.9) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 13px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Visual Enhancement - Loading Animation */
@keyframes chartLoad {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lockerco-chart-container {
    animation: chartLoad 0.4s ease-out;
}

/* Visual Enhancement - Stat Cards Count-Up Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lockerco-stat-number {
    animation: countUp 0.6s ease-out forwards;
}

.lockerco-stat-card:nth-child(2) .lockerco-stat-number {
    animation-delay: 0.1s;
}

.lockerco-stat-card:nth-child(3) .lockerco-stat-number {
    animation-delay: 0.2s;
}

/* Empty State Styling */
.lockerco-chart-container.empty {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f6fc;
}

.lockerco-chart-container.empty::before {
    content: 'No data to display';
    color: #2271b1;
    font-size: 16px;
    opacity: 0.7;
}

/* Stat Cards when Empty */
.lockerco-stat-card.empty .lockerco-stat-number {
    color: #c3c4c7;
}

.lockerco-stat-card.empty:hover {
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    box-shadow: none;
    transform: none;
}

/* Chart Legend Enhancement */
.lockerco-chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.lockerco-chart-legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #50575e;
}

.lockerco-chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .lockerco-stats-overview {
        flex-direction: column;
    }
    
    .lockerco-stat-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .lockerco-stat-card:last-child {
        border-bottom: none;
    }
    
    .lockerco-stat-card::before {
        width: 3px;
        height: 100%;
        left: 0;
        top: 0;
        right: auto;
    }
    
    .lockerco-chart-container {
        padding: 15px;
    }
    
    .lockerco-chart-switcher button {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    #lockerco-overview-chart {
        height: 250px !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .admin-color-light .lockerco-stats-overview,
    .admin-color-light .lockerco-chart-container {
        background-color: #f0f0f1;
    }
    
    .admin-color-dark .lockerco-stat-card {
        background: linear-gradient(to bottom, #32373c, #23282d);
    }
    
    .admin-color-dark .lockerco-stat-number {
        color: #e5e5e5;
    }
    
    .admin-color-dark .lockerco-stat-label {
        color: #bbc8d4;
    }
    
    .admin-color-dark .lockerco-chart-container {
        background-color: #32373c;
    }
    
    .admin-color-dark .lockerco-chart-switcher button:not(.button-primary) {
        background-color: #50626f;
        border-color: #50626f;
        color: #e5e5e5;
    }
}

/* Remove hover effect that was causing fading */
.lockerco-chart-container:hover canvas {
    filter: none;
}

/* Chart Title */
.lockerco-chart-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #2271b1;
}

/* Data Summary Text */
.lockerco-data-summary {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.lockerco-admin-container .button.reset-counter{
    margin-left: 12px;
}