/* =========================================
   Global & Typography
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0b12;
    color: #f0f8ff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   Header
   ========================================= */
.header {
    background-color: #121420;
    padding: 1.5rem 0;
    border-bottom: 1px solid #1c1e26;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: #a0a0a0;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav a:hover {
    color: #f0f8ff;
}

.btn-header {
    background-color: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.btn-header:hover {
    background-color: #3e38c9;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: #f0f8ff;
    cursor: pointer;
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
    padding: 2rem 1rem;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.generator-section {
    background-color: #121420;
    border: 1px solid #1c1e26;
    border-radius: 1rem;
    padding: 4rem;
}

.generator-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.text-content {
    flex: 1 1 400px;
    text-align: left;
}

.illustration-content {
    flex: 1 1 300px;
    text-align: center;
}

.illustration {
    max-width: 400px;
    height: auto;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f0f8ff;
    margin-bottom: 1rem;
}

.sub-heading {
    color: #a0a0a0;
    margin-bottom: 2rem;
}

/* Generator Active State */
.generator-active {
    text-align: center;
}

.status-message {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 1rem;
}

input[readonly] {
    cursor: text;
    background-color: #1c1e26;
    border: 1px solid #30363d;
    color: #f0f8ff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.countdown-timer {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, border-color 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #3e38c9;
}

.btn-secondary {
    background-color: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-secondary:hover {
    background-color: #1c1e26;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.main-action-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.form-group {
    flex: 1 1 auto;
}

/* =========================================
   Inbox & Email Viewer
   ========================================= */
.inbox-viewer {
    margin-top: 2rem;
}

.email-details, .inbox {
    background-color: #121420;
    border: 1px solid #1c1e26;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.inbox-item {
    background-color: #1c1e26;
    border: 1px solid #30363d;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.inbox-item:hover {
    background-color: #2b2e3a;
}

.inbox-item-time {
    color: #6e7681;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.email-body {
    white-space: pre-wrap;
    font-family: sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem;
    background-color: #1c1e26;
    border-radius: 0.5rem;
}

.separator {
    border-color: #30363d;
    margin: 1rem 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: #0a0b12;
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid #1a1a2e;
  color: #f0f8ff;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #66d9ef;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}


/* =========================================
   Toast Notification
   ========================================= */
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
}

/* =========================================
   Responsive Design (Mobile Fix)
   ========================================= */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav.active {
        max-height: 500px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #121420;
        padding: 1rem 0;
        border-top: 1px solid #1c1e26;
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
    }
    

    .btn-header {
        display: none;
    }

    .main-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
    }
    
    .generator-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .generator-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .text-content {
        text-align: center;
        width: 100%;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .sub-heading {
        font-size: 1rem;
    }
    
    .illustration-content {
        display: none;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    input[readonly] {
        width: 100%;
        box-sizing: border-box;
    }
    
    .generator-active {
        padding: 1rem;
    }
    
    .email-details,
    .inbox {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .inbox-item .btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    .inbox-item {
        padding: 1rem;
    }
}
/* Hide on screens 768px and below */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
