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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Header */
header {
    padding: .5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 0;
}

.main-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Janela de Chat */
.chat-window {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.window-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.control-btn:hover {
    opacity: 0.7;
}

.control-btn.minimize {
    background: #fbbf24;
}

.control-btn.maximize {
    background: #34d399;
}

.control-btn.close {
    background: #f87171;
}

.window-content {
    text-align: center;
    background: white;
    padding: 2.5rem 2.5rem;
    overflow: visible;
    max-height: none;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff006e 0%, #ff6b35 50%, #ffbe0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(255, 0, 110, 0.2);
}

.main-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
    font-weight: 400;
    margin: 0 auto;
}

/* Input Container - Principal da página */
.input-container {
    margin-top: 2rem;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 107, 53, 0.1) 50%, rgba(255, 190, 11, 0.1) 100%);
    padding: 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.2);
}

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #ff006e, #ff6b35, #ffbe0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.input-wrapper:focus-within::before {
    opacity: 1;
}

.input-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.3);
}

.main-input {
    flex: 1;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    border: none;
    background: white;
    border-radius: 15px;
    outline: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.main-input::placeholder {
    color: #999;
    font-weight: 400;
    font-style: italic;
}

.main-input:focus {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.2);
    transform: scale(1.02);
}

/* Botão de Colar */
.paste-button {
    padding: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    min-width: 50px;
}

.paste-button:hover {
    background: white;
    color: #ff006e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.2);
}

.paste-button:active {
    transform: translateY(0);
}

.paste-button svg {
    width: 20px;
    height: 20px;
}

/* Botão Vynkar - Principal */
.vynkar-button {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff006e 0%, #ff6b35 50%, #ffbe0b 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
    justify-content: center;
    z-index: 1;
}

.vynkar-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.vynkar-button:hover::before {
    left: 100%;
}

.vynkar-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 0, 110, 0.5);
}

.vynkar-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.vynkar-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Imagens decorativas */
.decorative-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.img-left,
.img-right {
    position: absolute;
    opacity: 1;
    animation: float 6s ease-in-out infinite;
}

.img-left {
    left: -90px;
    top: 20%;
    height: auto;
    width: auto;
    max-height: 400px;
    animation-delay: 0s;
}

.img-right {
    right: -50px;
    top: 60%;
    height: auto;
    width: auto;
    max-height: none;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Footer */
footer {
    padding: .5rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
}

.linkedin-link:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.linkedin-link svg {
    width: 24px;
    height: 24px;
}

.copyright {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem;
        overflow: visible;
    }
    
    .window-content {
        padding: 2.5rem 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .main-input {
        width: 100%;
    }
    
    .paste-button {
        width: 100%;
        min-width: auto;
    }
    
    .vynkar-button {
        width: 100%;
        min-width: auto;
    }
    
    .img-left,
    .img-right {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .window-content {
        padding: 2rem 1.5rem;
    }
    
    .chat-window {
        border-radius: 8px;
    }
    
    .main-input {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .vynkar-button {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

.login-container {
    text-align: center;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem auto 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-login-button:hover {
    border-color: #4285F4;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.2);
}

.google-login-button:active {
    transform: translateY(0);
}

.google-login-button svg {
    width: 24px;
    height: 24px;
}

.authenticated-container {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 107, 53, 0.1) 50%, rgba(255, 190, 11, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 110, 0.3);
}

.user-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.logout-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #f87171;
    border-radius: 8px;
    background: white;
    color: #f87171;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #f87171;
    color: white;
    transform: translateY(-2px);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 70vh;
    min-height: 500px;
    border: 2px solid rgba(255, 0, 110, 0.2);
    border-radius: 12px;
    background: white;
    overflow: hidden;
    margin-top: 2rem;
    flex-shrink: 0;
}

.chat-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-status {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    max-height: none;
    height: 0; /* Força o flex a funcionar corretamente */
    min-height: 41vh;
}
.vynko-title{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.message {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    animation: messageSlide 0.3s ease;
}

.message-user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.own-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff006e 0%, #ff6b35 50%, #ffbe0b 100%);
    color: white;
}

.message.own-message .message-user-photo {
    border-color: rgba(255, 255, 255, 0.5);
}

.message.system-message {
    align-self: center;
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    font-style: italic;
    font-size: 0.85rem;
    max-width: 100%;
    text-align: center;
}

.message-user {
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.8;
}

.message.own-message .message-user {
    color: rgba(255, 255, 255, 0.9);
}

.message-text {
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    align-self: flex-end;
    margin-top: 0.25rem;
}

.message.own-message .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.send-button {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #ff006e 0%, #ff6b35 50%, #ffbe0b 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 110, 0.4);
}

.send-button:active {
    transform: translateY(0);
}

.send-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .chat-container {
        height: 400px;
        max-height: 60vh;
        min-height: 400px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-input-wrapper {
        padding: 0.75rem 1rem;
    }
}