@charset "UTF-8";


/*
 * 3WART Content Performance Heatmap for WordPress
*/

/**
 * Styles for the 3WART Content Performance Heatmap admin dashboard.
 * File: assets/css/admin.css
 */

/* General container styling */
.wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Heading styles */
.wrap h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.wrap p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

/* select styles */

select {
  -webkit-appearance: none; /* Remove iOS/Chrome defaults */
  -moz-appearance: none;    /* Remove Firefox defaults */
  appearance: none;

  display: inline-block;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;

  font-size: 14px;
  line-height: 1.4;
  color: #333;
  background-color: #fff;

  border: 1px solid #bbb;   /* Always visible */
  border-radius: 6px;
  box-sizing: border-box;

  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Custom dropdown arrow */
select::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
  color: #666;
}

select:focus {
  border-color: #0073e6; /* WordPress blue tone */
  box-shadow: 0 0 0 2px rgba(0,115,230,0.25);
}

select option {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*  */

#twh-date-start, #twh-date-end {
	margin-top: 5px;
}

/* Controls section styling */
.twh-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.twh-controls label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.twh-controls select,
.twh-controls button {
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1em;
    transition: all 0.3s ease;
}

/* Select dropdown styling */
.twh-controls select {
  flex: 1;
  min-width: 200px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.twh-controls button {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* Button styling */
.twh-controls .button.button-primary {
    background-color: #3498db;
    border-color: #2980b9;
    color: #fff;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.twh-controls .button.button-primary:hover,
.twh-controls .button.button-primary:focus {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Heatmap container and messages */
#twh-heatmap-container {
    position: relative;
    min-height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure canvas stays within bounds */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message styling within the container (e.g., loading or error messages) */
.twh-message {
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Custom Modal for alerts (to replace the alert() function) */
.twh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.twh-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
}

.twh-modal-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.twh-modal-close {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.twh-modal-close:hover {
    background-color: #2980b9;
}

/* General table styles */
#twh-usability-ux .widefat {
  width: 100%;
  border-collapse: collapse;
}

#twh-usability-ux .widefat th,
#twh-usability-ux .widefat td {
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

/* Mobile optimization */
@media (max-width: 765px) {
  #twh-usability-ux .widefat thead {
    display: none; /* hide header */
  }

  #twh-usability-ux .widefat,
  #twh-usability-ux .widefat tbody,
  #twh-usability-ux .widefat tr,
  #twh-usability-ux .widefat td {
    display: block;
    width: auto;
	border-radius: 8px;
	padding: 5px;
  }

  #twh-usability-ux .widefat tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* padding: 10px; */
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  #twh-usability-ux .widefat td {
    padding: 8px 10px;
    text-align: left;
    position: relative;
  }

  #twh-usability-ux .widefat td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
  }

  #twh-usability-ux .widefat select,
  #twh-usability-ux .widefat input,
  #twh-usability-ux .widefat button {
    /* width: 100%; */
    margin-top: 5px;
  }
}


/* legend / color explanation */

.twh-legend { 
    background: #fff; 
    padding: 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    margin: 20px 0; 
}
.twh-legend ul { margin: 0; padding: 0; list-style: none; }
.twh-legend li { margin-bottom: 8px; display: flex; align-items: center; }
.twh-dot { 
	width: 14px; 
	height: 14px; 
	border-radius: 50%; 
	display: inline-block; 
	margin-right: 8px; 
	min-width: 14px;
	min-height: 14px;
  }
  
.twh-click { background: rgba(255, 0, 0, 0.6); }
.twh-click-sec { background: rgba(21, 197, 11, 0.6); }
.twh-move { background: rgba(255, 165, 0, 0.6); }
.twh-scroll { background: rgba(0, 0, 255, 0.6); }

.twh-legend ul li strong {
	padding-right: 5px;
}

/* Behavioral Triggers */

#twh-behavioral-triggers {
    margin-top: 30px;
}
#twh-behavioral-triggers h2 {
    margin-bottom: 10px;
}

/* Usability & UX */
#twh-usability-ux {
    margin-top: 30px;
}
#twh-usability-ux h2 {
    margin-bottom: 10px;
}
.status-label {
    background: #eee;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
}
#twh-darkmode-toggle:checked + label {
    font-weight: bold;
}
#twh-heatmap-canvas.darkmode {
    background-color: #1c1c1c;
	color: #eee;
}

.hidden { display: none; }


.twh-date.hidden {
	display: none;
}

.twh-darkmode .heatmap-container {
	background: #111;
	color: #f1f1f1;
}

/* Highlight comparison mode */
#twh-compare-mode.button-primary {
	background-color: #0073aa;
	color: #fff;
}

@media (min-width: 922px) {

	
}

/* 📱 Mobile styles */

@media screen and (max-width: 782px) {
    .auto-fold #wpcontent {
        position:relative;
        margin-left: 0;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 765px) {
  .twh-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .twh-controls label {
    margin-bottom: 6px;
  }

  .twh-controls select,
  .twh-controls button {
    width: 100%;
    font-size: 16px;
  }
}


@media screen and (max-width: 991px) {
	
	
	
}