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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff; /* White background */
    color: #111; /* Dark text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #25D366;
}

.login-box h1 {
    margin-bottom: 10px;
    color: #25D366;
    font-size: 24px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #111;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #25D366;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    color: #111;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #25D366;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #667781;
    font-size: 12px;
}

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

/* Button Styles */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #25D366;
    color: #000;
    border: 1.5px solid #25D366;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.btn-primary:hover {
    background: #20b858;
    border-color: #20b858;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    margin-top: 15px;
    padding: 12px;
    background-color: #fee;
    color: #c33;
    border-radius: 4px;
    font-size: 14px;
}

/* Info Box */
.info-box {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 428px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
    background-color: #fff; /* White background */
    margin: 0;
    position: relative;
}

@media (min-width: 429px) {
    .app-container {
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* Main black header for Clustal <> WhatsApp */
.main-header {
    width: 100%;
    background: #000; /* Pure black for header */
    color: #fff;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid #25D366;
}

/* Responsive width for desktop */
@media (min-width: 768px) {
    .app-container {
        max-width: 500px;
    }
    
    .bottom-nav {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 600px;
    }
    
    .bottom-nav {
        max-width: 600px;
    }
}


.app-content {
    flex: 1;
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 64px - 80px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff; /* White background */
}

.tab-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    background: #fff; /* White background */
    color: #111;
    font-family: inherit;
}

.tab-content h2 {
    margin: 16px 16px 12px 16px;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tab-description {
    color: #666;
    font-size: 14px;
    margin: 0 16px 16px 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* Response Box */
.response-box {
    margin-top: 16px;
    padding: 14px 12px 14px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fafafa;
    color: #111;
    border: 1.1px solid #eee;
}

.response-box.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.response-box.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    /* Remove max-width so it always fills mobile width */
    background: #fff;
    border-top: 1.5px solid #e5e5e5;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    padding: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 110;
    gap: 0;
}

@media (min-width: 429px) {
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-tab {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 0 8px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: #667781;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    min-width: 0;
    /* Remove explicit width, rely on flex */
}

.nav-tab.active {
    color: #25D366;
    border-top: 2.5px solid #25D366;
    background: #fff;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* View Container */
.view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1;
}

.chat-list-view {
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.view-header h2 {
    margin: 0;
    flex: 1;
}

/* Chat List Header */
.chat-list-header {
    background-color: #075E54;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-list-header h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Search Container */
.search-container {
    background-color: #f0f2f5;
    padding: 8px 16px;
}

.search-box {
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
}

.search-icon {
    color: #667781;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    color: #111b21;
}

.search-input::placeholder {
    color: #667781;
}

/* Chat List Styles */
.chat-list {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 12px;
    border-bottom: 1px solid #e9edef;
    position: relative;
}

.chat-item:hover {
    background-color: #f5f6f6;
}

.chat-item:active {
    background-color: #e9edef;
}

.chat-item-avatar {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 17px;
    flex-shrink: 0;
}

.chat-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-item-name {
    font-weight: 500;
    color: #111b21;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-item-time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-item-time {
    font-size: 12px;
    color: #667781;
}

.unread-badge {
    background-color: #25D366;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-item-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-item-preview {
    font-size: 14px;
    color: #667781;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.chat-item-preview.unread {
    font-weight: 600;
    color: #111b21;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e9edef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #111b21;
}

.modal-close {
    color: #667781;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid #e9edef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    width: auto;
    min-width: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.form-actions .btn {
    flex: 1;
}

/* Chat View Styles */
.chat-view {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.chat-view-header {
    background-color: #000; /* Pure black for chat header */
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    flex-shrink: 0;
    border-bottom: 1px solid #25D366;
}

.back-btn {
    color: white;
}

.chat-view-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-view-info {
    flex: 1;
    min-width: 0;
}

.chat-view-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.chat-view-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.chat-view-header .header-actions {
    display: flex;
    gap: 4px;
}

.chat-view-header .icon-btn {
    color: white;
}

.chat-messages-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    padding-bottom: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px 16px 8px;
    /* Reduce top padding, keep bottom for input space */
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.chat-info-box {
    flex-shrink: 0;
    margin: 0 16px 8px 16px;
    padding: 8px 12px;
    font-size: 12px;
}


.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 2px;
}

.message.sent {
    align-items: flex-end;
}

.message.received {
    align-items: flex-start;
}

.message-content {
    max-width: 65%;
    padding: 6px 7px 8px 9px;
    border-radius: 7.5px;
    word-wrap: break-word;
    font-size: 14.2px;
    line-height: 19px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.message.sent .message-content {
    background-color: #d9fdd3;
    color: #111b21;
    border-bottom-right-radius: 0;
}

.message.received .message-content {
    background-color: #ffffff;
    color: #111b21;
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 11px;
    color: #667781;
    margin-top: 2px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message.sent .message-time {
    justify-content: flex-end;
}

.message.received .message-time {
    justify-content: flex-start;
}

.empty-messages {
    text-align: center;
    color: #667781;
    padding: 40px 20px;
    font-size: 14px;
}

/* Sender Indicator removed - now inline with timestamp */

/* AI Chat Item - Pinned styling */
.chat-item.ai-chat {
    background: linear-gradient(135deg, #e6fcf5 0%, #d3f9d8 100%);
    border-left: 3px solid #25D366;
    position: relative;
}

.chat-item.ai-chat::after {
    content: '📌';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
}

.chat-item.ai-chat:hover {
    background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
}

.chat-item.ai-chat .chat-item-avatar {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

/* AI Toggle Switch */
.ai-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
}

.ai-toggle-label {
    font-size: 13px;
    color: #667781;
    flex: 1;
}

.ai-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.ai-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.ai-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.ai-toggle input:checked + .ai-toggle-slider {
    background-color: #25D366;
}

.ai-toggle input:checked + .ai-toggle-slider:before {
    transform: translateX(20px);
}

/* AI Settings Panel in Chat View */
.ai-settings-panel {
    background: #f8f9fa;
    border-bottom: 1px solid #e9edef;
    padding: 12px 16px;
    display: none;
}

.ai-settings-panel.visible {
    display: block;
}

.ai-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ai-settings-title {
    font-size: 13px;
    font-weight: 600;
    color: #111b21;
}

.ai-settings-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid #e9edef;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 8px;
}

.ai-settings-textarea:focus {
    outline: none;
    border-color: #25D366;
}

.ai-settings-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ai-settings-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.ai-settings-btn.save {
    background: #25D366;
    color: #000;
    border: none;
}

.ai-settings-btn.cancel {
    background: #fff;
    color: #667781;
    border: 1px solid #e9edef;
}

/* AI Costs Display */
.ai-costs-display {
    padding: 12px 16px;
    background: #f0f2f5;
    font-size: 12px;
    color: #667781;
    border-top: 1px solid #e9edef;
}

.ai-costs-display .cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ai-costs-display .cost-value {
    font-weight: 600;
    color: #111b21;
}

/* AI Chat View styling removed - now uses regular chat interface */

.empty-state {
    text-align: center;
    color: #667781;
    padding: 40px 20px;
    font-size: 14px;
}

/* Chat Input Form */
.chat-input-form {
    background: #fff;
    padding: 8px 16px;
    border-top: 1.5px solid #eee;
    flex-shrink: 0;
    margin-top: auto;
}

.chat-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background-color: white;
    border-radius: 24px;
    padding: 4px 4px 4px 12px;
}

.attach-btn {
    color: #54656f;
    flex-shrink: 0;
    padding: 8px;
}

.chat-input-container textarea {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 0;
    font-size: 15px;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    font-family: inherit;
    color: #111b21;
    line-height: 20px;
}

.chat-input-container textarea:focus {
    outline: none;
}

.chat-input-container textarea::placeholder {
    color: #667781;
}

.send-btn {
    color: #54656f;
    flex-shrink: 0;
    padding: 8px;
    background: none;
}

.send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-btn svg {
    width: 24px;
    height: 24px;
}


.btn-secondary {
    background-color: #fff;
    color: #111;
    border: 1.5px solid #111;
    font-weight: 600;
    transition: background 0.15s;
}
.btn-secondary:hover {
    background: #eee;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Template Form Styles */
.template-form-container {
    background: #fff;
    padding: 16px;
    border-radius: 0;
    margin: 0 0 16px 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
}

.template-form-container h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.compact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.compact-form .form-group {
    margin-bottom: 0;
}

.compact-form .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #111b21;
    font-weight: 500;
    display: block;
}

.compact-form .form-group input,
.compact-form .form-group select {
    padding: 10px 12px;
    font-size: 15px;
    width: 100%;
    border: 1px solid #e9edef;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    color: #111b21;
}

.compact-form .form-group input:focus,
.compact-form .form-group select:focus {
    outline: none;
    border-color: #25D366;
}

.compact-form .form-group textarea {
    min-height: 80px;
    font-size: 15px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e9edef;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
    color: #111b21;
}

.compact-form .form-group textarea:focus {
    outline: none;
    border-color: #25D366;
}

.compact-form .btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
}

/* Templates List Styles */
.templates-list-container {
    background: #fff;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
}

.templates-list-container h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #111b21;
    font-weight: 500;
}

.templates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.template-item {
    padding: 12px;
    border: 1px solid #e9edef;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.template-item:hover {
    border-color: #25D366;
    background: white;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.template-name {
    font-weight: 600;
    color: #111b21;
    font-size: 15px;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.template-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-approved {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-rejected {
    background-color: #ffebee;
    color: #c62828;
}

.template-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #667781;
    flex-wrap: wrap;
}

.template-language,
.template-category {
    padding: 3px 8px;
    background: #e9edef;
    border-radius: 4px;
    white-space: nowrap;
}

.template-body {
    color: #111b21;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9edef;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.error-state {
    text-align: center;
    padding: 20px;
    color: #c62828;
    background: #ffebee;
    border-radius: 8px;
}

/* Navbar Styles */
.navbar {
    width: 100%;
    background: #000; /* Pure black for navbar (matches other project) */
    border-bottom: 1px solid #25D366;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.clustal-landing-logo {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .clustal-landing-logo {
        height: 32px;
    }
}

@media (max-width: 380px) {
    .clustal-landing-logo {
        height: 28px;
    }
}

.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

@media (min-width: 768px) {
    .navbar-right {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
}

.navbar-product-nav {
    display: flex;
    order: 2;
}

@media (min-width: 768px) {
    .navbar-product-nav {
        order: 1;
    }
}

.navbar-auth-group {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 1;
}

@media (min-width: 768px) {
    .navbar-auth-group {
        order: 2;
        gap: 16px;
    }
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .navbar-link {
        font-size: 14px;
    }
}

.navbar-link:hover {
    color: #25D366;
}

.navbar-button {
    background-color: #25D366;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

@media (min-width: 640px) {
    .navbar-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.navbar-button:hover {
    background-color: #20b858;
}

.navbar-product-button {
    background: transparent;
    color: #fff;
    border: 1px solid transparent;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

@media (min-width: 640px) {
    .navbar-product-button {
        font-size: 14px;
        padding: 4px 12px;
    }
}

.navbar-product-button:hover {
    color: #25D366;
    background-color: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.navbar-logout-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #25D366;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .navbar-logout-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.navbar-logout-btn:hover {
    background-color: #25D366;
    color: #000;
}

/* Mobile Responsive - App is always mobile-first */
@media (max-width: 428px) {
    .app-container {
        max-width: 100%;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    }
    
/* Prevent zoom on iOS inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
    font-size: 16px;
}

