body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    width: 300px;
    height: 300px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.input-container {
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    align-items: flex-start;
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #546e7a;
    font-size: 12px;
}

.char-counter.limit-near {
    color: #ff9800;
}

.char-counter.limit-reached {
    color: #f44336;
}

input[type="text"] {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #2196f3;
    border-radius: 25px;
    width: 300px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

textarea {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #2196f3;
    border-radius: 25px;
    width: 300px;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

button {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

h1 {
    color: #1565c0;
    margin-bottom: 20px;
    font-size: 2.5em;
}

p {
    color: #546e7a;
    font-size: 1.2em;
    margin-bottom: 30px;
}

#tagline {
    max-width: 450px;
    margin: 20px auto;
    text-align: center;
    font-style: italic;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-left: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.toggle-label {
    margin-right: 6px;
    color: #546e7a;
    font-size: 14px;
}

.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #546e7a;
}

.footer a {
    color: #2196f3;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #1976d2;
}

.answer-container {
    margin-top: 40px;
    font-size: 32px;
    font-weight: bold;
    color: #1565c0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.answer-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-container {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: none;
}

.loading-container.visible {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-text {
    color: #1565c0;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-text-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1565c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.loading-container.visible .loading-text-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.answer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.clear-button, .share-button {
    min-width: 90px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button {
    background-color: #e0e0e0;
    color: #424242;
}

.clear-button:hover {
    background-color: #bdbdbd;
    transform: translateY(-2px);
}

.clear-button:active {
    transform: translateY(0);
}

.share-button {
    background-color: #2196f3;
    color: white;
}

.share-button:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

.share-button:active {
    transform: translateY(0);
}

.share-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1565c0;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    font-size: 20px;
}

.modal-close:hover {
    color: #333;
}

.share-link-container {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.share-link {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    user-select: all;
}

.copy-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #2196f3;
    display: flex;
    align-items: center;
}

.copy-button:hover {
    color: #1976d2;
    transform: none;
}

.copy-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@keyframes throb {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

.throb {
    animation: throb 1.5s ease-in-out infinite;
}

.promo-ai {
    position: absolute;
    left: calc(100% + 40px);
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-10px);
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}

/* Hide promo on smaller screens */
@media (max-width: 1200px) {
    .promo-ai {
        display: none;
    }
}

.promo-analysis {
    position: absolute;
    left: calc(100% - 40px);
    top: 25%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 10px;
    animation: throb 1.5s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
}

.promo-analysis:hover {
    animation: none;
    transform: translateY(-50%) scale(1.15);
}

/* Update media query to include promo-analysis */
@media (max-width: 1200px) {
    .promo-ai, .promo-analysis {
        display: none;
    }
}
