/* General styles for poll modal */

.ital{
  font-style: italic;
}

.kite-oko-poll-form  p.ital{
padding: 0 !important;
}

.kite-oko-poll-form {
    line-height: 1.1;
    opacity: 0;
}

.kite-oko-poll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: left;
    padding: 0 15px;
}
#kite-oko-create-poll{
color: #fff;
    background-color: #293951;
    padding: 8px 20px;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    border: 1px solid #293951;
    outline: 0;
    vertical-align: middle;
    -webkit-appearance: none;
    -webkit-font-smoothing: antialiased;
font-size: 14px;
    width: auto;
    font-weight: 500;
    letter-spacing: 0;
    height: 34px;
    padding: 0 20px !important;
    min-height: 34px;
    margin: 0;
    border-radius: 0.28571429rem;
}



.buddypress .buddypress-wrap button.view-answers-btn,
.buddypress .buddypress-wrap button.view-open-answers-btn,
.buddypress .buddypress-wrap button.edit-chart-type-btn,
.buddypress .buddypress-wrap button.toggle-poll-btn{
    color: #fff;
    background-color: #82cae0;
    
    font-style: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    border: 1px solid #82cae0;
    outline: 0;
    vertical-align: middle;
    -webkit-appearance: none;
    -webkit-font-smoothing: antialiased;
font-size: 14px;
    width: auto;
    font-weight: 500;
    letter-spacing: 0;
    height: 26px;
    padding: 0 6px !important;
    min-height: 26px;
    margin: 0;
    border-radius: 0.28571429rem;
}

.buddypress .buddypress-wrap button.toggle-poll-btn.green{
  background-color: #4caf50;
   border: 1px solid #4caf50;
}

.buddypress .buddypress-wrap button.toggle-poll-btn.red{
  background-color: #ff9800;
   border: 1px solid #ff9800;
}



.buddypress .buddypress-wrap button.toggle-poll-btn[data-stopped="true"]{
  background-color: #4caf50 ;
   border: 1px solid #4caf50;
}


.buddypress .buddypress-wrap button.toggle-poll-btn[data-stopped="false"]{
  background-color: #ff9800;
   border: 1px solid #ff9800;
}





/* When the edit form is open */
.buddypress .buddypress-wrap button.view-answers-btn.open,
.buddypress .buddypress-wrap button.view-open-answers-btn.open,
.buddypress .buddypress-wrap button.edit-chart-type-btn.open{
    background-color: #e3032c;
    border: 1px solid  #e3032c;
}


.pollrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 30px 0 10px 0;
}

.buddypress .buddypress-wrap button.save-chart-type-btn{
  color: #fff;
    background-color: #3db28f;
    
    font-style: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    border: 1px solid #3db28f;
    outline: 0;
    vertical-align: middle;
    -webkit-appearance: none;
    -webkit-font-smoothing: antialiased;
font-size: 14px;
    width: auto;
    font-weight: 500;
    letter-spacing: 0;
    height: 26px;
    padding: 0 6px !important;
    min-height: 26px;
    margin: 10px 0;
    border-radius: 0.28571429rem;
}




.kite-oko-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow-y: scroll;
}

.kite-oko-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
}

.kite-oko-modal-content-solo {
   display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow-y: scroll;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    height: auto;
    text-align: center;
}

.kite-oko-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Poll form styles */
#kite-oko-poll-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.poll-option-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
}


#kite-oko-poll-form input, #kite-oko-poll-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#kite-oko-poll-form button {
    background-color: #24262b;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#kite-oko-poll-form button.add-option-btn{
  background-color:#4caf50;
}


#kite-oko-poll-form button:hover {
    background-color: #005a87;
}

#kite-oko-poll-form button:disabled{
background-color:#909090;
}


#kite-oko-poll-form button.delete-option-btn {
    background-color: #e91e63 !important;
    width: 18px;
    height: 18px;
    border-radius: 18px !important;
    line-height: 18px;
    font-size: 12px;
    padding: 0 !important;
}

/* Poll display styles */


.kite-oko-poll h3 {
    margin-bottom: 10px;
}

.kite-oko-poll-results ul {
    list-style: none;
    padding: 0;
}

.kite-oko-poll-results li {
    padding: 5px 0;
    font-weight: bold;
}























/* Modal Wrapper */
.kite-oko-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* shown with JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 9999;
}

/* Modal Content */
.kite-oko-modal-content {
  background: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  box-sizing: border-box;
  font-family: sans-serif; 
  position: absolute;
    top: 50px;
}

/* Close Button (the “×”) */
.kite-oko-close {
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
.kite-oko-close:hover {
  color: #333;
}

/* Heading */
.kite-oko-modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

/* Form Labels */
#kite-oko-poll-form label {
  display: block;
  margin-bottom: 0;
  font-weight: 600;
  color: #444;
  text-align: left;
  font-size: 15px;
}

/* Text Inputs & Textareas */
#kite-oko-poll-form input[type="text"],
#kite-oko-poll-form textarea,
#kite-oko-poll-form select {
  width: 100%;
  padding: 0 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
}
#kite-oko-poll-form textarea {
  min-height: 80px; /* so it’s a bit taller by default */
}

/* Checkboxes (multi-select & open answer) */
#kite-oko-poll-form input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2); /* optional: make checkboxes a bit bigger */
}

/* Submit Button */
#kite-oko-poll-form button[type="submit"] {
  background: #0073aa; /* WP admin blue, or any color you like */
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
#kite-oko-poll-form button[type="submit"]:hover {
  background: #005f8d;
}




#kite-oko-poll-form button#preview-poll-btn{
  background: #989898; /* WP admin blue, or any color you like */
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}





label.poll-setting-checkbox{
  display: flex !importan;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: baseline;
}

label.poll-setting-checkbox input {
    width: 20px !important;
  }




/* Outer container for each poll in the timeline */
.kite-oko-poll {
  background-color: #fff;       /* or a subtle background like #f9f9f9 */
  border: none;       /* light border */
 padding: 8px;              /* spacing inside the container */
  margin-bottom: 1.2rem;        /* spacing between polls */
 font-family: inherit; 
 width: 100%;        /* match your theme's font */
}

/* Poll heading (title + ID) */
.kite-oko-poll h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #222;                  /* darker color for text */
}

/* Subtle styling for the poll ID if you want to separate it from the question */
.kite-oko-poll h3 span.poll-id {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

/* Each label for checkboxes/radio buttons */
.kite-oko-poll label {
  
  margin-bottom: 0rem;
  cursor: pointer;              /* pointer on hover */
  color: #333;

  display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
}

/* Checkbox/radio inputs */
.kite-oko-poll input[type="checkbox"],
.kite-oko-poll input[type="radio"] {
  margin-right: 0.5rem;
  transform: scale(1.1);        /* slightly larger checkboxes/radios */
}

/* The “Your own answer:” label */
.kite-oko-poll .open-answer-label {
  margin-top: 1rem;
  font-weight: 600;
}

/* The open answer textarea */
.kite-oko-poll textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  box-sizing: border-box;
  resize: vertical;             /* allow vertical resizing */
}

/* The vote button */
.kite-oko-poll button[type="submit"] {
  background: #0073aa;         /* WP Admin Blue or your brand color */
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.kite-oko-poll button[type="submit"]:hover {
  background: #505a7b;
  color:#fff;
}








.kite-oko-poll {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}



#poll-preview{
  text-align: left;
}

.poll-preview-answer{
display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
}
.poll-preview-answer input{
    width: 20px !important;
}
