*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}


#imap-test-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

button {
    background-color: #008CBA;
    color: #ffffff;
    cursor: pointer;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #006699;
}

#ssl-required{
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.form-group label {
    display: inline;
    vertical-align: middle;
}

.result-buttons-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.result-button:hover {
    background-color: #2980b9;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -60px; /* Half the height */
    margin-left: -60px; /* Half the width */
    display: none; /* Hide by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#copy-to-clipboard{
    font-size: 0.8rem;
}

#result-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#result-container {
    padding: 20px;
    background-color: #f9f9f9;
}

#results-text {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
}

.result-section {
    padding: 10px;
    margin-bottom: 10px; 
    border-bottom: 1px solid #ccc; 
}

.result-section h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.result-section p {
    margin: 5px 0;
}

.input-data-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); 
    border-bottom: 1px solid #ccc; 
    gap: 5px;
}

@media screen and (max-width: 900px) { 
    .input-data-container {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(4, auto);
    }
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
  }
  
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .modal-button {
    margin: 10px;
    padding: 10px 20px;
  }
  