main#main {
    width: 100%;
}


.page-container {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; */
    /* background: linear-gradient(135deg, #e8f0ff 0%, #f0f4ff 100%); */
    min-height: 100vh;
    padding: 2rem;
}

.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.email-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-icon::before {
    content: "✉";
    color: white;
    font-size: 1.5rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-text {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.panel-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.panel-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.panel-content {
    padding: 1.5rem;
}

.prompt-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.prompt-input:focus {
    outline: none;
    border-color: #667eea;
}

.prompt-input::placeholder {
    color: #9ca3af;
}

.generate-button {
    width: 100%;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background-image: linear-gradient(40deg, rgb(51 156 254), rgb(11 18 34));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.generate-button:hover {
    transform: translateY(-2px);
}

/* .generate-button::before {
    content: "✨";
} */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 300px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    color: #9ca3af;
    font-size: 0.95rem;
}

.generated-content {
    padding: 1.5rem;
    display: none;
    /* position: relative; */
}

.copy-button {
    position: absolute;
    top: 1rem;
    right: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    z-index: 10;
    transition: 0.3s ease-in-out;
}

.copy-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.copy-button::before {
    content: "📋";
    display: none;
}

.email-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-line;
    min-height: 200px;
    max-height: 630px;
    overflow: auto;
}

.Message {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 15;
    display: none;
}

.templates-box {
    padding: 1.5rem;
}

.templates-header {
    margin-bottom: 1.5rem;
}

.templates-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.templates-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.template-card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: #e9effc;
    transition: 0.3s ease-in-out;
}

.template-card:hover .template-icon{
     background: #95a0ea8a;
}
.template-icon {
    /* font-size: 1.25rem; */
    /* margin-bottom: 0.75rem; */
    display: block;
    background: #e8e9ff;
    height: 22px;
    padding: 2px;
    border-radius: 5px;
}

.template-title {
    font-weight: 600;
    color: #1f2937;
    /* margin-bottom: 0.5rem; */
    font-size: 1rem;
}

.template-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.pro-tips-box {
    padding: 1.5rem;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tips-icon {
    font-size: 1.25rem;
}

.tips-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list li {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.tips-list li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.active-state .generated-content {
    display: block;
}

.active-state .empty-state {
    display: none;
}

/* Loading Skeleton Styles */
.skeleton-email {
    display: none;
    padding: 1rem;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.top {
    width: 40%;
    margin-bottom: 1.5rem;
}

.skeleton-line.bottom {
    width: 80%;
    margin-top: 1rem;
}

.skeleton-line.Lowerbottom {
    width: 50%;
}

p.panel-subtitle {
    margin-bottom: 0;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
   
    
    .main-title {
        font-size: 2rem;
    }
    
    .page-container {
        padding: 1rem;
    }
    
    .copy-button {
        position: absolute;
        top: 20px;
        right: 20px;
        margin-bottom: 1rem;
        width: fit-content;
    }
    
    .email-content {
        margin-top: 0;
    }
}

.templateIconDiv {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

span.template-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

button#ButtonGenerate img {
    width: 20px;
    height: 20px;
}
@media(min-width:992px) and (max-width:1199px){
    .templates-grid{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media(max-width:767px){
    .templates-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media(min-width:768px) and (max-width:991px){
.templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.single-tools.single-post .post-blog ul.tips-list {
    padding-left: 0;
}
.single-tools.single-post .post-blog ul.tips-list li {
    margin-left: 10px;
    margin-bottom: 10px;
}

.email-content {
    overflow-y: scroll;
    scrollbar-width: none; 
}
.email-content::-webkit-scrollbar {
    display: none; 
}




@media(max-width:575px){

p.panel-title {
    font-size: 18px;
}
p.panel-subtitle {
    font-size: 12px;
}
.panel-header {
    padding: 15px;
}
.panel-content {
    padding: 15px;
}
button#ButtonGenerate {
    padding: 8px 20px;
    font-size: 14px;
}
.page-container {
    padding-left: 0;
    padding-right: 0;
}
p.templates-title {
    font-size: 20px;
}
p.templates-subtitle {
    font-size: 14px;
}
.templates-box {
    padding: 15px;
}
.template-card {
    padding: 15px;
}
div#emptyState {
    padding: 30px 20px;
}
.pro-tips-box {
    padding: 15px;
}
.single-tools.single-post .post-blog ul.tips-list li {
    font-size: 14px;
}
.empty-subtitle {
    font-size: 14px;
}
button#copyButton {
    font-size: 12px;
    right: 10px;
    top: 15px;
}
div#generatedContent {
    padding: 15px;
}
div#emailContent {
    padding: 15px;
}

    }
    
/* Tone Dropdown Styling */
.prompt-tone-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    appearance: none; /* Removes default browser arrow */
    background-image: url("data:image/svg+xml;utf8,");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
}

.prompt-tone-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.prompt-tone-input option {
    padding: 0.75rem;
    font-size: 1rem;
    color: #374151;
}
.custom-tone {
    margin-top: 0.75rem;
}
.empty-icon img {
    max-width: 64px !important;
}
span.tips-icon img {
    max-width: 40px !important;
}