body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;    
    align-items: flex-start;
    height: 100vh;
}

a, a:visited {
    color: #0056b3 !important;
}

a:hover, a:focus {
    color: #1a6fcb !important;
}

.container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding: 30px;
    max-width: 90%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

form {
    display: block;
}

label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

input, textarea, button {
    border: 1px solid #6e89b3;
    font-size: 14px;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: #6e89b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
    grid-column: span 2;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    grid-column: span 2;
    padding: 15px;
    font-size: 16px;
    width: auto;
    margin: 20px auto;
    display: block;
}

button:hover {
    background-color: #0056b3;
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#suggestions li {
    padding: 10px;
    cursor: pointer;
}

#suggestions li:hover {
    background-color: #f0f0f0;
}

.company_search_container {
    position: relative;
}


.form_fields label, 
.form_fields input, 
.form_fields textarea {
    display: block;
    margin-bottom: 10px;
}


label {
    margin-top: 28px;
    margin-bottom: 8px
}

input, textarea {
    box-sizing: border-box;
    padding: 8px;
    width: 100%;
}

form select {
    width: auto; /* Σταθερό μέγεθος */
    min-width: 200px; /* Ελάχιστο πλάτος */
    max-width: 300px; /* Μέγιστο πλάτος */
    border: 1px solid #6e89b3;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    color: #333;
    display: inline-block;
    background-color: white;
}

form select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.clickable_text {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.clickable_text:hover {
    text-decoration: none;
    color: #0056b3;
}


.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.emails-table {
    width: 96%;
    margin-left: 2%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
  }
  
  .emails-table th, .emails-table td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    text-align: left;
    white-space: nowrap;
     vertical-align: middle; /* Κεντράρει κάθετα το κείμενο */
  }
  .emails-table th {
    background-color: #f2f2f2;
    font-weight: bold;
  }
  
  .emails-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .emails-table td form {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1; /* Αλλάζουμε το line-height */
  }

.green_bullet {
    color: green; font-size: 30px; line-height: 14px;
}

.gray_bullet {
    color: #cbcbcb; font-size: 30px; line-height: 14px;
}

.recipient_company {
    font-size: 14px
}

.recipient_email {
    font-size: 18px
}


.tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
     max-width: 250px; /* Increased max width */
    text-align: left; /* Ensure text aligns left */
    white-space: nowrap;
     font-size: 0.9em; /* Smaller font size */
    overflow: hidden;
    text-overflow: ellipsis;
     max-height: 200px; /* Maximum height */
    overflow-y: auto;  /* Added scroll */
}
 .tooltip li{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88em
}

.tooltip ul{
    margin-top: 3px; 
     padding-left: 14px; /* Added padding instead of margin */
     list-style-type: none; /* Remove default bullet */
   }

.green_bullet:hover{
  cursor: pointer;
}

.textlink {
    cursor: pointer;
    font-weight: normal;
    font-size: 13px
}

.textlink:hover {
    color: Green
}