/* Email Signature Generator Styles */
.signature-generator-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.signature-generator-header {
    text-align: center;
    margin-bottom: 30px;
}

.signature-generator-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.signature-generator-header p {
    color: #666;
    font-size: 16px;
}

.signature-generator-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.signature-form-container {
    flex: 1;
    max-width: 400px;
}

.signature-preview-container {
    flex: 1;
    min-width: 500px;
}

.signature-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28B2A2;
    box-shadow: 0 0 0 2px rgba(40, 178, 162, 0.2);
}

.logo-preview {
    margin-top: 10px;
    min-height: 50px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.logo-preview img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #28B2A2;
    color: white;
}

.btn-primary:hover {
    background-color: #239c8e;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #28B2A2;
}

.preview-header h3 {
    margin: 0;
    color: #333;
}

.preview-toggle {
    display: flex;
    gap: 5px;
}

.preview-toggle .btn {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.preview-toggle .btn.active {
    background: #28B2A2;
    color: white;
    border-color: #28B2A2;
}

.signature-preview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    min-height: 200px;
    overflow-x: auto;
}

.signature-html {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.signature-html textarea {
    width: 100%;
    height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    resize: vertical;
}

.preview-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Typography and Color Controls */
.form-group input[type="color"] {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Social Media Icon Upload */
.social-icon-upload {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.social-icon-upload label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.social-icon-upload input[type="file"] {
    margin-bottom: 10px;
}

.social-icon-upload button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.social-icon-upload button:hover {
    background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signature-generator-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .signature-preview-container {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Signature styles to ensure proper display */
.signature-preview table {
    border-collapse: collapse;
    max-width: 100%;
}

.signature-preview img {
    max-width: 100%;
    height: auto;
}

.signature-preview a {
    text-decoration: none;
}

.signature-preview a:hover {
    text-decoration: underline;
}

/* Success messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}