/* Gmail Signature Generator Addon Styles */

/* Перебиваем стили WordPress для правильного позиционирования логотипа */
.yan-tools-gmail-signature-generator td {
    vertical-align: revert-layer !important;
}

.yan-tools-gmail-signature-generator {
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.yan-tools-gmail-signature-generator .yan-tools-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.yan-tools-gmail-signature-generator .yan-tools-header h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.yan-tools-gmail-signature-generator .yan-tools-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.yan-tools-gmail-signature-generator .yan-tools-main-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Форма конструктора - три колонки */
.yan-tools-signature-form-three-columns {
    padding: 30px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 15% 70% 15%;
    gap: 20px;
}

.yan-tools-form-column-left,
.yan-tools-form-column-center,
.yan-tools-form-column-right {
    display: flex;
    flex-direction: column;
}

.yan-tools-form-column-right {
    margin-right: 20px;
}

.yan-tools-form-column-center {
    overflow: hidden;
}

.yan-tools-form-column-left h3,
.yan-tools-form-column-right h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.3em;
    font-weight: 600;
}

.yan-tools-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.yan-tools-form-group {
    display: flex;
    flex-direction: column;
}

.yan-tools-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.yan-tools-form-group input,
.yan-tools-form-group select,
.yan-tools-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.yan-tools-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.yan-tools-form-group input[type="color"] {
    height: 45px;
    padding: 4px;
    cursor: pointer;
}

.yan-tools-form-group input:focus,
.yan-tools-form-group select:focus,
.yan-tools-form-group textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.yan-tools-help-text {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Социальные сети */
.yan-tools-social-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yan-tools-social-inputs input {
    width: 100%;
}

/* Загрузка логотипа */
.yan-tools-logo-upload {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yan-tools-logo-upload #logo-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.yan-tools-logo-upload #logo-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.yan-tools-logo-upload #logo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопки */
.yan-tools-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.yan-tools-btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.yan-tools-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.yan-tools-btn-primary:active {
    transform: translateY(0);
}

.yan-tools-btn-large {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 200px;
}

.yan-tools-btn-secondary {
    background: #6c757d;
    color: white;
}

.yan-tools-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.yan-tools-btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
}

.yan-tools-btn-danger:hover {
    background: #c82333;
}

.yan-tools-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Карусели */
.yan-tools-dividers-carousel,
.yan-tools-templates-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.yan-tools-dividers-wrapper,
.yan-tools-templates-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.yan-tools-dividers-wrapper:active,
.yan-tools-templates-wrapper:active {
    cursor: grabbing;
}

.yan-tools-dividers,
.yan-tools-templates {
    display: flex;
    gap: 10px;
    transition: transform 0.1s ease-out;
    width: max-content;
    will-change: transform;
}

.yan-tools-carousel-prev,
.yan-tools-carousel-next {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.yan-tools-carousel-prev:hover,
.yan-tools-carousel-next:hover {
    background: #357ae8;
    transform: scale(1.1);
}

.yan-tools-carousel-prev:disabled,
.yan-tools-carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Разделители */
.yan-tools-dividers {
    margin-bottom: 0;
}

.yan-tools-divider-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 100px;
}

.yan-tools-divider-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.yan-tools-divider-checkbox:hover {
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.yan-tools-divider-checkbox input[type="radio"] {
    display: none;
}

.yan-tools-divider-checkbox input[type="radio"]:checked + .yan-tools-divider-preview {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.yan-tools-divider-checkbox input[type="radio"]:checked ~ span {
    color: #4285f4;
    font-weight: 600;
}

.yan-tools-divider-preview {
    width: 100%;
    height: 30px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    position: relative;
    overflow: hidden;
}

.yan-tools-divider-preview[data-style="none"] {
    background: transparent;
}

.yan-tools-divider-preview[data-style="short-left"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--divider-color, #333);
    opacity: 0.3;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="long"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--divider-color, #333);
    opacity: 0.3;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="wide"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--divider-color, #333);
    opacity: 0.5;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="filled"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--divider-color, #333);
    opacity: 0.3;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="gradient"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--divider-color, #333), transparent);
    opacity: 0.5;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="dotted"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-top: 2px dotted var(--divider-color, #333);
    opacity: 0.4;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="dashed"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-top: 2px dashed var(--divider-color, #333);
    opacity: 0.4;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="double"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    border-top: 3px double var(--divider-color, #333);
    opacity: 0.4;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="elegant"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    border-top: 1px solid var(--divider-color, #333);
    border-bottom: 1px solid var(--divider-color, #333);
    background: linear-gradient(to right, transparent, var(--divider-color, #333), transparent);
    opacity: 0.3;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="gradient-vertical"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, rgba(51, 51, 51, 0.3), var(--divider-color, #333), rgba(51, 51, 51, 0.3));
    opacity: 0.6;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="gradient-diagonal"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, transparent 0%, rgba(51, 51, 51, 0.4) 25%, var(--divider-color, #333) 50%, rgba(51, 51, 51, 0.4) 75%, transparent 100%);
    opacity: 0.5;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="thick-light"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--divider-color, #333);
    opacity: 0.15;
    border-radius: 3px;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="thick-light-gradient"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, rgba(51, 51, 51, 0.2), var(--divider-color, #333), rgba(51, 51, 51, 0.2));
    opacity: 0.2;
    border-radius: 3px;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="wave"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-top: 2px solid var(--divider-color, #333);
    opacity: 0.4;
    border-radius: 50px;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="dots-pattern"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: radial-gradient(circle, var(--divider-color, #333) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="shadow"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-top: 2px solid var(--divider-color, #333);
    opacity: 0.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="multi-line"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 5px;
    border-top: 1px solid var(--divider-color, #333);
    border-bottom: 1px solid var(--divider-color, #333);
    background: var(--divider-color, #333);
    background-clip: content-box;
    padding: 1px 0;
    opacity: 0.3;
    transform: translateY(-50%);
}

.yan-tools-divider-preview[data-style="gradient-rainbow"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd);
    opacity: 0.6;
    transform: translateY(-50%);
}

.yan-tools-divider-checkbox span {
    font-size: 11px;
    color: #495057;
    text-align: center;
    font-weight: 500;
}

/* Шаблоны */
.yan-tools-templates {
    margin-bottom: 0;
}

.yan-tools-template-item {
    flex-shrink: 0;
    min-width: 120px;
}

.yan-tools-template-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.yan-tools-template-item:hover {
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.yan-tools-template-item.active {
    border-color: #4285f4;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.yan-tools-template-preview {
    width: 100%;
    min-height: 80px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yan-tools-template-preview-content {
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.yan-tools-template-preview-content.modern {
    border-left: 3px solid #4285f4;
    padding-left: 8px;
}

.yan-tools-template-preview-content.minimal {
    font-size: 12px;
    font-weight: 600;
}

.yan-tools-template-preview-content.corporate {
    border-top: 2px solid #333;
    padding-top: 8px;
}

.yan-tools-template-preview-content.colorful {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.yan-tools-template-preview-content.two-column {
    font-size: 10px;
    overflow: hidden;
}

.yan-tools-template-preview-content.two-column::after {
    content: '';
    display: table;
    clear: both;
}

.yan-tools-template-preview-content.two-column-modern {
    font-size: 10px;
    overflow: hidden;
}

.yan-tools-template-preview-content.two-column-modern::after {
    content: '';
    display: table;
    clear: both;
}

.yan-tools-template-preview-content.two-column-right {
    font-size: 10px;
    overflow: hidden;
}

.yan-tools-template-preview-content.two-column-right::after {
    content: '';
    display: table;
    clear: both;
}

.yan-tools-template-preview-content.inverted {
    background: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.yan-tools-template-preview-content.inverted-modern {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.yan-tools-template-preview-content.inverted-gradient {
    background: #333;
    color: white;
    padding: 8px;
    border-left: 3px solid white;
}

.yan-tools-template-preview-content.business {
    font-size: 10px;
    opacity: 0.7;
}

.yan-tools-template-preview-content.business-minimal {
    font-size: 9px;
    opacity: 0.6;
    border-left: 1px solid #ccc;
    padding-left: 5px;
}

.yan-tools-template-preview-content.business-formal {
    font-size: 9px;
    opacity: 0.6;
    border-top: 1px solid #ccc;
    padding-top: 5px;
}

.yan-tools-template-preview-content.creative-large {
    text-align: center;
    padding: 10px;
    font-size: 10px;
    line-height: 1.6;
}

.yan-tools-template-preview-content.creative-large.colorful {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border-radius: 4px;
}

.yan-tools-template-item span {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    text-align: center;
}

.yan-tools-template-item.active span {
    color: #4285f4;
    font-weight: 600;
}

/* Настройки дизайна */
.yan-tools-design-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.yan-tools-design-settings .yan-tools-form-group {
    margin-bottom: 0;
}

/* Предпросмотр подписи */
.yan-tools-signature-preview {
    min-height: 200px;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: auto;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 0 rgba(0, 0, 0, 0), 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(0, 0, 0, 0);
}

/* Галерея цветов */
.yan-tools-color-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yan-tools-color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.yan-tools-gradient-item {
    border-radius: 8px;
}

.yan-tools-color-item:hover {
    transform: scale(1.1);
    border-color: #333;
}

.yan-tools-color-item.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Модальное окно */
.yan-tools-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.yan-tools-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.yan-tools-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yan-tools-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.yan-tools-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.yan-tools-modal-close:hover {
    color: #333;
}

.yan-tools-modal-body {
    padding: 20px;
}

.yan-tools-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.yan-tools-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.yan-tools-signature-preview-content {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.yan-tools-signature-preview-content[contenteditable="true"] {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    padding: 10px;
    min-height: 100px;
    background: #f8f9fa;
}

/* Панель управления предпросмотром */
.yan-tools-preview-controls {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

/* Панель инструментов редактирования */
.yan-tools-editing-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.yan-tools-toolbar-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 35px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yan-tools-toolbar-btn:hover {
    background: #e9ecef;
    border-color: #4285f4;
}

.yan-tools-toolbar-btn:active {
    background: #dee2e6;
    transform: scale(0.95);
}

/* Секция копирования */
.yan-tools-copy-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Модальное окно для кропа */
.yan-tools-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.yan-tools-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.yan-tools-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.yan-tools-modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.3em;
}

.yan-tools-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.yan-tools-modal-close:hover {
    color: #dc3545;
}

.yan-tools-modal-body {
    padding: 20px;
}

.yan-tools-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

#crop-container {
    width: 100%;
    max-height: 400px;
    overflow: auto;
    text-align: center;
}

#crop-container img {
    max-width: 100%;
    height: auto;
}

/* Иконки */
.yan-tools-icon-copy::before {
    content: "📋";
    margin-right: 8px;
}

/* Уведомления */
.yan-tools-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-family: inherit;
}

.yan-tools-notification.show {
    transform: translateX(0);
}

.yan-tools-notification-success {
    background: #28a745;
}

.yan-tools-notification-error {
    background: #dc3545;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .yan-tools-signature-form-three-columns {
        grid-template-columns: 20% 60% 20%;
    }
}

@media (max-width: 968px) {
    .yan-tools-signature-form-three-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .yan-tools-templates {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .yan-tools-gmail-signature-generator {
        padding: 15px;
    }
    
    .yan-tools-signature-form {
        padding: 20px;
    }
    
    .yan-tools-templates {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yan-tools-modal-content {
        max-width: 100%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .yan-tools-gmail-signature-generator .yan-tools-header h2 {
        font-size: 1.8em;
    }
    
    .yan-tools-gmail-signature-generator .yan-tools-header p {
        font-size: 1em;
    }
    
    .yan-tools-templates {
        grid-template-columns: 1fr;
    }
    
    .yan-tools-btn-large {
        width: 100%;
    }
}

/* Анимации */
@keyframes yan-tools-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yan-tools-signature-preview-content {
    animation: yan-tools-fadeIn 0.3s ease-in-out;
}

