/* ============== ESTILOS PARA VENTANA DE CONTACTO WINDOWS XP ============== */

.contact-window-xp {
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    color: #000;
    height: 100%;
    background: #ECE9D8;
    display: flex;
    flex-direction: column;
}

/* ============== TOOLBAR ESTILO WINDOWS XP ============== */
.toolbar-xp {
    background: linear-gradient(to bottom, #F7F6F0, #E8E5D7);
    border-bottom: 1px solid #ACA899;
    padding: 2px 4px;
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 28px;
}

.toolbar-group {
    display: flex;
    gap: 1px;
    margin-right: 6px;
    position: relative;
}

.toolbar-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: linear-gradient(to bottom, #ACA899, #F7F6F0, #ACA899);
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 6px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: linear-gradient(to bottom, #FEFEFE, #E8E5D7);
    border: 1px outset #ACA899;
}

.toolbar-btn:active {
    background: linear-gradient(to bottom, #E8E5D7, #FEFEFE);
    border: 1px inset #ACA899;
}

.toolbar-btn img {
    margin-right: 2px;
}

/* ============== FORMULARIO EMAIL ESTILO WINDOWS XP ============== */
.email-form-xp {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    margin: 0;
    border: none;
}

.email-header-section {
    background: #FFFFFF;
    border-bottom: 1px solid #ACA899;
    padding: 8px;
}

.email-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.email-label {
    min-width: 50px;
    font-weight: normal;
    color: #000;
    text-align: right;
    font-size: 11px;
}

.email-input,
.email-input-to {
    flex: 1;
    border: 2px inset #ECE9D8;
    padding: 2px 4px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    background: #FFFFFF;
    color: #000;
    height: 18px;
}

.email-input-to {
    background: #F0F0F0;
    color: #666;
}

.email-input:focus {
    outline: none;
    border-color: #316AC5;
}

.address-btn {
    background: linear-gradient(to bottom, #F8F8F8, #E8E8E8);
    border: 1px outset #ACA899;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.address-btn:hover {
    background: linear-gradient(to bottom, #FEFEFE, #E8E8E8);
}

.address-btn:active {
    border: 1px inset #ACA899;
    background: linear-gradient(to bottom, #E8E8E8, #FEFEFE);
}

/* ============== ÁREA DEL MENSAJE ============== */
.email-body-section {
    flex: 1;
    padding: 8px;
    background: #FFFFFF;
}

.email-textarea {
    width: 100%;
    height: 100%;
    border: 2px inset #ECE9D8;
    padding: 4px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    background: #FFFFFF;
    color: #000;
    resize: none;
    box-sizing: border-box;
    min-height: 200px;
}

.email-textarea:focus {
    outline: none;
    border-color: #316AC5;
}

/* ============== FOOTER ============== */
.email-footer-section {
    background: #ECE9D8;
    border-top: 1px solid #ACA899;
    padding: 4px 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.status-text {
    font-size: 11px;
    color: #000;
}

/* ============== SCROLL BARS ESTILO WINDOWS XP ============== */
.contact-window-xp::-webkit-scrollbar,
.email-textarea::-webkit-scrollbar {
    width: 16px;
}

.contact-window-xp::-webkit-scrollbar-track,
.email-textarea::-webkit-scrollbar-track {
    background: #ECE9D8;
    border: 1px solid #ACA899;
}

.contact-window-xp::-webkit-scrollbar-thumb,
.email-textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ECE9D8, #D6D3CE);
    border: 1px solid #ACA899;
    min-height: 16px;
}

.contact-window-xp::-webkit-scrollbar-thumb:hover,
.email-textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #D6D3CE, #B6B3AA);
}

.contact-window-xp::-webkit-scrollbar-button,
.email-textarea::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, #ECE9D8, #D6D3CE);
    border: 1px solid #ACA899;
    height: 16px;
}

.contact-window-xp::-webkit-scrollbar-button:hover,
.email-textarea::-webkit-scrollbar-button:hover {
    background: linear-gradient(to bottom, #D6D3CE, #B6B3AA);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 500px) {
    .toolbar-xp {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .toolbar-btn {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .email-field-row {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    
    .email-label {
        text-align: left;
        min-width: auto;
    }
    
    .email-textarea {
        min-height: 150px;
    }
}