/* Email Signature Generator Styles - Pure CSS */

/* CSS Custom Properties */
:root {
    --primary: #5B6B9F;
    --brand-blue: #5B6B9F;
    --brand-magenta: #9B5B8F;
    --brand-coral: #C95B6B;
    --bg-light: #F3F4F6;
    --bg-sidebar: #FAFAFA;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.wwes_app-container {
    width: 100%;
    max-width: 100%;
    background-color: var(--white);
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

@media (min-width: 1024px) {
    .wwes_app-container {
        flex-direction: row;
    }
}

/* Sidebar */
.wwes_sidebar {
    width: 100%;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--gray-100);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 1024px) {
    .wwes_sidebar {
        width: 400px;
    }
}

/* Brand Header */
.wwes_brand-header {
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.wwes_brand-title {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.wwes_brand-icon {
    color: var(--brand-blue);
}

.wwes_brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.wwes_brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 2rem;
    margin-top: 5px;
}

/* Stepper Navigation */
.wwes_stepper-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.wwes_stepper-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.wwes_stepper-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
}
.wwes_stepper-item::before{
    display: none;
}
.wwes_stepper-item-active {
    background-color: var(--white);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
}

.wwes_stepper-item .wwes_stepper-circle{
    background-color:transparent;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.wwes_stepper-item.wwes_stepper-item-active .wwes_stepper-circle{
    background-color: #111827;
    color: #fff;
    border-color: #111827;
}
.wwes_stepper-item-inactive {
    border: 1px solid transparent;
    opacity: 0.6;
}

.wwes_stepper-item-inactive:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5);
}

.wwes_stepper-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
}

.wwes_stepper-circle-active {
    background-color: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.wwes_stepper-circle-inactive {
    border: 2px solid var(--gray-200);
    color: var(--gray-400);
}

.wwes_stepper-content {
    display: flex;
    flex-direction: column;
}

.wwes_stepper-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.wwes_stepper-item-inactive .wwes_stepper-title {
    color: var(--gray-600);
}

.wwes_stepper-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.wwes_stepper-item-inactive .wwes_stepper-subtitle {
    color: var(--gray-400);
}

.wwes_step-icon {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--brand-blue);
}

/* Generate Button */
.wwes_generate-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.wwes_btn-generate {
    width: 100%;
    padding: 1rem 1.5rem !important;
    border-radius: 9999px !important;
    background: linear-gradient(to right, var(--brand-coral), var(--brand-magenta)) !important;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer !important;
    box-shadow: var(--shadow-lg) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.wwes_btn-generate:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.wwes_btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wwes_generate-note {
    font-size: 0.625rem;
    text-align: center;
    color: var(--gray-400);
    margin-top: 0.75rem;
}

/* Content Area */
.wwes_content-area {
    flex: 1;
    background-color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.wwes_progress-bar-container {
    height: 0.375rem;
    width: 100%;
    background-color: var(--gray-50);
}

.wwes_progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-magenta));
    border-radius: 0 9999px 9999px 0;
    transition: width 0.5s ease;
}

/* Step Content */
.wwes_step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .wwes_step-content {
        padding: 3rem;
    }
}

/* Step Panels */
.wwes_step-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wwes_active {
    display: block;
}

.wwes_step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.wwes_step-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.wwes_step-description {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Form Elements */
.wwes_form-group {
    margin-bottom: 1rem;
}

.wwes_form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wwes_form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wwes_form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.wwes_form-input,
.wwes_form-select {
  width: 100% !important;
    padding: 0.875rem !important;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s !important;
    height:auto !important;
}

.wwes_form-input:focus,
.wwes_form-select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--brand-blue);
}

/* Logo Upload */
.wwes_logo-upload-zone {
    border: 2px dashed var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wwes_logo-upload-zone:hover {
    border-color: var(--brand-blue);
    background-color: rgba(91, 107, 159, 0.03);
}

.wwes_logo-upload-icon {
    font-size: 2.5rem;
    color: var(--gray-400);
    display: block;
    margin-bottom: 0.5rem;
}

.wwes_logo-upload-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.wwes_logo-upload-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.wwes_logo-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wwes_logo-preview-img {
    height: 3rem;
    width: 3rem;
    object-fit: contain;
}

.wwes_logo-filename {
    font-size: 0.875rem;
    color: var(--gray-600);
    flex: 1;
}

.wwes_logo-remove-btn {
    background: none;
    border: none;
    color: var(--red-500);
    cursor: pointer;
}

.wwes_logo-remove-btn:hover {
    color: var(--red-600);
}

/* Template Cards */
.wwes_template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wwes_template-card {
    cursor: pointer;
}

.wwes_template-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wwes_template-card-content {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.wwes_template-card-content:hover {
    border-color: var(--brand-blue);
}

.wwes_template-card input:checked+.wwes_template-card-content {
    border-color: var(--brand-blue);
    background-color: rgba(91, 107, 159, 0.05);
}

.wwes_template-preview {
    aspect-ratio: 16 / 9;
    background: linear-gradient(to bottom right, var(--gray-50), var(--gray-100));
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wwes_template-preview-text {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.wwes_template-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Style Customization */
.wwes_style-group {
    margin-bottom: 1.5rem;
}
.wwes_style-group input[type="color"]{
    padding:0px;
    border: none;
}
.wwes_color-input {
    width: 100%;
    height: 3rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.wwes_range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

html body .wwes_range-input {
    flex: 1;
    padding: 0;
}

.wwes_range-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    width: 3rem;
}

/* Navigation Buttons */
.wwes_nav-buttons {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wwes_btn-prev {
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.wwes_btn-prev:hover {
    color: var(--gray-900);
}

html body .wwes_btn-next {
    margin-left: auto;
    padding: 0.875rem 2rem !important;
    border-radius: 9999px !important;
    background-color: var(--gray-900) !important;
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    transition: background-color 0.2s !important;
}

.wwes_btn-next:hover {
    background-color: var(--gray-800);
}

html body .wwes_hidden {
    display: none !important;
}

/* Modal */
.wwes_modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.wwes_modal-overlay.wwes_active {
    display: flex;
}

.wwes_modal-container {
    background-color: var(--white);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.wwes_modal-header {
    padding: 10px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wwes_modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0 !important;
}
.wwes_swal-loader p{
    margin: 0;
}
.wwes_swal-popup{
    padding: 20px;
}
.swal2-icon.swal2-warning{
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.wwes_modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.wwes_modal-close:hover {
    background-color: var(--gray-100);
}

.wwes_modal-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.wwes_signature-preview {
    padding: 1.5rem;
    background-color: var(--gray-50);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.wwes_signature-preview table{
    margin: 0 auto;
}
.wwes_html-code-section {
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 0.75rem;
}

.wwes_html-code-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.wwes_html-code-textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-family: monospace;
    resize: none;
}

.wwes_modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.75rem;
}

.wwes_btn-copy-html,
.wwes_btn-copy-rich {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.wwes_btn-copy-html {
    background-color: var(--gray-100) !important;
    color: var(--gray-700);
}

.wwes_btn-copy-html:hover {
    background-color: var(--gray-200) !important;
}

.wwes_btn-copy-rich {
    background-color: var(--gray-900) !important;
    color: var(--white);
}

.wwes_btn-copy-rich:hover {
    background-color: var(--gray-800) !important;
}

/* Custom Scrollbar */
.wwes_custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.wwes_custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.wwes_custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Material Symbols sizing */
.material-symbols-outlined.wwes_text-sm {
    font-size: 0.875rem;
}

/* Template Card Selection */
.wwes_template-card {
    cursor: pointer;
    display: block;
}

.wwes_template-card-content {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.2s;
    overflow: hidden;
}

.wwes_template-radio:checked+.wwes_template-card-content {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(91, 107, 159, 0.15);
}

.wwes_template-card:hover .wwes_template-card-content {
    border-color: var(--gray-300);
}

.wwes_template-radio:checked+.wwes_template-card-content {
    border-color: var(--brand-blue);
}

/* Template Preview Container */
.wwes_tpl-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.wwes_tpl-preview-light {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

/* Dark Header Bar - Hidden for white templates */
.wwes_tpl-header-bar {
    display: none;
}

/* Body Content - Horizontal */
.wwes_tpl-body-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wwes_tpl-body-reverse {
    flex-direction: row-reverse;
}

/* Body Content - Centered */
.wwes_tpl-body-center {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Body Top Right - Avatar in corner */
.wwes_tpl-body-top-right {
    padding: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* Avatar Circle */
.wwes_tpl-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
}

.wwes_tpl-avatar-gray {
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
}

/* Text Lines */
.wwes_tpl-text-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wwes_tpl-text-center {
    align-items: center;
}

.wwes_tpl-text-right {
    align-items: flex-end;
}

.wwes_tpl-text-full {
    padding: 0 0.75rem;
    width: 100%;
}

.wwes_tpl-line-bar {
    height: 7px;
    background: var(--gray-200);
    border-radius: 4px;
}

.wwes_tpl-line-gray {
    background: var(--gray-200);
}

.wwes_tpl-line-lg {
    width: 90px;
}

.wwes_tpl-line-md {
    width: 70px;
}

.wwes_tpl-line-sm {
    width: 50px;
}

/* Footer Row */
.wwes_tpl-footer-row {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wwes_tpl-footer-end {
    justify-content: flex-end;
}

/* Chart Icon */
.wwes_tpl-chart-icon {
    width: 22px;
    height: 16px;
    background: var(--gray-200);
    border-radius: 3px;
}

.wwes_tpl-chart-gray {
    background: var(--gray-200);
}

/* Social Circles */
.wwes_tpl-social-circles {
    display: flex;
    gap: 5px;
}

.wwes_tpl-social-circles span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.wwes_tpl-circles-gray span {
    background: var(--gray-300);
}

/* Template Name */
.wwes_template-name {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}
.swal2-container .swal2-confirm{
    background-color: #000;
    color: #FFF;
}
.swal2-container .swal2-actions{
    margin: 10px 0 0 0;
}
.swal2-container .swal2-title{
    padding: 10px 0;
    margin: 0;
}
.swal2-container .swal2-html-container{
    padding: 0px;
}

@media screen and (max-width:575px){
    .wwes_modal-footer{
        flex-direction: column;
    }
    .wwes_modal-footer .step-divider{
        display:none;
    }
}
@media screen and (max-width:430px){
    .wwes_template-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .wwes_template-name{
        margin: 0;
    }
    .wwes_template-card{
        max-width: 80%;
        margin: 0 auto;
    }
}