:root {
    --primary-color: #ff4d4f;
    --secondary-color: #ff7875;
    --gradient-start: #ff4d4f;
    --gradient-end: #ff9c6e;
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    background: linear-gradient(180deg, #ff4d4f 0%, #ff7a45 100%);
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.clouds {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,224L60,229.3C120,235,240,245,360,240C480,235,600,213,720,181.3C840,149,960,107,1080,101.3C1200,96,1320,128,1380,144L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: float 20s linear infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 100vh;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1rem;
}

/* Cột bên trái */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

header {
    text-align: center;
    padding: 1rem 0;
}

.logo {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float-number 3s ease-in-out infinite;
}

.wish-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 77, 79, 0.2);
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(45deg, #ff4d4f, #ff7a45);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

/* Cột bên phải */
.right-column {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1rem;
    overflow-y: auto;
    height: 100vh;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.wish-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s;
    max-width: 100%;
}

.wish-card:hover {
    transform: translateY(-2px);
}

.wish-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.wish-card .title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wish-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.wish-card h3::before {
    content: "🏮";
    font-size: 1.2rem;
}

.wish-card .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wish-card .time {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.wish-card p {
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0.5rem 0;
}

.reactions {
    display: flex;
    gap: 0.3rem;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.reaction-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.reaction-btn.active {
    background: #fff0f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.reaction-btn.pop {
    animation: pop 0.2s ease-out;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes float-number {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 0.8rem;
        height: auto;
        gap: 0.8rem;
    }

    .left-column {
        gap: 0.8rem;
    }

    header {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 3rem;
    }

    .logo span {
        padding: 0.3rem;
    }

    .wish-form {
        padding: 1rem;
    }

    .right-column {
        height: auto;
        overflow: visible;
    }

    .wish-list {
        height: auto;
        overflow: visible;
        padding-right: 0;
        padding-bottom: 5rem;
    }

    .wish-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .wish-card .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .wish-card .title-group {
        width: 100%;
        justify-content: space-between;
    }

    .wish-card h3 {
        font-size: 1rem;
    }

    .wish-card .time {
        font-size: 0.8rem;
    }

    .wish-card p {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    .reactions {
        width: 100%;
        justify-content: flex-end;
    }

    .feedback-btn {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .feedback-modal {
        bottom: 4.5rem;
        right: 0.5rem;
        width: calc(100% - 1rem);
        height: 60vh;
        max-width: none;
    }

    @media (max-height: 600px) {
        .feedback-modal {
            height: 50vh;
        }
    }
}

/* Thêm media query cho màn hình nhỏ hơn */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .wish-card {
        padding: 0.8rem;
    }

    .input-field {
        padding: 0.8rem;
    }

    textarea.input-field {
        min-height: 100px;
    }
}

/* Feedback button */
.feedback-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn span {
    font-size: 1.5rem;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Feedback modal */
.feedback-modal {
    display: none;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.feedback-modal.active {
    display: block;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feedback-header h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.feedback-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feedback-message {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    max-width: 85%;
    animation: slideIn 0.3s ease-out;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
}

.feedback-message .message-content {
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.feedback-message .message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    position: absolute;
    bottom: -1.2rem;
    left: 0.3rem;
}

.feedback-message.received {
    background: #f0f2f5;
    color: #1a1a1a;
    margin-right: auto;
    border-bottom-left-radius: 0.3rem;
    margin-bottom: 1.2rem;
}

.feedback-form {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feedback-input {
    width: 100%;
    height: 80px;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.8rem;
    resize: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8f9fa;
    transition: all 0.2s;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.feedback-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.feedback-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Custom scrollbar cho feedback messages */
.feedback-messages::-webkit-scrollbar {
    width: 6px;
}

.feedback-messages::-webkit-scrollbar-track {
    background: transparent;
}

.feedback-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.feedback-messages:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .feedback-btn {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .feedback-modal {
        width: calc(100% - 2rem);
        height: 50vh;
        max-width: 320px;
        bottom: 5rem;
    }

    .feedback-message {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }

    .feedback-input {
        height: 60px;
    }
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.message-time {
    color: #666;
    opacity: 0.8;
}

.message-content {
    line-height: 1.4;
} 