.email-composer {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    color: #495057;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h4 i {
    margin-right: 10px;
    color: #667eea;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary-modern:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.template-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.template-preview h6 {
    color: #495057;
    margin-bottom: 10px;
}

.stats-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
}

.alert-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 10px;
}

.attachment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attachment-item input[type="checkbox"] {
    margin-right: 10px;
}

.attachment-item label {
    margin: 0;
    flex: 1;
    cursor: pointer;
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .email-composer {
        margin: 10px;
        border-radius: 10px;
    }

    .form-section {
        padding: 15px;
    }

    .form-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .stats-row {
        padding: 20px 15px;
        margin: 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .input-group .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    .d-flex.justify-content-between .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-group-sm .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .d-flex.justify-content-center {
        flex-direction: column;
        gap: 10px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .attachment-item {
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .attachment-item input[type="checkbox"] {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .d-none.d-md-block {
        display: none !important;
    }

    .d-md-none {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 5px;
    }

    .email-composer {
        margin: 5px;
    }

    .form-section {
        padding: 10px;
    }

    .stats-row {
        padding: 15px 10px;
        margin: 5px;
    }

    .stat-item {
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    small {
        font-size: 0.75rem;
    }
}