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

body {
    font-family: "Rubik", sans-serif;
    background-color: hsl(270, 20%, 96%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
/* ---------- Bg-line ---------- */
.bg-line {
    position: absolute;
    top: 0;
    left: -320px;
    width: 500px;
    height: 70%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    background: linear-gradient(
        45deg,
        hsl(264, 100%, 61%),
        hsl(293, 100%, 63%)
    );
}

/* ---------- Layout ---------- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 1100px;
}

/* Phone mockup */
.phone {
    background: hsl(270, 20%, 96%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 300px;
    overflow: hidden;
    margin-bottom: 3rem;
    z-index: 10000;
}

/* ---------- Header ---------- */
.phone-header {
    background: linear-gradient(
        to right,
        hsl(264, 100%, 61%),
        hsl(293, 100%, 63%)
    );
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.user-info .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-info h4 {
    font-size: 0.9rem;
}

.user-info p {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Menu dots */
.menu {
    position: relative;
    cursor: pointer;
}

.dot {
    display: block;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    margin: 3px auto;
}

/* Dropdown menu */
.dropdown {
    list-style: none;
    position: absolute;
    top: 25px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    display: none;
}

.dropdown li {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: hsl(271, 36%, 24%);
}

.dropdown li:hover {
    background: hsl(270, 20%, 96%);
}

.dropdown .danger {
    color: red;
}

/* Show dropdown on hover */
.menu:hover .dropdown {
    display: block;
}

/* ---------- Chat body ---------- */
.chat-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.msg {
    max-width: 70%;
    padding: 0.6rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.msg.left {
    background: hsl(270, 20%, 92%);
    color: hsl(271, 36%, 24%);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.msg.right {
    background: white;
    color: hsl(271, 36%, 24%);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Dog images row */
.imgs {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.imgs img {
    width: 60px;
    border-radius: 15px;
}

/* Options with price */
.option {
    background: linear-gradient(
        to right,
        hsl(293, 100%, 63%),
        hsl(264, 100%, 61%)
    );
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ---------- Input ---------- */
.input-box {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 0 0 30px 30px;
}

.input-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.85rem;
    padding: 0.5rem;
    color: hsl(271, 36%, 24%);
}

.input-box button {
    background: hsl(271, 36%, 24%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* ---------- Text content ---------- */
.text-content {
    text-align: center;
    max-width: 500px;
}

.text-content h1 {
    color: hsl(271, 36%, 24%);
    margin-bottom: 1rem;
}

.text-content p {
    color: hsl(270, 7%, 64%);
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  
  bg-line{
    left: 0px !important;
  }
    .container {
        flex-direction: row;
        gap: 5rem;
    }

    .phone {
        margin-bottom: 0;
    }

    .text-content {
        text-align: left;
    }
}
