html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

ul {
    margin: 0;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#content-header h1 {
    margin: 0;
    font-size: 24px;
    color: #202123;
    font-weight: 600;
}

#content-main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ms-TextField {
    width: 100%;
    margin-bottom: 20px;
}

.ms-TextField-field {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.ms-TextField-field:focus {
    outline: none;
    border-color: #E6C34A;
    box-shadow: 0 0 0 2px rgba(230, 195, 74, 0.1);
}

/* Stile per il selettore del tono */
#tone-selector {
    width: 50%;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 20px;
    min-height: auto;
    display: block;
    transition: border-color 0.2s ease;
}

#tone-selector:focus {
    outline: none;
    border-color: #E6C34A;
    box-shadow: 0 0 0 2px rgba(230, 195, 74, 0.1);
}

.ms-Button {
    background-color: #E6C34A;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 14px;
}

.ms-Button:hover {
    background-color: #D4B23D;
}

.ms-Button:disabled {
    background-color: #e5e5e5;
    cursor: not-allowed;
}

/* Stile per il logo rotante */
.loading-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stile per il container del messaggio di caricamento */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

#response-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #FEFBF0;
    border-radius: 8px;
}

#ai-response {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    line-height: 1.6;
    font-size: 14px;
    color: #202123;
    border: 1px solid #F5EFE0;
}

#ai-response strong {
    font-weight: 600;
}

#ai-response em {
    font-style: italic;
}

#ai-response u {
    text-decoration: underline;
}

#ai-response br {
    margin-bottom: 0.5em;
}

/* Stili per l'area di debug */
#debug-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #FEFBF0;
    border-radius: 8px;
}

.debug-area {
    background-color: #1e1e1e;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #2d2d2d;
}

.log-entry {
    margin: 2px 0;
    padding: 2px 0;
    border-bottom: 1px solid #333;
}

.log-info {
    color: #4ec9b0;
}

.log-warn {
    color: #dcdcaa;
}

.log-error {
    color: #f14c4c;
}

/* Stili per le etichette */
.ms-Label {
    font-size: 14px;
    font-weight: 500;
    color: #202123;
    margin-bottom: 8px;
    display: block;
}

/* Stili per i titoli delle sezioni */
h3 {
    font-size: 16px;
    font-weight: 600;
    color: #202123;
    margin: 0 0 15px 0;
} 

/* Text area risposta email */
#user-input{
    box-sizing: border-box;
}

#summary-container{
    display: none;
    background-color: #FEFBF0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.summary-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0
}

.summary-header h3 {
  margin: 0;
  flex: 1;
  white-space: nowrap;
}

.summary-header .right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.copy-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #202123;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-icon:hover {
    background-color: rgba(230, 195, 74, 0.1);
    color: #E6C34A;
}

.copy-icon:active {
    transform: scale(0.95);
}

.top-container{
    display: flex;
    justify-content: flex-end;
    position: relative;
    button{
        position: absolute;
        right: 0;
        display: none
    }
}

div.testing-alert{
    color: red;
}