* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(249, 249, 251);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: rgb(31, 31, 71);
}

.site-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link {
    font-size: 16px;
    font-weight: 500;
    color: rgb(63, 62, 168);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.login-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.forgot-password-link {
    font-size: 14px;
    font-weight: 500;
    color: rgb(63, 62, 168);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.logo-small {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(40%) sepia(85%) saturate(2000%) hue-rotate(340deg) brightness(0.9);
}

.logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #e06060;
    white-space: nowrap;
}

.support {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.retriever {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-content h1 {
    color: rgb(31, 31, 71);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subhead {
    color: rgba(31, 31, 71, 0.8);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    max-width: 540px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    flex-wrap: wrap;
}

.cta-card input {
    flex: 1;
    min-width: 200px;
    border: none;
    font-size: 16px;
    padding: 12px 0;
    background: transparent;
    color: rgb(31, 31, 71);
    outline: none;
}

.cta-card input::placeholder {
    color: rgba(31, 31, 71, 0.5);
}

.cta-card button {
    border: none;
    background: rgb(63, 62, 168);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 999px;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cta-card button:hover {
    opacity: 0.9;
}

.cta-footnote {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(31, 31, 71, 0.75);
    max-width: 560px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.secondary-link {
    font-size: 16px;
    font-weight: 500;
    color: rgb(63, 62, 168);
    text-decoration: none;
    white-space: nowrap;
}

.secondary-link:hover {
    text-decoration: underline;
}

.visual-placeholder {
    background-color: #000000;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 32px 20px 60px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .subhead {
        max-width: 100%;
    }

    .cta-card {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
    }

    .cta-card input {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        border-radius: 12px;
        background: rgb(249, 249, 251);
    }

    .cta-card button {
        width: 100%;
        border-radius: 12px;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .visual-placeholder {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 20px 16px;
    }

    .logo-small {
        height: 28px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero {
        padding: 24px 16px 48px;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .subhead {
        font-size: 16px;
    }
}

/* Form page styles */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form {
    width: 100%;
}

.contact-form h1 {
    color: rgb(31, 31, 71);
    font-size: clamp(32px, 4.5vw, 42px);
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgb(31, 31, 71);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: rgb(31, 31, 71);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(31, 31, 71, 0.5);
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgb(63, 62, 168);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 14px 24px;
    /* background color set via inline style from database */
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 8px;
}

.submit-button:hover {
    opacity: 0.9;
}

.form-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(31, 31, 71, 0.1);
    text-align: center;
}

.form-footer p {
    font-size: 14px;
    color: rgba(31, 31, 71, 0.6);
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(40%) sepia(85%) saturate(2000%) hue-rotate(340deg) brightness(0.9);
}

.footer-logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #e06060;
}

@media (max-width: 768px) {
    .form-container {
        padding: 32px 20px 60px;
        min-height: auto;
    }

    .contact-form h1 {
        font-size: clamp(28px, 6vw, 36px);
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 24px 16px 48px;
    }

    .contact-form h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 16px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-button {
        padding: 16px 24px;
        font-size: 16px;
    }

    .form-footer {
        margin-top: 32px;
        padding-top: 20px;
    }

    .form-footer p {
        font-size: 13px;
    }

    .footer-logo {
        height: 18px;
    }

    .footer-logo-text {
        font-size: 13px;
    }
}

/* Forms management styles */
.forms-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(31, 31, 71, 0.1);
}

.forms-section h2 {
    color: rgb(31, 31, 71);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.no-forms {
    color: rgba(31, 31, 71, 0.6);
    font-size: 16px;
    text-align: center;
    padding: 32px 0;
}

.forms-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-card {
    background: #fff;
    border: 1px solid rgba(31, 31, 71, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.form-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.form-header h3 {
    color: rgb(31, 31, 71);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 8px;
}

.edit-button {
    padding: 8px 16px;
    background: rgb(63, 62, 168);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.edit-button:hover {
    opacity: 0.9;
}

.form-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-link strong {
    color: rgb(31, 31, 71);
    font-size: 14px;
    font-weight: 600;
}

.link-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    background: rgb(249, 249, 251);
    color: rgb(31, 31, 71);
    cursor: text;
}

.copy-button {
    padding: 8px 16px;
    background: rgba(63, 62, 168, 0.1);
    color: rgb(63, 62, 168);
    border: 1px solid rgba(63, 62, 168, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: rgba(63, 62, 168, 0.15);
}

.form-preview-link {
    margin-top: 8px;
}

.form-preview-link a {
    color: rgb(63, 62, 168);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.form-preview-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Form editor styles */
.form-editor {
    width: 100%;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editor-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgb(31, 31, 71);
}

.editor-field input,
.editor-field textarea {
    padding: 10px 12px;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: rgb(31, 31, 71);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.editor-field input:focus,
.editor-field textarea:focus {
    border-color: rgb(63, 62, 168);
}

.editor-field textarea {
    resize: vertical;
    min-height: 60px;
}

.editor-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 31, 71, 0.1);
}

.save-button {
    padding: 10px 20px;
    background: rgb(63, 62, 168);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.save-button:hover:not(:disabled) {
    opacity: 0.9;
}

.save-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-button {
    padding: 10px 20px;
    background: transparent;
    color: rgb(31, 31, 71);
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-button:hover:not(:disabled) {
    background: rgba(31, 31, 71, 0.05);
}

.cancel-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-actions {
        flex-direction: column;
    }

    .save-button,
    .cancel-button {
        width: 100%;
    }

    .link-container {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-button {
        width: 100%;
    }
}

/* Login page styles */
.login-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    color: rgb(31, 31, 71);
    font-size: clamp(32px, 4.5vw, 42px);
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
    text-align: center;
}

.login-form {
    width: 100%;
}

.error-message {
    padding: 12px 16px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.success-message {
    padding: 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}

/* Admin dashboard styles */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: rgb(249, 249, 251);
}

.admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid rgba(31, 31, 71, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(31, 31, 71, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(40%) sepia(85%) saturate(2000%) hue-rotate(340deg) brightness(0.9);
}

.sidebar-logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: #e06060;
    white-space: nowrap;
}

.sidebar-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid rgba(31, 31, 71, 0.1);
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(31, 31, 71, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

.sidebar-section-title i {
    width: 16px;
    height: 16px;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conversation-item {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
    position: relative;
}

.conversation-item:hover {
    background: rgb(249, 249, 251);
}

.conversation-item.active {
    background: rgba(63, 62, 168, 0.1);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-name {
    font-size: 14px;
    font-weight: 600;
    color: rgb(31, 31, 71);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-badge {
    width: 8px;
    height: 8px;
    background: rgb(63, 62, 168);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
}

.conversation-email {
    font-size: 12px;
    color: rgba(31, 31, 71, 0.6);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-preview {
    font-size: 12px;
    color: rgba(31, 31, 71, 0.7);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.conversation-time {
    font-size: 11px;
    color: rgba(31, 31, 71, 0.5);
}

.no-conversations {
    padding: 24px 12px;
    text-align: center;
}

.no-conversations p {
    font-size: 13px;
    color: rgba(31, 31, 71, 0.5);
    margin: 0;
}

/* Conversation view styles */
.conversation-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.conversation-header-bar {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(31, 31, 71, 0.1);
    background: #fff;
}

.conversation-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgb(31, 31, 71);
}

.back-button:hover {
    background: rgb(249, 249, 251);
    border-color: rgba(31, 31, 71, 0.3);
}

.back-button i {
    width: 18px;
    height: 18px;
}

.conversation-header-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: rgb(31, 31, 71);
    margin: 0 0 4px 0;
}

.conversation-header-email {
    font-size: 13px;
    color: rgba(31, 31, 71, 0.6);
    margin: 0;
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgb(249, 249, 251);
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-user {
    align-self: flex-end;
    background: rgb(63, 62, 168);
    color: #fff;
}

.message-other {
    align-self: flex-start;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.message-sender {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

.message-user .message-sender {
    color: #fff;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}

.message-user .message-content {
    color: #fff;
}

.conversation-input-area {
    padding: 20px 24px;
    border-top: 1px solid rgba(31, 31, 71, 0.1);
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: rgb(31, 31, 71);
    background: #fff;
    outline: none;
    resize: none;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    border-color: rgb(63, 62, 168);
}

.send-button {
    padding: 12px 20px;
    background: rgb(63, 62, 168);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.send-button:hover {
    opacity: 0.9;
}

.send-button i {
    width: 16px;
    height: 16px;
}

/* Greeting view styles */
.greeting-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.greeting-text {
    font-size: 48px;
    font-weight: 700;
    color: rgb(31, 31, 71);
    text-align: center;
    margin: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(31, 31, 71, 0.1);
}

.sidebar-logout-button {
    width: 100%;
    padding: 10px 16px;
    background: rgb(63, 62, 168);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sidebar-logout-button:hover:not(:disabled) {
    opacity: 0.9;
}

.sidebar-logout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid rgba(31, 31, 71, 0.1);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.admin-header h1 {
    color: rgb(31, 31, 71);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    position: relative;
}

.settings-menu-container {
    position: relative;
}

.settings-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgb(31, 31, 71);
}

.settings-button:hover {
    background: rgb(249, 249, 251);
    border-color: rgba(31, 31, 71, 0.3);
}

.settings-button i {
    width: 20px;
    height: 20px;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(31, 31, 71, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-header {
    padding: 12px 16px;
    background: rgb(249, 249, 251);
}

.dropdown-email {
    font-size: 14px;
    color: rgb(31, 31, 71);
    font-weight: 500;
    word-break: break-word;
}

.dropdown-divider {
    height: 1px;
    background: rgba(31, 31, 71, 0.1);
    margin: 4px 0;
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    color: rgb(31, 31, 71);
    font-size: 14px;
}

.dropdown-item:hover:not(:disabled) {
    background: rgb(249, 249, 251);
}

.dropdown-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(31, 31, 71, 0.7);
}

.dropdown-item span {
    flex: 1;
}

.dropdown-item {
    text-decoration: none;
    color: inherit;
}

/* Form management page styles */
.form-management-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(31, 31, 71, 0.1);
    padding-bottom: 16px;
    gap: 24px;
    flex-wrap: wrap;
}

.form-management-tabs {
    display: flex;
    gap: 8px;
}

.tab-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(31, 31, 71, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.tab-button:hover {
    color: rgb(31, 31, 71);
}

.tab-button.active {
    color: rgb(63, 62, 168);
    border-bottom-color: rgb(63, 62, 168);
}

.tab-button i {
    width: 18px;
    height: 18px;
}

.form-management-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 280px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-preview-container {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(31, 31, 71, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex: 1;
}

.form-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.form-url-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 600px;
    margin-left: auto;
}

.form-url-input-header {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid rgba(31, 31, 71, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    background: rgb(249, 249, 251);
    color: rgb(31, 31, 71);
    cursor: text;
}

.copy-button-header {
    padding: 8px 12px;
    background: rgba(63, 62, 168, 0.1);
    color: rgb(63, 62, 168);
    border: 1px solid rgba(63, 62, 168, 0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-button-header:hover {
    background: rgba(63, 62, 168, 0.15);
}

.copy-button-header i {
    width: 16px;
    height: 16px;
}

.view-live-button {
    padding: 8px 16px;
    background: rgb(63, 62, 168);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-live-button:hover {
    opacity: 0.9;
}

.view-live-button i {
    width: 16px;
    height: 16px;
}

.back-to-admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgb(63, 62, 168);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    border-radius: 6px;
}

.back-to-admin-link:hover {
    opacity: 0.8;
    background: rgba(63, 62, 168, 0.05);
}

.back-to-admin-link i {
    width: 18px;
    height: 18px;
}


.admin-content {
    padding: 32px;
    max-width: 1200px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(31, 31, 71, 0.6);
    font-size: 16px;
}

.form-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-info-card,
.form-actions-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-info-card h2 {
    color: rgb(31, 31, 71);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.form-description {
    color: rgba(31, 31, 71, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.form-actions-card h3 {
    color: rgb(31, 31, 71);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.url-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-form-link {
    color: rgb(63, 62, 168);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.view-form-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-header {
        padding: 20px;
    }

    .settings-dropdown {
        right: 0;
        left: auto;
    }

    .admin-content {
        padding: 20px;
    }

    .login-container {
        padding: 32px 20px 60px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-card h1 {
        font-size: clamp(28px, 6vw, 36px);
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 16px;
    }

    .admin-content {
        padding: 16px;
    }

    .form-info-card,
    .form-actions-card {
        padding: 20px;
    }

    .login-container {
        padding: 24px 16px 48px;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .login-card h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }
}

