/**
 * UF/IFAS Email Signature Generator - Styles
 * Version: 1.1.1
 * Last Updated: 2026-02-05
 * Author: Joe Gasper - IFAS IT
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    color: #0021AB;
    margin-bottom: 30px;
    text-align: center;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #0021AB;
    margin-bottom: 20px;
    font-size: 20px;
}

.section-divider {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.logo-county-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.logo-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.logo-selector {
    display: flex;
    flex-direction: column;
}

.logo-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.logo-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #FA4616;
    outline-offset: 2px;
    border-color: #FA4616;
}

.preview-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-section h2 {
    color: #0021AB;
    margin-bottom: 20px;
    font-size: 20px;
}

.signature-preview {
    border: 2px dashed #ddd;
    padding: 20px;
    background: #ffffff;
    margin-bottom: 20px;
    min-height: 200px;
}

/* Signature Styles - Table-based for Outlook compatibility */
#signature-table {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    color: #0021AB;
    font-size: 13.33px;
    line-height: 1.5;
    font-weight: 500;
    border-collapse: collapse;
}

#signature-table a {
    color: #0021AB;
    font-size: 13.33px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
}

#signature-table a:hover {
    text-decoration: underline;
}

#signature-table td {
    padding: 0;
    margin: 0;
}

.signature-bold {
    font-weight: 700;
}

#main-logo {
    display: block;
}

#county-logo {
    display: none;
    margin-top: 5px;
}

.university-name {
    color: #22884C;
}

#signature-table div {
    margin: 0;
    padding: 0;
}

.copy-button {
    background-color: #FA4616;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.copy-button:hover:not(:disabled) {
    background-color: #d63a0f;
}

.copy-button:active:not(:disabled) {
    background-color: #b32f0a;
}

.copy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-button:focus {
    outline: 2px solid #0021AB;
    outline-offset: 2px;
}

.button-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.success-message {
    color: #28a745;
    font-weight: 600;
    visibility: hidden;
}

.success-message.show {
    visibility: visible;
}

.reset-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: #5a6268;
}

.reset-button:active {
    background-color: #545b62;
}

.reset-button:focus {
    outline: 2px solid #0021AB;
    outline-offset: 2px;
}

.copy-html-button {
    background-color: #0021AB;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.copy-html-button:hover:not(:disabled) {
    background-color: #001a8a;
}

.copy-html-button:active:not(:disabled) {
    background-color: #001470;
}

.copy-html-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-html-button:focus {
    outline: 2px solid #FA4616;
    outline-offset: 2px;
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-columns {
        grid-template-columns: 1fr;
    }

    .logo-county-row {
        flex-direction: column;
    }
}

/* Hidden class for empty rows */
.hideEmptyRow {
    display: none !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
