/* Optimized CSS - Generated from main.css */
/* Original rules: 1308 */
/* Kept rules: 1035 */
/* Removed rules: 273 */

@import url('base.css');

.edit-title-btn:hover {
    color: white
}

.name-guidelines h4 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.name-guidelines ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.name-guidelines li {
    margin-bottom: 5px;
    color: #555
}

.store-guidelines a {
    color: #4285f4;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.store-guidelines a i {
    margin-right: 5px;
}

.store-guidelines a:hover {
    text-decoration: underline;
}

#project-name-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

body {
    background-color: #f8f9ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dashboard-page {
    display: block;
    background: url('/static/img/homebg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    width: 800px;
    min-height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 20px;
    margin: 20px;
    max-width: 100%;
}

.app-name {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.error-message {
    background-color: #ffeeee;
    border-left: 4px solid #f44336;
    color: #d32f2f;
    padding: 0;
    margin-bottom: 0;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    visibility: hidden;
}

.error-message.active {
    opacity: 1;
    height: auto;
    padding: 12px 15px;
    margin-bottom: 20px;
    visibility: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.error-message i {
    margin-right: 10px;
    font-size: 16px;
}

.primary-btn {
    background-color: #0e0e0f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.primary-btn:hover {
    background-color: #1a1a1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 14, 15, 0.25);
}

.checkbox-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    min-width: 18px;
    min-height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

.checkbox-group label {
    display: inline;
    font-size: 14px;
    margin-bottom: 0;
    flex: 1;
}

@media (max-width: 968px) {
    .container {
        flex-direction: column;
        width: 90%;
        max-width: 500px;
        margin: 20px auto;
    }

    .app-name {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        margin: 15px auto;
        min-height: auto;
    }

    .app-name {
        font-size: 24px;
    }

    label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    input {
        padding: 12px;
        font-size: 14px;
    }

    .checkbox-group {
        margin-bottom: 15px;
    }

    .primary-btn {
        padding: 12px;
        font-size: 15px;
    }

    .error-message {
        font-size: 13px;
    }

    .error-message.active {
        padding: 10px 12px;
    }
}

@media (max-width: 350px) {
    .container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.dashboard-header img {
    height: 24px;
    width: auto;
    align-self: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f7ff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    color: #5665fc;
    font-weight: 500;
    font-size: 14px;
    pointer-events: auto;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
}

.user-button img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.user-menu:hover .user-button,
.user-menu.active .user-button {
    background-color: #5665fc;
    color: white;
    border-color: #5665fc;
}

.user-menu:hover .user-button img,
.user-menu.active .user-button img,
.user-button:hover img {
    filter: brightness(0) invert(1);
}

.user-menu:hover .user-button::after {
    transform: translateY(-50%) rotate(180deg);
}

.user-button::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.user-menu.active .user-button::after {
    transform: translateY(-50%) rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 240px;
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(66, 133, 244, 0.1);
    border-top: 1px solid rgba(66, 133, 244, 0.1);
    z-index: -1;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f4ff;
    display: flex;
    flex-direction: column;
    background-color: #fafbff;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.user-dropdown-email {
    font-size: 13px;
    color: #666;
}

.user-dropdown-items {
    padding: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    pointer-events: auto;
}

.user-dropdown-item i {
    font-size: 16px;
    width: 20px;
    color: #666;
    text-align: center;
}

.user-dropdown-item:hover {
    background-color: #f5f7ff;
    color: #4285f4;
    border-left-color: #4285f4;
}

.user-dropdown-item:hover i {
    color: #4285f4;
}

.user-dropdown-item:active {
    background-color: #e8f0fe;
}

.user-dropdown-divider {
    height: 1px;
    background-color: #f0f4ff;
    margin: 8px 0;
}

.dashboard-main {
    flex: 1;
    width: 100%;
    padding: 0;
}

.dashboard-banner h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.dashboard-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cancel-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 1;
    margin-right: 280px;
}

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

.cancel-btn i {
    font-size: 15px;
    margin-right: 8px;
    color: white;
}

.close-project-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.close-project-btn i {
    font-size: 15px;
    color: white;
    pointer-events: none;
}

.close-project-btn span {
    pointer-events: none;
}

.screens-section h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.progress-dot.active {
    background-color: #5665fc;
}

.next-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.next-button i {
    font-size: 14px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.back-button i {
    font-size: 14px;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    width: 100%;
}

.add-new-screen-btn:hover {
    background-color: #5665fc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 107, 252, 0.25);
}

.restore-screen-btn:hover {
    background: linear-gradient(90deg, #4d8ef0, #4f64f8);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.screen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.screen-header>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-screen-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.full-view-btn:hover {
    background-color: #f0f3ff;
}

.add-changes-btn:hover {
    background-color: #e1e6ff;
}

.app-icon-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.icon-loading i {
    font-size: 36px;
    color: #5665fc;
    margin-bottom: 15px;
}

.icon-loading p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.icon-preview:hover .icon-zoom-hint {
    opacity: 1;
}

.icon-input-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.description-header label {
    margin-bottom: 0;
    font-weight: 700;
}

.icon-text-input:focus {
    outline: none;
    border-color: #5665fc;
    background-color: white;
}

.icon-description-input:focus {
    outline: none;
    border-color: #5665fc;
    background-color: white;
}

.icon-style-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.style-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #5665fc;
    margin: 0;
    position: relative;
    top: 0;
}

.style-option label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    margin: 0;
    line-height: 16px;
    display: flex;
    align-items: center;
}

.clear-style-link:hover {
    text-decoration: underline;
}

.icon-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.icon-generate-btn i {
    font-size: 14px;
}

@media (max-width: 992px) {
    .icon-generator-container {
        flex-direction: column;
        align-items: center;
    }

    .icon-main-content {
        flex-direction: column;
        width: 100%;
    }

    .icon-right-content {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        margin-left: 0;
        padding-top: 20px;
        margin-top: 20px;
    }
}



.section-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.platform-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.platform-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.platform-card.selected {
    background-color: #f0f4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-card.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-card.selected .platform-id-settings {
    display: block;
}

.platform-id-settings .form-group {
    margin-bottom: 0.5rem;
}

.platform-id-settings label {
    display: inline-block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.edit-id-btn:hover {
    color: #3949ab;
    background-color: rgba(86, 107, 252, 0.1);
}

.platform-id-settings input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
    margin: 0;
}

.platform-id-settings input[readonly] {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
    cursor: default;
}

.platform-id-settings input:not([readonly]) {
    border-color: #5665fc;
    box-shadow: 0 0 0 2px rgba(86, 107, 252, 0.2);
}

.platform-id-settings small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}



#edit-id-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

#edit-id-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}





#edit-id-modal .modal-body {
    padding: 1.5rem;
}

#edit-id-modal .modal-body .form-group {
    margin-bottom: 1.5rem;
}

#edit-id-modal .modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.modal-input:focus {
    outline: none;
    border-color: #5665fc;
    box-shadow: 0 0 0 3px rgba(86, 107, 252, 0.2);
}

.modal-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#edit-id-modal .modal-body small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

#edit-id-modal .cancel-btn {
    background-color: #fff;
    border-color: #d1d5db;
    color: #374151;
    margin-right: 0.75rem;
}

#edit-id-modal .cancel-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

#edit-id-modal .save-btn {
    background-color: #5665fc;
    color: #fff;
    border-color: #5665fc;
}

#edit-id-modal .save-btn:hover {
    background-color: #4f46e5;
    border-color: #4338ca;
}

.theme-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d9ff;
}

.theme-card.selected {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.theme-card:hover .theme-image {
    transform: scale(1.05);
}

.theme-card.selected .theme-selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.submit-button i {
    font-size: 14px;
}







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

.modal-device-icon i {
    font-size: 20px;
}

.detail-section-header i {
    color: #5665fc;
    font-size: 18px;
}

.detail-section-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.element-icon i {
    font-size: 16px;
}

.create-app-btn {
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 32px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(83, 150, 252, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dashboard-banner .create-app-btn {
    margin-right: 280px;
}

.create-app-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.create-app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.create-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.create-app-btn:hover::before {
    opacity: 1;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px;
    justify-content: center;
    align-items: flex-start;
}

.project-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 370px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(101, 99, 255, 0.15);
}

.project-header {
    padding: 20px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    padding-right: 50px;
    /* Added padding to prevent overlap with share button */
}

.theme-name {
    font-size: 14px;
    color: #666;
}

.app-info {
    padding: 0 20px 15px;
    min-height: 120px;
}

.app-info-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.app-description {
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    height: 80px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.platform-section {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: auto;
}

.platform-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.platform-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 15px;
}

.platform-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 5px;
    flex-grow: 0;
}

.platform-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
    height: 40px;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-status-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 32px;
    color: #666;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    height: 32px;
    min-width: 90px;
    box-sizing: border-box;
}

.platform-status-button.building {
    background-color: #f6f9fe;
    color: #7787ea;
    border: 1px dotted rgba(119, 135, 234, 0.5);
}

.platform-status-button.completed {
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-status-button.completed.ios-btn {
    background-color: #333;
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.platform-status-button.completed.android-btn {
    background-color: #25d366;
    color: white;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.platform-status-button.completed.ios-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.platform-status-button.completed.android-btn:hover {
    background-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.platform-status-button.completed.web-btn {
    background-color: #5665fc;
    color: white;
    border: 1px solid rgba(86, 101, 252, 0.1);
}

.platform-status-button.completed.web-btn:hover {
    background-color: #4353e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(86, 101, 252, 0.2);
}

.open-new-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: white;
    color: #5665fc;
    border: 1px solid rgba(86, 101, 252, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 0;
}

.open-new-tab-btn:hover {
    background-color: #f0f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(86, 101, 252, 0.2);
}

.open-new-tab-btn:active {
    transform: translateY(0);
}

.platform-status-button img {
    width: 16px;
    height: 16px;
}

.platform-status-button img[src*="select.svg"] {
    width: 32px;
    height: 32px;
}

.platform-status-button.select-button {
    min-width: 40px;
    padding: 0;
}

.platform-status-button.ios-btn img,
.platform-status-button.android-btn img,
.platform-status-button.web-btn img {
    filter: brightness(0) invert(1);
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(119, 135, 234, 0.3);
    border-radius: 50%;
    border-top-color: #7787ea;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.small-loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.small-loading-indicator .loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2.5px;
}

/* iOS platform - dark gray/black color */
.small-loading-indicator.ios-loading {
    background: transparent;
}

.small-loading-indicator.ios-loading .loading-spinner {
    border: 2.5px solid rgba(60, 60, 67, 0.2);
    border-top-color: #3c3c43;
}

/* Android platform - green color */
.small-loading-indicator.android-loading {
    background: transparent;
}

.small-loading-indicator.android-loading .loading-spinner {
    border: 2.5px solid rgba(52, 168, 83, 0.2);
    border-top-color: #34a853;
}

/* Web platform - blue/purple color */
.small-loading-indicator.web-loading {
    background: transparent;
}

.small-loading-indicator.web-loading .loading-spinner {
    border: 2.5px solid rgba(86, 101, 252, 0.2);
    border-top-color: #5665fc;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.action-button {
    width: 100%;
    padding: 10px;
    border-radius: 32px;
    background-color: #fbfff7;
    color: #aab4fc;
    border: 1px dashed rgba(170, 180, 252, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 5px;
    height: 48px;
    box-sizing: border-box;
}

.action-button img {
    width: 18px;
    height: 18px;
    filter: invert(72%) sepia(11%) saturate(2011%) hue-rotate(198deg) brightness(102%) contrast(97%);
}

.action-button:hover {
    background-color: #f2f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(83, 150, 252, 0.2);
}

.action-button.secondary {
    background-color: white;
    color: #5665fc;
    border: 1px solid rgba(86, 107, 252, 0.5);
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 600;
}

.action-button.secondary:hover {
    background-color: #f0f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(83, 150, 252, 0.15);
}

.project-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7787ea;
    font-size: 13px;
}

.project-date img {
    width: 16px;
    height: 16px;
    filter: invert(52%) sepia(18%) saturate(1498%) hue-rotate(199deg) brightness(101%) contrast(96%);
}

.status-indicator {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.in-progress {
    background-color: #fff8e7;
    color: #f7931e;
}

.status-indicator.building {
    background-color: #f6f9fe;
    color: #7787ea;
}

.status-indicator.completed {
    background-color: #e7f6eb;
    color: #2ea843;
}

.delete-project-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.delete-project-btn:hover {
    color: #ff3b30;
    background-color: rgba(255, 59, 48, 0.1);
}

.delete-project-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delete-project-btn i {
    font-size: 16px;
}

.project-footer {
    position: relative;
}

.project-footer .status-indicator {
    margin-left: 0;
    margin-right: auto;
}

#delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#delete-modal.show {
    display: flex;
}















.delete-warning {
    font-size: 16px;
    color: #333;
    margin: 0 0 16px;
}

.delete-warning strong {
    color: #000;
    font-weight: 600;
}

.delete-info {
    font-size: 14px;
    color: #666;
    margin: 12px 0;
}

.delete-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.delete-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.delete-list li i {
    color: #6b7280;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.modal-cancel-btn {
    padding: 12px 32px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #374151;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 200px;
}

.modal-cancel-btn:hover {
    background-color: #f8f8f8;
}

.modal-delete-btn {
    padding: 12px 32px;
    border: none;
    background-color: #ef4444;
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.modal-delete-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.modal-delete-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-delete-btn i {
    font-size: 14px;
}

.empty-projects img {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.empty-projects h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.empty-projects p {
    max-width: 500px;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.empty-projects .create-app-btn {
    margin: 0;
}

@media (max-width: 1200px) {
    .projects-container {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .dashboard-banner .banner-content {
        margin-left: 120px;
    }

    .dashboard-banner .create-app-btn,
    .dashboard-banner .cancel-btn,
    .dashboard-banner .close-project-btn {
        margin-right: 120px;
    }

    .project-card {
        width: calc(50% - 12.5px);
        max-width: 350px;
    }

    .projects-container {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 0 20px;
    }

    .dashboard-main {
        padding: 0;
    }

    .dashboard-banner {
        padding: 30px 20px;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }

    .dashboard-banner .banner-content {
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dashboard-banner .create-app-btn,
    .dashboard-banner .cancel-btn,
    .dashboard-banner .close-project-btn {
        margin: 0;
        padding: 12px 24px;
        font-size: 16px;
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }

    .dashboard-banner .close-project-btn {
        padding: 14px 24px;
    }

    .projects-container {
        justify-content: center;
        padding: 20px;
    }

    .dashboard-banner h1 {
        font-size: 28px;
    }

    .dashboard-banner p {
        font-size: 14px;
    }

    .project-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 0;
    }

    .platform-section {
        min-height: 0;
    }

    @supports (-webkit-touch-callout: none) {
        .platform-section {
            height: auto;
            min-height: 0;
        }

        .project-card {
            height: auto;
            min-height: 0;
        }
    }
}

@media (max-width: 480px) {
    .dashboard-banner {
        padding: 25px 15px;
    }

    .dashboard-banner h1 {
        font-size: 24px;
    }

    .dashboard-banner .create-app-btn,
    .dashboard-banner .cancel-btn,
    .dashboard-banner .close-project-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .app-description {
        height: 75px;
        -webkit-line-clamp: 3;
    }

    .platform-row {
        padding: 6px 10px;
    }

    .platform-status-button {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 80px;
    }
}

.dashboard-title {
    margin: 25px auto 20px;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.dashboard-title h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.dashboard-title p {
    color: #666;
    font-size: 18px;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.create-app-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
    margin-top: 15px;
}

.description-section {
    margin-bottom: 25px;
}

.description-section label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

#app-description {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

#app-description:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.inspiration-section {
    margin-bottom: 25px;
}

.inspiration-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.inspiration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    background-color: #f5f7ff;
    border: 1px solid #e0e7ff;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12px;
    color: #5665fc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip:hover {
    background-color: #e0e7ff;
    /* transform: translateY(-2px); */
    border-color: #5665fc;
}

.chip.active {
    background-color: #5665fc !important;
    color: white !important;
    border-color: #5665fc !important;
}

.chip.active i {
    color: white !important;
}

.action-section {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.create-app-btn#create-app-submit {
    margin: 0 auto;
    justify-content: center;
    min-width: 250px;
}

.create-app-btn#create-app-submit img {
    margin-right: 0;
}

.dashboard-footer {
    text-align: center;
    padding: 20px;
    background-color: white;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    width: 100%;
}

@media (max-width: 768px) {
    .create-app-container {
        padding: 30px 20px;
        margin: 0 20px 40px;
        width: calc(100% - 40px);
    }

    .modern-chips {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .inspiration-chips {
        gap: 8px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 13px;
    }

    .modern-chips {
        grid-template-columns: 1fr 1fr;
    }

    .create-app-btn#create-app-submit {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 24px;
    }
}











.signin-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.signin-with-apple-button,
.signin-with-google-button {
    width: 100%;
    max-width: 260px;
    height: 45px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0 20px;
    gap: 8px;
}

.signin-with-apple-button:hover,
.signin-with-google-button:hover {
    background-color: #1a1a1a;
}

.signin-with-apple-button:active,
.signin-with-google-button:active {
    background-color: #333;
    transform: scale(0.98);
}

.signin-with-apple-button::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M15.569 10.663c.028 3.037 2.649 4.11 2.681 4.125-.022.068-.452 1.555-1.472 3.094-.877 1.332-1.786 2.661-3.285 2.688-1.477.027-1.937-.876-3.625-.876s-2.194.849-3.625.903c-1.453.054-2.485-.907-3.369-2.236C1.324 15.647.036 10.391 1.667 7.273c.874-1.7 2.432-2.785 4.12-2.812 1.43-.027 2.787.964 3.687.964s2.549-1.24 4.275-1.053c.717.03 2.714.268 4.088 2.19-.098.063-2.103 1.303-2.082 4.607zM12.647 2.844c.754-.923 1.474-2.219 1.306-3.511-1.262.052-2.778.846-3.582 1.767-.71.803-1.484 2.099-1.289 3.368 1.404.106 2.81-.726 3.564-1.624z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.signin-with-apple-button::after {
    content: 'Sign in with Apple';
}

.signin-with-google-button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%234285F4' d='M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.signin-with-google-button::after {
    content: 'Sign in with Google';
}

.signin-buttons-container {
    max-width: 260px;
}

#google-button-wrapper {
    position: relative;
    width: 260px;
    height: 45px;
}

#google-button-wrapper .signin-with-google-button {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none !important;
    /* Visual only, clicks pass through */
}

#google-signin-btn {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto !important;
    /* Always clickable */
    cursor: pointer;
}

#google-signin-btn iframe {
    pointer-events: auto !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}



@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
























































@keyframes successFlash {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* AI Editor Section */
.ai-editor-section {
    padding: 20px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.ai-editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sparkle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ai-editor-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.ai-editor-section .textarea-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ai-editor-textarea {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    resize: none;
    flex: 1;
    min-height: 300px;
    transition: all 0.2s;
    background: transparent;
    line-height: 1.6;
    color: #1f2937;
}

.ai-editor-textarea:focus {
    outline: none;
}

.ai-editor-section .textarea-wrapper:focus-within {
    border-color: #6366f1;
    background: white;
}

.ai-editor-textarea::placeholder {
    color: #9ca3af;
}


.apply-changes-button {
    background: linear-gradient(to right, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(86, 101, 252, 0.3);
}

.apply-changes-button:hover {
    background: linear-gradient(to right, #4556e6, #7650e2);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(86, 101, 252, 0.4);
}

.apply-changes-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.apply-changes-button.loading {
    background: #5665fc;
}

.apply-changes-button.loading:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Remove old screenshot button styles as we have new design
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #007AFF;
}*/











.ai-editor-section {
    padding: 15px;
    gap: 12px;
    max-width: 100%;
}

.ai-editor-title {
    font-size: 16px;
}

.sparkle-icon {
    width: 20px;
    height: 20px;
}

.ai-editor-textarea {
    font-size: 13px;
    min-height: 150px;
    padding: 14px;
}

.apply-changes-button {
    padding: 12px 16px;
    font-size: 15px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification.error::before {
    background: #ef4444;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.notification.success .notification-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.notification-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.notification.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.2;
    transition: width linear;
}

.notification.success .notification-progress {
    background: #10b981;
}

.notification.error .notification-progress {
    background: #ef4444;
}

.notification.info .notification-progress {
    background: #3b82f6;
}

.notification.warning .notification-progress {
    background: #f59e0b;
}

@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}




.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}













.integration-box.completed {
    border-left: 4px solid #4CAF50;
    background-color: #f8fbff;
}

.integration-box.completed .integration-icon-container {
    background-color: #4CAF50;
}

.integration-icon-container i {
    font-size: 1.2rem;
}

.integration-status {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.integration-btn:hover {
    background-color: #f8f9fc;
    border-color: #c8ccd4;
}

.update-btn {
    background-color: #e7f0ff;
    color: #3366ff;
    border-color: #d6e4fd;
}

.update-btn:hover {
    background-color: #d6e4fd;
    border-color: #c0d4fb;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

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

input:checked+.toggle-slider {
    background-color: #36f;
}

input:focus+.toggle-slider {
    box-shadow: 0 0 1px #36f;
}

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



.integration-description p {
    margin-bottom: 0.5rem;
}

.integration-description p:last-child {
    margin-bottom: 0;
}

.platform-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.platform-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.platform-tab:hover {
    color: #3366ff;
}

.platform-tab.active {
    color: #3366ff;
    border-bottom-color: #3366ff;
}

.platform-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #444;
}

.setup-instructions li {
    margin-bottom: 0.5rem;
}

.setup-instructions li:last-child {
    margin-bottom: 0;
}

.setup-instructions a {
    color: #3366ff;
    text-decoration: none;
    font-weight: 500;
}

.setup-instructions a:hover {
    text-decoration: underline;
}

.file-upload-label i {
    font-size: 1rem;
}

.file-upload-label:hover {
    background-color: #e0e0e0;
}

.integration-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.integration-note i {
    color: #ffc107;
    margin-right: 8px;
}

.integration-input:focus {
    outline: none;
    border-color: #3366ff;
    box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.1);
}

.integration-save-btn:hover {
    background-color: #2952cc;
}

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

.profile-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-section-header {
    background-color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.profile-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-header h2 i {
    color: #5665fc;
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.edit-section-btn {
    background-color: transparent;
    border: 1px solid #5665fc;
    color: #5665fc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.edit-section-btn:hover {
    background-color: #5665fc;
    color: white;
}

.profile-section-content {
    padding: 20px;
}

.profile-info-edit {
    display: none;
}

.profile-info-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-info-label {
    width: 200px;
    font-weight: 500;
    color: #555;
    padding-right: 20px;
    flex-shrink: 0;
    font-size: 14px;
}

.profile-info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    word-break: break-word;
}

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

.profile-section-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.profile-section-content .form-group input[type="text"],
.profile-section-content .form-group input[type="email"],
.profile-section-content .form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.profile-section-content .form-group input[type="text"]:focus,
.profile-section-content .form-group input[type="email"]:focus,
.profile-section-content .form-group input[type="password"]:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
    background-color: white;
}

.profile-section-content .form-group input[readonly] {
    background-color: #eee;
    cursor: not-allowed;
    color: #777;
}

.profile-section-content .form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.form-buttons .primary-btn {
    padding: 10px 20px;
    width: auto;
    margin: 0;
}

.form-buttons .cancel-btn {
    background-color: #f1f3f4;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    margin: 0;
}

.form-buttons .cancel-btn:hover {
    background-color: #e8eaed;
}

.empty-preferences {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
    background-color: #f8f9ff;
    border-radius: 6px;
    font-size: 14px;
}

.profile-section-content .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-section-content .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    min-width: 0;
    min-height: 0;
    flex-shrink: 0;
}

.profile-section-content .checkbox-group label {
    font-size: 14px;
    margin: 0;
    font-weight: normal;
    color: #333;
}

@media (max-width: 768px) {
    .profile-container {
        padding: 20px 15px;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-info-label {
        width: 100%;
        margin-bottom: 5px;
        font-weight: 600;
        color: #333;
    }

    .profile-info-value {
        padding-left: 0;
    }

    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .form-buttons button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Removed unused app-navigation media query */
    /* Removed unused app-nav-item media query */
}

.dashboard-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.platform-card.selected .platform-id-settings {
    display: block;
}

.platform-id-settings .form-group {
    margin-bottom: 0.5rem;
}

.platform-id-settings label {
    display: inline-block;
    font-weight: 600;
    color: #333;
}

.edit-id-btn:hover {
    color: #3949ab;
    background-color: rgba(86, 107, 252, 0.1);
}

.platform-id-settings input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.platform-id-settings input[readonly] {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
    cursor: default;
}

.platform-id-settings input:not([readonly]) {
    border-color: #5665fc;
    box-shadow: 0 0 0 2px rgba(86, 107, 252, 0.2);
}

.platform-id-settings small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}



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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}





.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.modal-input:focus {
    outline: none;
    border-color: #5665fc;
    box-shadow: 0 0 0 3px rgba(86, 107, 252, 0.2);
}

.modal-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.modal-body small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.cancel-btn {
    background-color: #fff;
    border-color: #d1d5db;
    color: #374151;
    margin-right: 0.75rem;
}

.cancel-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.save-btn {
    background-color: #5665fc;
    color: #fff;
    border-color: #5665fc;
}

.save-btn:hover {
    background-color: #4f46e5;
    border-color: #4338ca;
}

@media (max-width: 768px) {

    /* Make dashboard title smaller on mobile */
    .dashboard-title {
        margin: 20px auto 15px;
    }

    .dashboard-title h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .dashboard-title p {
        font-size: 14px;
        line-height: 1.4;
        margin: 5px 0;
    }

    /* Adjust form container padding */
    .create-app-container {
        padding: 20px 15px;
    }

    /* Make description section more compact */
    .description-section {
        margin-bottom: 20px;
    }

    .description-section label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .description-section textarea {
        min-height: 80px;
        height: 80px;
        font-size: 14px;
        padding: 10px;
        resize: none;
    }

    /* Make inspiration section more compact */
    .inspiration-section {
        margin-bottom: 20px;
    }

    .inspiration-section h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    /* Adjust chips for mobile */
    .inspiration-chips {
        gap: 6px;
        max-height: 200px;
        overflow-y: auto;
        padding: 5px 0;
    }

    .chip {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 6px;
    }

    .chip i {
        font-size: 10px;
        margin-right: 4px;
    }

    /* Adjust submit button */
    .action-section {
        margin-top: 15px;
    }

    .create-app-btn#create-app-submit {
        padding: 12px 20px;
        font-size: 14px;
    }

    .create-app-btn#create-app-submit img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-title h1 {
        font-size: 24px;
    }

    .dashboard-title p {
        font-size: 13px;
    }

    .description-section textarea {
        min-height: 70px;
        height: 70px;
        font-size: 13px;
    }

    .inspiration-section h3 {
        font-size: 12px;
    }

    .inspiration-chips {
        max-height: 160px;
    }

    .chip {
        padding: 4px 8px;
        font-size: 10px;
    }

    .create-app-btn#create-app-submit {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.textarea-wrapper {
    position: relative;
}

.mobile-submit-btn {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(86, 101, 252, 0.3);
    transition: all 0.2s ease;
    z-index: 2;
}

.mobile-submit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(86, 101, 252, 0.4);
}

.mobile-submit-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-submit-btn {
        display: flex;
    }

    /* Hide desktop submit button on mobile */
    .action-section {
        display: none;
    }

    /* Adjust textarea padding to accommodate button */
    .description-section textarea {
        padding-right: 60px;
    }
}

@media (min-width: 769px) {
    .mobile-submit-btn {
        display: none !important;
    }

    .action-section {
        display: flex !important;
    }
}

@media (max-width: 768px) and (max-height: 800px) {
    body.dashboard-page {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .dashboard-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .dashboard-main {
        flex: 1;
        overflow-y: auto;
    }

    /* Reduce vertical spacing */
    .dashboard-title {
        margin: 15px auto 10px;
    }

    .dashboard-title h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .create-app-container {
        padding: 15px;
    }

    .description-section {
        margin-bottom: 15px;
    }

    .inspiration-section {
        margin-bottom: 15px;
    }

    .inspiration-section h3 {
        margin-bottom: 8px;
    }

    /* Make chips scrollable with smaller height */
    .inspiration-chips {
        max-height: 140px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Add some scroll indication */
    .inspiration-chips::-webkit-scrollbar {
        width: 4px;
    }

    .inspiration-chips::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .inspiration-chips::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .dashboard-footer {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 375px) and (max-height: 667px) {
    .dashboard-title h1 {
        font-size: 20px;
    }

    .dashboard-title p {
        font-size: 12px;
        margin: 3px 0;
    }

    .description-section textarea {
        min-height: 60px;
        height: 60px;
    }

    .inspiration-chips {
        max-height: 120px;
    }

    .mobile-submit-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    /* Prevent body overflow */
    body.dashboard-page {
        overflow-x: hidden;
        width: 100%;
    }

    /* Fix header overflow */
    .dashboard-header {
        padding: 0 15px;
        width: 100%;
        ;
        box-sizing: border-box;
    }

    /* Fix user dropdown positioning */
    .user-dropdown {
        right: 10px;
        width: min(240px, calc(100vw - 30px));
    }

    /* Ensure container doesnt overflow */
    .dashboard-container {
        width: 100%;
        overflow-x: hidden;
    }

    /* Fix main content area */
    .dashboard-main {
        width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    /* Fix form container */
    .create-app-container {
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure textarea wrapper doesnt overflow */
    .textarea-wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .description-section textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Fix notification positioning */
    .notification-container {
        right: 10px;
        left: 10px;
        width: auto;
    }

    .notification {
        max-width: calc(100vw - 20px);
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 0 10px;
    }

    .user-dropdown {
        right: 5px;
        width: min(220px, calc(100vw - 20px));
        font-size: 14px;
    }

    .user-dropdown-header {
        padding: 12px 10px;
    }

    .user-dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Adjust user button for mobile */
    .user-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .user-button span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    /* Reset any default margins that might cause issues */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Fix the main container */
    .dashboard-container {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
        margin: 0;
    }

    /* Fix header to prevent cutoff */
    .dashboard-header {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Fix main content */
    .dashboard-main {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    /* Fix title section */
    .dashboard-title {
        width: 100%;
        padding: 0 15px;
        margin: 20px 0 15px 0;
        box-sizing: border-box;
    }

    /* Fix form container */
    .create-app-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Fix description section */
    .description-section {
        width: 100%;
        padding: 0;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    /* Fix textarea wrapper */
    .textarea-wrapper {
        width: 100%;
        position: relative;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    /* Fix textarea */
    .description-section textarea {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        padding: 10px 50px 10px 10px;
        /* Right padding for button */
    }

    /* Fix inspiration section */
    .inspiration-section {
        width: 100%;
        padding: 0;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    /* Fix chips container */
    .inspiration-chips {
        width: 100%;
        max-width: 100%;
        padding: 5px 0;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Fix individual chips */
    .chip {
        flex: 0 0 auto;
        max-width: calc(50% - 3px);
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fix footer */
    .dashboard-footer {
        width: 100%;
        padding: 10px 15px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Ensure mobile submit button is properly positioned */
    .mobile-submit-btn {
        position: absolute;
        right: 8px;
        bottom: 8px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {

    /* Use smaller padding on very small screens */
    .dashboard-header,
    .create-app-container,
    .dashboard-title,
    .dashboard-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust chip layout for small screens */
    .chip {
        max-width: calc(50% - 3px);
        font-size: 10px;
        padding: 4px 6px;
    }

    /* Ensure button doesnt get cut off */
    .mobile-submit-btn {
        right: 5px;
        bottom: 5px;
    }

    .description-section textarea {
        padding-right: 45px;
    }
}

body {
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {

    /* Override any fixed max-widths that might cause issues */
    .container,
    .form-container,
    .create-app-container,
    .dashboard-main>* {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Fix elements with specific widths */
    .user-dropdown {
        width: calc(100vw - 30px) !important;
        max-width: 240px !important;
        right: 15px !important;
    }

    /* Ensure all direct children of body use full width */
    body>* {
        max-width: 100vw !important;
    }

    /* Fix any elements that might have min-width */
    * {
        min-width: 0 !important;
    }

    /* Specific fixes for form elements */
    input,
    textarea,
    select,
    button {
        max-width: 100% !important;
    }

    /* Fix inspiration chips to prevent overflow */
    .inspiration-chips {
        width: calc(100% - 10px) !important;
        margin: 0 5px !important;
        overflow-x: hidden !important;
    }

    .chip {
        min-width: 0 !important;
        flex: 0 1 calc(50% - 6px) !important;
    }
}

@media (max-width: 768px) {
    .modern-chips {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .modern-chip {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Remove any absolute positioning that might cause issues */
    .dashboard-page {
        position: relative !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Ensure wrapper elements dont overflow */
    .dashboard-container>*:not(.dashboard-header) {
        /* position: relative !important; */
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    /* Keep header sticky positioning intact */
    .dashboard-header {
        position: sticky !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Override the grid layout with flexbox for dynamic flow */
    .modern-chips,
    .inspiration-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .modern-chip,
    .chip {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        max-width: calc(100% - 4px) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Allow chips to size based on content */
    .chip i {
        font-size: 10px !important;
        margin-right: 4px !important;
        display: inline-block !important;
    }
}

@media (max-width: 480px) {

    .modern-chips,
    .inspiration-chips {
        gap: 4px !important;
    }

    .modern-chip,
    .chip {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }

    .chip i {
        font-size: 9px !important;
        margin-right: 3px !important;
    }
}

@media (max-width: 768px) {
    .inspiration-chips {
        /* Remove any max-height to let chips wrap naturally */
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }

    /* If you want scrolling, set a reasonable max-height */
    .inspiration-section {
        max-height: 200px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Add subtle scroll indicator */
    .inspiration-section::-webkit-scrollbar {
        width: 3px !important;
    }

    .inspiration-section::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .inspiration-section::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 3px !important;
    }
}

@media (max-width: 768px) and (max-height: 800px) {
    .inspiration-section {
        max-height: 40vh !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 768px) {

    /* When textarea is focused (keyboard visible) */
    .description-section textarea:focus {
        position: fixed;
        top: 60px;
        /* Below header */
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: 120px !important;
        z-index: 1000;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 2px solid #5665fc;
    }

    /* Position submit button when textarea is focused */
    /* Hide other content when keyboard is visible */
    /* Add overlay when textarea is focused */
    .description-section textarea:focus::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
}

@media (max-width: 768px) {

    /* Use viewport height that accounts for keyboard */
    .dashboard-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .dashboard-main {
        min-height: calc(100vh - 60px);
        min-height: -webkit-fill-available;
    }

    /* Prevent layout shift when focusing */
    .create-app-container {
        padding-bottom: 50px;
    }

    /* Keep elements in viewport when keyboard appears */
    .description-section textarea:focus {
        /* Scroll into view automatically */
        scroll-margin-top: 70px;
    }
}

@media (max-width: 768px) {

    /* Prevent viewport resize on Android */
    html,
    body {
        height: 100%;
        overflow: auto;
    }

    .dashboard-container {
        min-height: 100%;
    }
}

@media (max-width: 768px) and (max-height: 500px) {

    /* Landscape or keyboard visible */
    .dashboard-title {
        display: none;
    }

    .inspiration-section {
        max-height: 100px !important;
    }

    .description-section {
        margin-bottom: 10px;
    }

    .description-section textarea {
        height: 60px !important;
        min-height: 60px !important;
    }
}

@media (max-width: 768px) {

    /* When keyboard is visible */
    body.keyboard-visible .dashboard-title {
        display: none !important;
    }

    body.keyboard-visible .inspiration-section {
        display: none !important;
    }

    body.keyboard-visible .dashboard-footer {
        display: none !important;
    }

    body.keyboard-visible .create-app-container {
        padding-top: 10px !important;
    }

    body.keyboard-visible .description-section label {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    body.keyboard-visible .description-section textarea {
        height: 80px !important;
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }

    /* Keep submit button visible and accessible */
    body.keyboard-visible .mobile-submit-btn {
        position: fixed !important;
        bottom: 10px !important;
        right: 10px !important;
        z-index: 9999 !important;
    }
}

@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
        /* Magic number that prevents iOS zoom */
        -webkit-text-size-adjust: 100%;
    }
}

@media (max-width: 768px) {
    .description-section textarea:focus {
        outline: 2px solid #5665fc;
        outline-offset: -2px;
    }

    /* Ensure container scrolls properly when keyboard is visible */
    .has-keyboard-visible {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 250px !important;
        /* Space for keyboard */
    }
}

@media (max-width: 768px) {

    /* When keyboard is visible - more compact layout */
    body.keyboard-visible .dashboard-title {
        margin: 10px auto 5px !important;
        padding: 0 15px !important;
    }

    body.keyboard-visible .dashboard-title h1 {
        font-size: 18px !important;
        margin: 0 !important;
    }

    body.keyboard-visible .dashboard-title p {
        display: none !important;
        /* Hide subtitle to save space */
    }

    body.keyboard-visible .create-app-container {
        padding: 10px 15px !important;
    }

    body.keyboard-visible .description-section {
        margin-bottom: 10px !important;
    }

    body.keyboard-visible .description-section label {
        display: none !important;
        /* Hide label when typing */
    }

    body.keyboard-visible .description-section textarea {
        height: 100px !important;
        font-size: 16px !important;
    }

    /* Hide only inspiration section when keyboard visible */
    body.keyboard-visible .inspiration-section {
        display: none !important;
    }

    body.keyboard-visible .dashboard-footer {
        display: none !important;
    }

    /* Keep submit button inside textarea, not floating */
    body.keyboard-visible .mobile-submit-btn {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        z-index: 10 !important;
    }

    /* Remove extra padding */
    body.keyboard-visible .has-keyboard-visible {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 768px) {

    /* When textarea is focused */
    .description-section:focus-within {
        position: relative;
    }

    .description-section:focus-within .textarea-wrapper {
        position: relative;
    }

    /* Keep button relative to textarea */
    .description-section:focus-within .mobile-submit-btn {
        position: absolute;
        bottom: 8px;
        right: 8px;
    }

    /* Dont fix position or float elements */
    body.keyboard-visible .description-section textarea:focus {
        position: relative !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {

    /* Remove fixed positioning when focused */
    .description-section textarea:focus {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    /* Remove the fixed positioning for button */
    /* Remove opacity changes */
}

@media (max-width: 768px) and (max-height: 500px) {

    /* Landscape or keyboard visible - just hide non-essentials */
    .dashboard-title p,
    .inspiration-section,
    .dashboard-footer {
        display: none !important;
    }

    .dashboard-title {
        margin: 10px auto !important;
    }

    .dashboard-title h1 {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .create-app-container {
        padding: 10px 15px !important;
    }

    .description-section textarea {
        height: 80px !important;
    }
}

@media (max-width: 768px) {

    /* Ensure textarea wrapper maintains relative position */
    .textarea-wrapper {
        position: relative !important;
        width: 100% !important;
    }

    /* Keep mobile submit button in textarea corner */
    .mobile-submit-btn {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        width: 35px !important;
        height: 35px !important;
        z-index: 10 !important;
    }

    /* When keyboard is visible, dont move the button */
    body.keyboard-visible .mobile-submit-btn {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
    }

    /* Ensure textarea has proper padding for button */
    .description-section textarea {
        padding-right: 50px !important;
        /* Space for button */
        padding-left: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    body.keyboard-visible * {
        position: relative !important;
    }

    body.keyboard-visible .textarea-wrapper {
        position: relative !important;
    }

    body.keyboard-visible .mobile-submit-btn {
        position: absolute !important;
    }

    /* Keep header fixed if present */
    body.keyboard-visible .dashboard-header {
        position: relative !important;
    }
}

.header-container-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 32px;
}

.header-left-container {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-left: 20px;
}

.header-text h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.header-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.create-app-btn {
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 32px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(83, 150, 252, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.create-app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.create-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(83, 150, 252, 0.35);
}

.create-app-btn:hover::before {
    opacity: 1;
}

.create-app-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.tips-container {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-right: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tip-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.tip-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    font-family: 'Poppins', sans-serif;
}

.tip-content p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* App Store Connect Banner */
.appstore-connect-banner {
    flex: 1;
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 20px;
    gap: 24px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.banner-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.banner-text p {
    font-size: 14px;
    color: #a1a1a6;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.connect-account-btn {
    background: #ffffff;
    color: #1c1c1e;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connect-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.connect-account-btn:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.connect-account-btn:active {
    transform: translateY(0);
}

/* Developer Account Modal Styles */
#developer-account-modal.modal {
    display: none;
    align-items: center;
    justify-content: center;
}

#developer-account-modal.modal[style*="display: flex"] {
    display: flex !important;
}

.developer-account-modal-content {
    max-width: 700px !important;
    width: 90%;
    margin: 0;
    padding: 0;
    position: relative;
}

.developer-account-modal-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 2px solid #f0f0f5;
}

.developer-account-modal-content .modal-body {
    padding: 32px 48px 40px;
}

.developer-account-modal-content .icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.developer-account-modal-content .icon-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.developer-account-modal-content .close-modal {
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.developer-account-modal-content .close-modal:hover {
    color: #374151;
}

.modal-question {
    font-size: 17px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.5;
}

.modal-choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-choice-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
}

.modal-choice-btn:hover {
    border-color: #5665fc;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(86, 101, 252, 0.15);
}

.modal-choice-btn:last-child {
    background: linear-gradient(90deg, #5665fc, #875ef8);
    border-color: transparent;
}

.modal-choice-btn:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(86, 101, 252, 0.3);
}

.modal-choice-btn:last-child .choice-text {
    color: white;
}

.modal-choice-btn .choice-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.modal-choice-btn .choice-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.modal-secondary-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-secondary-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-primary-btn {
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 101, 252, 0.3);
}

.projects-container {
    padding: 0 20px;
}

.project-share-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #64748b;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.project-share-btn:hover {
    background: #5665fc;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(86, 101, 252, 0.25), 0 4px 6px rgba(86, 101, 252, 0.1);
    border-color: transparent;
}

.project-share-btn:active {
    transform: translateY(0) scale(0.98);
}

.project-share-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.project-share-btn:hover svg {
    transform: translateY(-1px);
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}




@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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



.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.share-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.share-url-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.share-url-container {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.share-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

.share-url-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.copy-url-btn {
    padding: 12px 16px;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.copy-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 101, 252, 0.3);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.share-social-btn i {
    font-size: 18px;
}

.share-social-btn.twitter {
    background: #000000;
    color: white;
}

.share-social-btn.twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-social-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-social-btn.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-social-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-social-btn.linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.share-social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-social-btn.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.platform-status-button.retry-btn {
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.platform-status-button.retry-btn.ios-retry {
    background: #000;
}

.platform-status-button.retry-btn.ios-retry:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.platform-status-button.retry-btn.android-retry {
    background: #25d366;
}

.platform-status-button.retry-btn.android-retry:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.platform-status-button.retry-btn.web-retry {
    background: #5665fc;
}

.platform-status-button.retry-btn.web-retry:hover {
    background: #4353e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 101, 252, 0.25);
}

.platform-status-button.retry-btn:active {
    transform: translateY(0);
}

.platform-status-button.build-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-status-button.build-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-row.failed .platform-info {
    position: relative;
}

.platform-row.failed .platform-info::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-row.failed .platform-info::before {
    content: "!";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    color: white;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.status-indicator.failed {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#build-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

#build-modal.show {
    display: flex !important;
}

#rename-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.build-info {
    font-size: 16px;
    color: #374151;
    margin-bottom: 12px;
}

.build-details {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.modal-confirm-btn {
    background: linear-gradient(90deg, #5665fc, #875ef8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 101, 252, 0.3);
}

.modal-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 1200px) {
    .tip-content h3 {
        font-size: 13px;
    }

    .tip-content p {
        font-size: 11px;
    }

    .tip-icon {
        width: 32px;
        height: 32px;
    }

    .banner-text h3 {
        font-size: 16px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .banner-icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 1024px) {
    .header-container-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .header-left-container,
    .tips-container,
    .appstore-connect-banner {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container-wrapper {
        margin-top: 10px;
    }

    .header-left-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .tips-container {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .appstore-connect-banner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
        text-align: center;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .connect-account-btn {
        width: 100%;
        justify-content: center;
    }

    .projects-container {
        padding: 0 10px;
    }

    .tip-item {
        width: 100%;
    }

    .create-app-btn {
        width: 100%;
        justify-content: center;
    }

    .developer-account-modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .developer-account-modal-content .modal-header {
        padding: 20px 24px;
    }

    .developer-account-modal-content .modal-body {
        padding: 24px 20px 28px;
    }

    .developer-account-modal-content .icon-title h3 {
        font-size: 16px;
    }

    .modal-question {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .modal-choice-buttons {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modal-choice-btn {
        padding: 18px 20px;
        gap: 12px;
    }

    .modal-choice-btn .choice-icon {
        width: 28px;
        height: 28px;
    }

    .modal-choice-btn .choice-text {
        font-size: 14px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }

    .modal-secondary-btn,
    .modal-primary-btn {
        width: 100%;
    }
}

/* Restored Emulator Rules */
.name-edit-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.icon-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.icon-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.icon-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.icon-close-modal:hover {
    color: #333;
}

.icon-modal-title {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.icon-modal-image-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#edit-id-modal .modal-content {
    max-width: 500px;
    position: relative;
    left: auto;
    transform: none;
    margin: 10% auto;
}

#edit-id-modal .close-modal {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    position: static;
}

#edit-id-modal .close-modal:hover {
    color: #111827;
}

.screen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.screen-modal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    left: auto;
    transform: none;
}

.screen-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.screen-modal .close-modal:hover {
    color: #333;
}

.delete-modal-content {
    max-width: 480px;
    margin: 0;
    position: relative;
}

.delete-modal-content .modal-header {
    padding: 24px 24px 20px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-modal-content .icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Delete icon wrapper removed - icon shown inline */

.delete-modal-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.delete-modal-content .close-modal {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.delete-modal-content .close-modal:hover {
    color: #333;
}

.delete-modal-content .modal-body {
    padding: 0 24px 24px;
}

/* Sign-in Modal Styles */
.signin-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.signin-modal-content .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #5665fc, #875ef8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.signin-modal-content .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.signin-modal-content .close-modal:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.signin-modal-content .modal-body {
    padding: 32px;
    text-align: center;
}

.modal-content {
    background-color: #ffffff;
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
    width: auto;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: block;
    left: auto;
    transform: none;
}

#emulator-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.6);
    touch-action: none;
}

#emulator-modal .modal-content {
    background-color: #f5f5f5;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    width: 100%;
    max-width: fit-content;
    height: 100vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    touch-action: auto;
}

.emulator-modal-content {
    display: flex;
}

.emulator-wrapper {
    display: flex;
    height: 100vh;
    background: white;
    border-radius: 0;
    overflow: hidden;
}

.emulator-phone-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 0;
    overflow: auto;
    position: relative;
    touch-action: auto;
}

.emulator-phone-container.tablet-view {
    background: #f3f4f6;
}

.emulator-phone-container.tablet-view #emulator-frame {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.phone-frame-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.emulator-sidebar {
    width: 380px;
    background: white;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    height: 100vh;
    overflow-y: auto;
    touch-action: auto;
}

#emulator-modal .close {
    color: #6b7280;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

#emulator-modal .close:hover,
#emulator-modal .close:focus {
    color: black;
    text-decoration: none;
}

/* Desktop: hide the header wrapper but show title */
.emulator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.emulator-header>div {
    flex: 1;
}

#emulator-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

#emulator-platform {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
    font-weight: 400;
}

#emulator-frame {
    border: none;
    display: block;
    width: 378px;
    height: 800px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.emulator-device-selection {
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.device-selection-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.device-selection-group:first-child {
    flex: 2;
}

.device-selection-group:last-child {
    flex: 1;
}

.device-selection-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.device-select:hover {
    border-color: #6366f1;
}

.device-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Dark Mode Toggle Switch */
.dark-mode-toggle-group {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 100% !important;
    margin-top: 4px;
}

.dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.dark-mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 26px;
}

.dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode-switch input:checked + .dark-mode-slider {
    background-color: #6366f1;
}

.dark-mode-switch input:checked + .dark-mode-slider:before {
    transform: translateX(22px);
}

.dark-mode-switch input:focus + .dark-mode-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.emulator-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-toggle-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
}

.view-toggle-wrapper .emulator-action-btn {
    flex: 1;
}

.emulator-action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.emulator-action-btn.primary {
    background: linear-gradient(to right, #5665fc, #875ef8);
    color: white;
}

.emulator-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(86, 101, 252, 0.3);
}

.emulator-action-btn.primary:focus,
.emulator-action-btn.primary:active,
.emulator-action-btn.primary:visited,
.emulator-action-btn.primary:focus-visible {
    background: linear-gradient(to right, #5665fc, #875ef8);
    color: white !important;
    outline: none;
}

.emulator-action-btn.primary:active {
    transform: translateY(0);
}

.emulator-action-btn.secondary {
    background: white;
    color: #5665fc;
    border: 2px solid #e5e7eb;
}

.emulator-action-btn.secondary:hover {
    background: #f8f9ff;
    border-color: #5665fc;
}

.emulator-action-btn.secondary:focus,
.emulator-action-btn.secondary:active,
.emulator-action-btn.secondary:visited,
.emulator-action-btn.secondary:focus-visible {
    background: white;
    color: #5665fc !important;
    border: 2px solid #e5e7eb;
    outline: none;
}

.emulator-action-btn.secondary:active {
    transform: translateY(0);
}

.emulator-action-btn i {
    font-size: 18px;
}

.emulator-action-btn span {
    color: inherit;
    display: inline-block;
}

/* Success flash animation without color change */
.emulator-action-btn.success-flash {
    animation: successFlash 0.5s ease;
}

/* Tablet responsive */
@media (max-width: 768px) {
    #emulator-modal .modal-content {
        width: 98%;
        height: 95vh;
        margin: 2.5vh auto;
    }

    .emulator-sidebar {
        width: 320px;
    }

    #emulator-frame {
        width: 320px;
        height: 693px;
    }

    .emulator-phone-container {
        padding: 0;
    }

    .emulator-controls {
        padding: 20px;
    }

    .emulator-action-btn {
        padding: 14px;
        font-size: 15px;
    }


}

/* Mobile responsive */
@media (max-width: 480px) {
    #emulator-modal .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .emulator-wrapper {
        flex-direction: column;
        border-radius: 0;
    }

    .emulator-phone-container {
        order: 2;
        flex: 1;
        padding: 0;
        overflow-y: auto;
    }

    .emulator-sidebar {
        order: 1;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }

    #emulator-frame {
        width: 100%;
        max-width: 390px;
        height: auto;
        aspect-ratio: 390/844;
    }

    #emulator-app-name {
        display: inline-block;
        font-size: 16px;
        color: #666;
        font-family: 'Inter', sans-serif;
    }

    #emulator-app-name:before {
        content: "•";
        margin: 0 8px;
        color: #999;
    }

    #emulator-frame {
        width: 100%;
        height: calc(100vh - 60px);
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    .integration-modal-content {
        background-color: #fff;
        margin: 5% auto;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        width: 90%;
        max-width: 550px;
        position: relative;
    }

    .integration-close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        font-weight: 300;
        color: #777;
        cursor: pointer;
    }

    .integration-close-modal:hover {
        color: #333;
    }

    .modal-content {
        background-color: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.1);
        width: 90%;
        max-width: 500px;
        /* Will be positioned with JavaScript */
        position: absolute;
        overflow: hidden;
        opacity: 0;
        animation: modalFadeIn 0.3s ease-out forwards;
    }

    .close-modal {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        color: #6b7280;
        cursor: pointer;
        transition: color 0.2s;
    }

    .close-modal:hover {
        color: #111827;
    }

    .share-modal-content {
        background: white;
        border-radius: 20px;
        padding: 32px;
        max-width: 480px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        animation: slideIn 0.3s ease;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .build-modal-content {
        background: white;
        padding: 32px;
        border-radius: 16px;
        max-width: 500px;
        width: 90%;
        margin: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 100000;
        /* Animation removed to fix disappearing issue */
    }
}



/* Dashboard create project styles */

.completion-banner {
    background: #f8fafc;
    color: #1f2937;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.completion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(16,185,129,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(16,185,129,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(16,185,129,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShapes 15s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.08);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.12);
    top: 40%;
    right: 30%;
    animation-delay: 10s;
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 3s infinite ease-in-out;
}

.sparkle-1 {
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: -5px;
    left: -15px;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 50%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes floatShapes {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes sparkleFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

.completion-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    animation: pulse 2s infinite;
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.completion-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.banner-app-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.banner-app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-app-details {
    text-align: left;
}

.banner-app-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1f2937;
}

.banner-app-description {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.3;
    max-width: 300px;
    color: #6b7280;
}

.completion-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #6b7280;
}

.completion-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.actions-section {
    margin-bottom: 40px;
}

.completed-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    text-align: center;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.action-card.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.action-card.primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.4);
}

.action-card.ios {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.action-card.android {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

.action-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.action-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}


.disabled-card {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.disabled-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

.disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .completion-title {
        font-size: 2.2rem;
    }

    .banner-app-info {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
        gap: 10px;
    }

    .banner-app-details {
        text-align: center;
    }

    .banner-app-name {
        font-size: 1.1rem;
    }

    .banner-app-description {
        font-size: 0.8rem;
        max-width: 250px;
    }

    .completion-subtitle {
        font-size: 1rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .action-card {
        padding: 18px;
    }

    .action-icon {
        font-size: 2rem;
    }
}



/* Custom Confirmation Modal Styles */
.custom-confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-confirm-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-confirm-overlay.show .custom-confirm-modal {
    transform: scale(1);
    opacity: 1;
}

.custom-confirm-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #5B7BFF, #7B9AFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
}

.custom-confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.custom-confirm-message {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.custom-confirm-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column-reverse;
}

.custom-confirm-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.custom-confirm-btn-primary {
    background: #5B7BFF;
    color: white;
    box-shadow: 0 4px 16px rgba(91, 123, 255, 0.4);
}

.custom-confirm-btn-primary:hover {
    background: #4a6ae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 123, 255, 0.5);
}

.custom-confirm-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.custom-confirm-btn-secondary:hover {
    background: #e8e8e8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (min-width: 640px) {
    .custom-confirm-buttons {
        flex-direction: row;
    }

    .custom-confirm-btn {
        flex: 1;
    }
}

/* Login Popup Modal Styles */
.login-popup-modal {
    position: relative;
    text-align: center;
    padding-top: 48px;
}

.login-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.login-popup-close:hover {
    background: #e8e8e8;
    color: #333;
}

.login-popup-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
}

.login-popup-buttons .signin-with-apple-button,
.login-popup-buttons .signin-with-google-button {
    width: 260px;
    max-width: 100%;
}

@media (max-width: 350px) {

    .login-popup-buttons .signin-with-apple-button,
    .login-popup-buttons .signin-with-google-button,
    .login-popup-buttons #google-button-wrapper {
        width: 100%;
        max-width: 240px;
    }
}

.salesforce-authenticate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.salesforce-authenticate-modal-content.small {
    max-width: 300px;
    text-align: center;
}


.salesforce-authenticate-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: visualAssetsslideUp 0.3s ease;
}


.upload-progress {
    padding: 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

#uploadStatusText {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
}

/* Attachment Button */
.attachment-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.attachment-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.attachment-btn img {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.attachment-btn:hover img {
    opacity: 1;
}

/* Attachment Count Badge */
.attachment-count {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Attachment Modal */
.attachment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.attachment-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.attachment-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
}

.attachment-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.attachment-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.attachment-modal-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.attachment-modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    height: 400px;
    overflow: hidden;
}

.attachment-left-column {
    display: flex;
    flex-direction: column;
}

.attachment-right-column {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    padding-left: 32px;
    overflow: hidden;
    min-height: 0;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    margin-bottom: 24px;
}

.drop-zone:hover {
    border-color: #9ca3af;
    background-color: #f3f4f6;
}

.drop-zone.drag-over {
    border-color: #5B7BFF;
    background-color: #eff6ff;
}

.drop-zone-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.drop-zone-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.drop-zone-subtext {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin: 0;
}

/* Attachment List */
.attachment-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

.attachment-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.attachment-empty-state p {
    font-size: 1rem;
    color: #9CA3AF;
    margin: 0;
}

.attachment-list-header {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
}

.attachment-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.attachment-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.attachment-item-icon {
    width: 32px;
    height: 32px;
    background-color: #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attachment-item-icon i {
    font-size: 1rem;
    color: #6b7280;
}

.attachment-item-details {
    flex: 1;
    min-width: 0;
}

.attachment-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-item-size {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.attachment-item-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.attachment-item-remove:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.attachment-item-remove img {
    width: 20px;
    height: 20px;
}

/* Attachment Note */
.attachment-note {
    margin-top: auto;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Modal Footer */
.attachment-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.attachment-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.attachment-modal-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.attachment-modal-btn-secondary:hover {
    background-color: #e5e7eb;
}

.attachment-modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.attachment-modal-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ==================== Emulator Attachment Styles ==================== */
.emulator-attachment-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    z-index: 10;
}

.emulator-attachment-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.emulator-attachment-btn img {
    transition: opacity 0.2s ease;
}

#emulator-attachment-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e40af;
}

#emulator-attachment-count-text {
    flex: 1;
}

.clear-attachments-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-attachments-btn:hover {
    color: #ef4444;
}



/* TOOLTIP MODAL AND ITS CONTENT*/
.tooltip-modal {
    z-index: 99999 !important;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

/* Add smooth entrance animation */
.tooltip-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin: 10% auto;
    width: auto;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: block;
    animation: tooltipFadeIn 0.2s ease-out;
}

.tooltip-modal-content-video {
    max-width: 800px !important;
    width: 90% !important;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.tooltip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
}

.tooltip-header-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tooltip-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.tooltip-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
    position: absolute;
    right: 20px;
}


.tooltip-close-btn:hover {
    color: #6b7280;
}

.tooltip-modal-body {
    padding: 0 24px 16px 24px;
}

.tooltip-description {
    font-size: 12px;
    line-height: 1.5;
    color: #1f2937;
    margin: 0 0 6px 2px;
}

/* App URLs specific styles */
.tooltip-urls-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tooltip-url-section {
    margin-bottom: 24px;
}

.tooltip-url-section:last-child {
    margin-bottom: 0;
}

.tooltip-url-header {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.tooltip-url-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tooltip-url-icon img {
    width: 18px;
}

.tooltip-url-title {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
}

.tooltip-url-example {
    font-size: 12px;
    font-style: italic;
    color: #9ca3af;
    margin: 0;
}



/* Fix for title exceeding parent containers with text wrap, including long single words */
.project-header>div>div {
    min-width: 0;
}

.project-title {
    padding-right: 35px;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.edit-project-name-btn {
    display: inline;
    cursor: pointer;
    pointer-events: auto;
}


/* QR Code Button */
.qr-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #3DDC84;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.4);
}

.qr-scan-btn img {
    filter: brightness(0) saturate(100%) invert(76%) sepia(43%) saturate(522%) hue-rotate(93deg) brightness(92%) contrast(87%);
}

/* QR Modal Styles */
.qr-modal-content {
    max-width: 400px;
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin: 10% auto;
    position: relative;
}

.qr-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.qr-close-btn:hover {
    color: #6b7280;
}

.qr-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
    padding-right: 30px;
    padding-left: 30px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    width: fit-content;
}

.qr-code-container canvas,
.qr-code-container img {
    display: block !important;
    max-width: 256px;
    max-height: 256px;
}

.qr-code-container>*:not(:first-child) {
    display: none !important;
}

.qr-instructions {
    font-size: 14px;
    color: #6b7280;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-instructions i {
    color: #4CAF50;
    font-size: 18px;
}

.qr-url-container {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
}

.qr-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5563;
    background: #f9fafb;
    font-family: 'SF Mono', Monaco, monospace;
}

.copy-url-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-url-btn:hover {
    opacity: 1;
}

/* Mobile responsive for QR modal */
@media (max-width: 480px) {
    .qr-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .qr-title {
        font-size: 20px;
    }

    .qr-code-container {
        padding: 15px;
    }

    .qr-url-container {
        flex-direction: column;
        gap: 12px;
    }

    .copy-url-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Mobile CSS FIXES */

@media (max-width: 768px) {

    /* Fix for arrow overlap issue */
    .user-button {
        padding: 8px 30px 8px 12px;
        /* Keep right padding for arrow */
    }

}

@media (max-width: 768px) {
    .create-app-from-prompt-text p {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    }
}

@media (max-width: 480px) {
    .create-app-from-prompt-text p {
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    }
}


/* ==================== Mobile Login Styles ==================== */
@media (max-width: 768px) {

    body.auth-page {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        min-height: 100vh !important;
        /* Support for iOS devices with safe areas */
        min-height: -webkit-fill-available !important;
    }

    /* Main container adjustments */
    .auth-page .container,
    .applogin-container {
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
        /* Support for iOS devices with safe areas */
        min-height: -webkit-fill-available !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%) !important;
        /* iOS smooth scrolling */
        -webkit-overflow-scrolling: touch !important;
        /* Prevent iOS zoom on input focus */
        touch-action: pan-y !important;
    }

    /* Blue gradient section - takes more space on mobile */
    .auth-page .blue-container,
    .applogin-blue-container {
        background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 62vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /* iOS safe area support - adds padding at top for notch */
        padding-top: max(00px, env(safe-area-inset-top)) !important;
        padding-left: env(safe-area-inset-left, 0px) !important;
        padding-right: env(safe-area-inset-right, 0px) !important;
        padding-bottom: 80px !important;
        position: relative !important;
        border-radius: 0 !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Blue content wrapper */
    .auth-page .blue-content,
    .applogin-blue-content {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Logo container - centered layout with reduced spacing */
    .auth-page .logo-container,
    .applogin-logo-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
       
        margin-bottom: 40px !important;
        margin-top: 10px !important;
    }

    .auth-page .logo-container .logo,
    .applogin-logo {
        width: min(100px, 20vw) !important;
        /* Scales on very small screens */
        height: min(100px, 20vw) !important;
        margin-top: clamp(20px, 9vh, 70px) !important;
        /* Responsive top spacing */
        margin-bottom: 17px !important;
        flex-shrink: 0 !important;
    }

    .auth-page .logo-container .app-name,
    .applogin-text-logo {
        width: auto !important;
        /* Auto width for better scaling */
        max-width: 150px !important;
        height: auto !important;
        margin-bottom: 5px !important;
        flex-shrink: 0 !important;
    }

    .auth-page .blue-tagline,
    .applogin-tagline {
        color: rgba(255, 255, 255, 0.95) !important;

        text-align: center !important;
        margin: 0 !important;
        letter-spacing: 0.3px !important;
    }

    /* Welcome text in blue section */
    .auth-page .welcome-text,
    .applogin-welcome-text {
        width: 100% !important;
        margin-top: clamp(25px, 6vh, 30px) !important;
        /* Responsive spacing */
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .auth-page .welcome-text h2,
    .applogin-welcome-heading {
        color: white !important;

        text-align: center !important;
        line-height: 1.3 !important;
        margin: 0 0 16px 0 !important;
        padding: 0 0px !important;
    }

    .auth-page .welcome-text p,
    .applogin-welcome-description {
        color: rgba(255, 255, 255, 0.9) !important;

        text-align: center !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding: 0 16px !important;
    }

    /* White auth card - overlays blue section at bottom */
    .auth-page .auth-container,
    .applogin-auth-container {
        background: white !important;
        border-radius: 32px 32px 0 0 !important;
        padding: 32px 24px !important;
        /* iOS safe area support - adds padding at bottom for home indicator */
        padding-bottom: max(50px, calc(50px + env(safe-area-inset-bottom))) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-top: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        left: 0 !important;
        right: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Welcome back heading */
    .auth-page .auth-container h1,
    .applogin-title {
        color: #1a1a1a !important;
        text-align: center !important;
        margin: 0 0 8px 0 !important;
    }

    .auth-page .auth-container>p,
    .applogin-subtitle {
        color: #666 !important;
        text-align: center !important;
        margin: 0 0 28px 0 !important;
    }

    /* Sign-in buttons container */
    .auth-page .signin-buttons-container,
    .applogin-buttons-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Apple sign-in button */
    .auth-page .signin-with-apple-button,
    .applogin-apple-btn {
        width: 100% !important;
        max-width: 100% !important;
        height: 52px !important;
        background-color: #000 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        cursor: pointer !important;
        transition: all 0.3s ease !important;
        /* Prevent tap highlight on mobile */
        -webkit-tap-highlight-color: transparent !important;
        /* Better touch target */
        touch-action: manipulation !important;
    }

    /* Google sign-in button wrapper */
    .auth-page #google-button-wrapper,
    .applogin-google-wrapper {
        width: 100% !important;
        height: 52px !important;
        position: relative !important;
    }

    .auth-page .signin-with-google-button,
    .applogin-google-btn {
        width: 100% !important;
        max-width: 100% !important;
        height: 52px !important;
        background-color: #000 !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        cursor: pointer !important;
        transition: all 0.3s ease !important;
        /* Prevent tap highlight on mobile */
        -webkit-tap-highlight-color: transparent !important;
        /* Better touch target */
        touch-action: manipulation !important;
    }

    /* Google signin button (real button underneath) */
    .auth-page #google-signin-btn {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 52px !important;
        opacity: 0.01 !important;
        pointer-events: auto !important;
    }

    .auth-page #google-signin-btn iframe {
        width: 100% !important;
        height: 52px !important;
    }
}

/* ==================== Small Mobile Screens (e.g., iPhone SE) ==================== */
@media (max-width: 375px) and (max-height: 667px) {

    .auth-page .logo-container .logo,
    .applogin-logo {
        width: 80px !important;
        height: 80px !important;
        margin-top: 30px !important;
    }

    .auth-page .welcome-text,
    .applogin-welcome-text {
        margin-top: 30px !important;
    }

    .auth-page .blue-container,
    .applogin-blue-container {
        padding-bottom: 60px !important;
    }
}


/* ==================== Mobile Projects Page Styles ==================== */
@media (max-width: 480px) {
    .userprojects-header-wrapper {
        max-width: 90% !important;
        margin-left: 8px !important;
        margin-right: 32px !important;
    }

    .userprojects-header-left {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .userprojects-appstore-banner {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .project-card {
        width: 100% !important;
        max-width: 100% !important;
        /* Remove the 350px max-width */
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .projects-container {
        margin-left: 8px !important;
        margin-right: 8px !important;
        width: 97% !important;
    }

    .connect-account-btn {
        color: black;
        border: none;
        border-radius: 32px;
        padding: 16px 32px;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        z-index: 1;
        font-family: 'Inter', sans-serif;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .userprojects-appstore-banner .banner-text p {
        font-size: clamp(9px, 2.5vw, 11px) !important;
        /* Scales from 9px to 11px */
        white-space: nowrap !important;
        /* Force single line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Show ... if too long */
    }

    .userprojects-header-wrapper .header-text p {
        font-size: clamp(10px, 3.25vw, 15px) !important;
        /* Scales from 9px to 11px */
        white-space: nowrap !important;
        /* Force single line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Show ... if too long */
    }

    .qr-url-container {
        flex-direction: row !important;
    }

    .qr-url-container .copy-url-btn {
        width: 30px !important;
        padding: 0px !important;
    }

    .qr-url-container .copy-url-btn img {
        width: 24px !important;
        height: 24px !important;
    }

    #rename-modal .modal-body .modal-actions{
        flex-direction: column-reverse;
    }

}

@media (min-width: 481px) and (max-width: 768px) {
    .userprojects-header-wrapper {
        max-width: 94% !important;
        margin-left: 8px !important;
        margin-right: 32px !important;
    }

    .userprojects-header-left {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .userprojects-appstore-banner {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .project-card {
        width: calc(50% - 12.5px);
        max-width: 350px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .projects-container {
        margin-left: 8px !important;
        margin-right: 8px !important;
        width: 97% !important;
    }

    .connect-account-btn {
        color: black;
        border: none;
        border-radius: 32px;
        padding: 16px 32px;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        z-index: 1;
        font-family: 'Inter', sans-serif;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .userprojects-appstore-banner .banner-text p {
        font-size: clamp(9px, 2.5vw, 11px) !important;
        /* Scales from 9px to 11px */
        white-space: nowrap !important;
        /* Force single line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Show ... if too long */
    }

    .userprojects-header-wrapper .header-text p {
        font-size: clamp(10px, 3.25vw, 15px) !important;
        /* Scales from 9px to 11px */
        white-space: nowrap !important;
        /* Force single line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Show ... if too long */
    }

    .qr-url-container {
        flex-direction: row !important;
    }

    .qr-url-container .copy-url-btn {
        width: 30px !important;
        padding: 0px !important;
    }

    .qr-url-container .copy-url-btn img {
        width: 24px !important;
        height: 24px !important;
    }

}


/* ==================== Mobile Profile Page Styles ==================== */
@media (max-width: 768px) {
    #receive_status_updates {
        accent-color: #5665fc !important;
    }
}

/* ==================== PROFILE PAGE MOBILE OVERRIDE ==================== */
/* Add this file AFTER main.css in your HTML */
@media (max-width: 768px) {

    /* Buttons side by side on mobile */
    .profile-section .form-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* Make buttons equal width */
    .profile-section .form-buttons button {
        flex: 1 !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        padding: 12px 16px !important;
    }

    /* Cancel button styling */
    .profile-section .cancel-btn {
        justify-content: center !important;
    }

    /* Primary button styling */
    .profile-section .primary-btn {
        justify-content: center !important;
    }

    /* Optional: Adjust form groups spacing */
    .profile-section .form-group {
        margin-bottom: 20px !important;
    }

    /* Checkbox group alignment */
    .profile-section .checkbox-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .profile-section .checkbox-group input[type="checkbox"] {
        margin: 0 !important;
        accent-color: #5665fc !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    .profile-section .checkbox-group label {
        margin: 0 !important;
        cursor: pointer !important;
        flex: 1 !important;
    }
}

/* ==================== SMALL MOBILE DEVICES ==================== */
@media (max-width: 375px) {

    /* Slightly smaller padding on very small devices */
    .profile-section .form-buttons button {
        padding: 10px 12px !important;
    }
}

@media (max-width: 768px) {
    .tooltip-modal-content {
        width: 95% !important;
    }
}

@media (max-width: 768px) {

    #chips-container {
        height: 30px !important;
    }

    .chip.modern-chip.modern-chip-v2 i {
        font-size: 15px !important;
    }

}

/* ==================== USER MENU DROP DOWN ==================== */

@media (hover: hover) and (pointer: fine) {
    .user-menu:hover .user-button {
        background-color: #5665fc;
        color: white;
        border-color: #5665fc;
    }

    .user-menu:hover .user-button img {
        filter: brightness(0) invert(1);
    }

    .user-menu:hover .user-button::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

.user-menu.active .user-button {
    background-color: #5665fc;
    color: white;
    border-color: #5665fc;
}

.user-menu.active .user-button img {
    filter: brightness(0) invert(1);
}

.user-menu.active .user-button::after {
    transform: translateY(-50%) rotate(180deg);
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .user-dropdown {
        right: 5px !important;
        top: 50px !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .user-dropdown {
        right: 10px !important;
        top: 55px !important;
    }
}


/* ==================== DASHBOARD PAGE (CREATE APP VIA PROMPT) ==================== */

@media (max-width: 768px) {

    .mobileview-hide {
        display: none !important;
    }

    .login-popup-modal {
        padding: 0px !important;
    }

    .custom-confirm-modal {
        padding-bottom: 32px !important;
        padding-top: 16px !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .custom-confirm-message {
        margin-bottom: 14px !important;
    }

    .mobileview-dashboardlogin .login-popup-close.mobileview-hide {
        display: block !important;
        top: 12px !important;
    }

    .attachment-btn {
        position: absolute !important;
        z-index: 120 !important;
        margin-left: auto !important;
        left: 20px !important;
        right: auto !important;
    }

    .attachment-modal-columns {
        display: inline-flex !important;
        flex-direction: column !important;
        height: 50vh !important;
    }

    .drop-zone {
        padding: 10px 12px !important;
    }

    .drop-zone-icon {
        margin-bottom: 10px !important;
    }

    .drop-zone-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .drop-zone-text {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
    }

    .drop-zone-subtext {
        font-size: 0.6rem !important;
    }

    .attachment-note {
        font-size: 0.6rem !important;
    }

    .attachment-right-column {
        padding-left: 0px !important;
        border: none !important;
    }

    .attachment-modal-footer {
        display: flex !important;
        gap: 12px !important;
        padding: 16px 24px !important;
    }

    .attachment-modal-btn {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .attachment-modal-footer {
        display: flex !important;
        gap: 12px !important;
        padding: 16px 24px !important;
    }

    .attachment-modal-btn {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .attachment-btn {
        position: absolute !important;
        bottom: 6px !important;
        left: 10px !important;
        z-index: 120 !important;
    }

    .attachment-count {
        position: absolute !important;
        left: 45px !important;
        bottom: 10px !important;
        margin: 0 !important;
        padding: 6px 6px !important;
        font-size: 0.75rem !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
    }

    .mobile-submit-btn {
        bottom: 10px !important;
        right: 10px !important;
    }


    .dashboard-page .dashboard-container .dashboard-main .textarea-wrapper{
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 20px !important;
        padding-bottom: 50px !important;
    }

    /* Allow modal content to scroll instead of fixed height */
    .attachment-modal-columns {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Remove scroll from attachment items - let body scroll instead */
    .attachment-items {
        overflow-y: visible !important;
        overflow-x: visible !important;
        max-height: none !important;
    }

    /* Make attachment list not constrained */
    .attachment-list {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Allow right column to expand naturally */
    .attachment-right-column {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Make modal body scrollable */
    .attachment-modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: calc(90vh - 160px) !important;
        flex: 1 !important;
    }

    /* Ensure modal content doesn't exceed viewport */
    .attachment-modal-content {
        max-height: 90vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Keep footer fixed at bottom and visible */
    .attachment-modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 10 !important;
        border-top: 1px solid #e5e7eb !important;
        margin-top: auto !important;
        flex-shrink: 0 !important;
    }

    .attachment-empty-state{
        display: none !important;
    }


}



@media (max-width: 480px) {
    .mobileview-appetizemodel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }

    .mobileview-appetizemaincontainer {
        width: 100%;
        height: 100%;
        background: white;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    /* Top container - 90% height */
    .mobileview-emulator-top-container {
        flex: 0 0 90%;
        display: flex;
        flex-direction: column;
    }

    /* Header row - device selector (10%), iframe (80%), close button (10%) */
    .mobileview-emulator-header-row {
        display: flex;
        align-items: start;
        width: 100%;
        height: 100%;
    }

    .mobileview-appetizeselectdevicecontainer {
        flex: 0 0 10%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid #5665fc;
        background: white;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        aspect-ratio: 1;
        max-width: 50px;
    }

    .mobileview-appetizeselectdevice, mobileview-appetizeselectdarkmode {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobileview-emulatordevice {
        flex: 0 0 80%;
        border: none;
        border-radius: 40px;
        height: 100%;
    }

    .login-popup-close {
        flex: 0 0 10%;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #333;
        max-width: 50px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Action buttons container - 10% height */
    .mobileview-emulatoractionbuttoncontainer {
        flex: 0 0 10%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 10px 0;
    }

    .mobileview-emulatoractionbuttoncontainer>* {
        flex: 1;
        text-align: center;
    }

    .mobileview-emulatoractionbuttoncontainer button {
        border: 2px solid #5665fc !important;
    }

    .mobileview-emulatoractionbuttoncontainer button.apply-changes-button {
        border: none !important;
        padding: 16px 20px !important;
        gap: 5px !important;
    }

    .mobileview-emulatoractionbuttoncontainer button.apply-changes-button img {
        fill: white;
        filter: brightness(0) invert(1);
    }

    .mobileview-device-selectors-parent{
        display: grid;
        gap: 10px;
    }

    .mobileview-appetizeselectdevicecontainer{
        padding: 4px;
    }


    .device-selector-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100000;
    }

    .device-selector-modal {
        background: white;
        border-radius: 24px;
        padding: 32px;
        max-width: 600px;
        width: 75%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

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

    .device-selector-columns {
        display: flex;
        gap: 24px;
    }

    .device-selector-column {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .device-selector-label {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #333;
        text-transform: uppercase;
    }

    .device-selector-dropdown {
        position: relative;
    }

    .device-selector-button {
        width: 100%;
        padding: 20px 24px;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 16px;
        font-size: 18px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.2s ease;
        text-align: left;
    }

    .device-selector-button:hover {
        border-color: #5665fc;
        background: #f8f9ff;
    }

    .device-selector-button i {
        font-size: 16px;
        color: #666;
        transition: transform 0.2s ease;
    }

    .device-selector-button:focus {
        outline: none;
        border-color: #5665fc;
        box-shadow: 0 0 0 3px rgba(86, 101, 252, 0.1);
    }

    .device-selector-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 10;
        max-height: 300px;
        overflow-y: auto;
    }

    .device-selector-option {
        padding: 16px 24px;
        font-size: 16px;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .device-selector-option:hover {
        background: #f8f9ff;
    }

    .device-selector-option.selected {
        background: #f0f2ff;
        color: #5665fc;
        font-weight: 600;
    }

    .device-selector-option:first-child {
        border-radius: 14px 14px 0 0;
    }

    .device-selector-option:last-child {
        border-radius: 0 0 14px 14px;
    }

    .device-selector-actions {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }

    .device-selector-cancel,
    .device-selector-apply {
        flex: 1;
        padding: 16px 24px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
    }

    .device-selector-cancel {
        background: #f0f0f0;
        color: #666;
    }

    .device-selector-cancel:hover {
        background: #e0e0e0;
    }

    .device-selector-apply {
        background: #5665fc;
        color: white;
    }

    .device-selector-apply:hover {
        background: #4555ec;
        box-shadow: 0 4px 12px rgba(86, 101, 252, 0.3);
    }

    /* Scrollbar styling for dropdown menu */
    .device-selector-menu::-webkit-scrollbar {
        width: 8px;
    }

    .device-selector-menu::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    .device-selector-menu::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .device-selector-menu::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

    .device-selector-modal {
        padding: 24px;
        width: 75% !important;
    }

    .device-selector-columns {
        flex-direction: column;
        gap: 16px;
    }

    .device-selector-button {
        padding: 16px 20px;
        font-size: 16px;
    }

    .device-selector-label {
        font-size: 12px;
    }

    .device-selector-option {
        padding: 14px 20px;
        font-size: 15px;
    }



    /* Change Request Modal Overlay */
    .change-request-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        padding: 16px;
    }

    .change-request-modal {
        background: white;
        border-radius: 24px;
        padding: 24px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Header */
    .change-request-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    .change-request-title {
        font-size: 18px;
        font-weight: 400;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.3;
        flex: 1;
    }

    .change-request-close {
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 18px;
        color: #999;
        padding: 4px;
        display: flex;
        align-items: start;
        justify-content: center;
        transition: color 0.2s ease;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .change-request-close:hover {
        color: #333;
    }

    .change-request-close:active {
        color: #000;
    }

    /* Textarea Container */
    .change-request-textarea-container {
        position: relative;
    }

    .change-request-textarea {
        width: 100%;
        padding: 18px;
        padding-right: 56px;
        padding-bottom: 56px;
        border: 2px solid #e5e5e5;
        border-radius: 16px;
        font-size: 16px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        color: #333;
        background: #f8f9fa;
        resize: vertical;
        min-height: 180px;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .change-request-textarea::placeholder {
        color: #bbb;
    }

    .change-request-textarea:focus {
        outline: none;
        border-color: #6b7bff;
        background: white;
        box-shadow: 0 0 0 3px rgba(107, 123, 255, 0.1);
    }

    .change-request-attachment {
        position: absolute;
        bottom: 16px;
        right: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 20px;
        color: #bbb;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .change-request-attachment:hover {
        color: #6b7bff;
        background: #f0f2ff;
    }

    .change-request-attachment:active {
        color: #5665fc;
        background: #e0e5ff;
    }

    /* Generate Button */
    .change-request-generate {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #6b7bff 0%, #8b5cf6 100%);
        color: white;
        border: none;
        border-radius: 14px;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(107, 123, 255, 0.3);
    }

    .change-request-generate:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(107, 123, 255, 0.4);
    }

    .change-request-generate:active {
        transform: translateY(0);
        box-shadow: 0 2px 15px rgba(107, 123, 255, 0.3);
    }

    /* Scrollbar for modal content if needed */
    .change-request-modal::-webkit-scrollbar {
        width: 6px;
    }

    .change-request-modal::-webkit-scrollbar-track {
        background: transparent;
    }

    .change-request-modal::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .change-request-modal::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }


    .attachment-count-container {
        margin: 0 !important;
        padding: 6px 6px !important;
        font-size: 0.75rem !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between;
        margin-top: 8px;
        margin-bottom: 8px;
        background-color: rgb(240, 249, 255);
        color: rgb(30, 64, 175);
        gap: 8px;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(191, 219, 254);
        border-radius: 8px;
    }

    .attachment-count-text {
        font-size: 14px;    
    }



    .clear-attachments-btn:hover {
        color: #6b7280 !important;
    }
    
    
    
}
