﻿/*-----------------chat Launcher/Welcome-------------------*/

.chat-launcher {
    /*background: linear-gradient(to right bottom, rgba(255,255,255,1), rgba(0,0,0,0.1));*/
    background-color: #fff;
    padding: 20px 40px 40px 40px;
    border-radius: 20px;
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.1);*/
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

    .chat-launcher img {
        display: block;
        height: 90px;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .chat-launcher h2 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .chat-launcher p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: #555;
    }

.chat-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 20px;
}

.chat-option {
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    text-align: center;
    backdrop-filter: blur(10px); /* The key to the glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border for definition */
    /*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);*/ /* Subtle shadow */
    box-shadow: 0 8px 15px 0 rgba(31, 38, 135, 0.2); /* Subtle shadow */
}

.chat {
    background-color: rgba(255,223,121,0.3);
    border-color: #ffdf79;
}

    .chat i {
        color: #ffa500;
    }

    .chat h2 {
        color: #ffa500;
    }

    .chat:hover {
        background-color: rgba(255,223,121,0.6);
        border-color: #ffdf79;
    }

.call {
    background-color: rgba(177, 209, 227,0.3);
    border-color: #79a1b8;
}

    .call i {
        color: #79a1b8;
    }

    .call h2 {
        color: #79a1b8;
    }

    .call:hover {
        background-color: rgba(177, 209, 227,0.6);
        border-color: #79a1b8;
    }

.whatsapp {
    background-color: rgba(37, 211, 102,0.1);
    border-color: #25D366;
}

    .whatsapp i {
        color: #25D366;
    }

    .whatsapp h2 {
        color: #25D366;
    }

    .whatsapp:hover {
        background-color: rgba(37, 211, 102,0.3);
        border-color: #25D366;
    }

.login {
    background: rgba(209, 210, 218,0.3); /* Semi-transparent background */
    border-color: #a5a7b0;
}

    .login i {
        color: #a5a7b0;
        /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/
    }

    .login h2 {
        color: #a5a7b0;
        /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);*/
    }

    .login p {
        color: #eee;
    }

    .login:hover {
        background-color: rgba(209, 210, 218,0.6);
        border-color: #a5a7b0;
    }

.chat-option i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.chat-option h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.chat-option p {
    font-size: 1.0rem;
    margin-bottom: 10px;
    color: #555;
    font-weight: 400;
}
/* Remove the mobile override */
@media (max-width: 576px) {
    body {
        background-color: #fff;
    }

    .chat-options {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on mobile */
    }

    .chat-launcher h2 {
        font-size: 1.4rem;
    }

    .chat-option i {
        font-size: 1.5rem;
    }

    .chat-option h2 {
        font-size: 1.0rem;
    }

    .chat-option p {
        font-size: 0.8rem;
    }
}

/*-----------------End chat Launcher-------------------*/

.chat-container {
    width: 100%;
    max-width: 600px;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--chat-bg);
    border-radius: 10px;
}

/* --- Variables for Easy Theming --- */
:root {
    --header-bg-start: #ffdf79; /* Indigo */
    --header-bg-end: #fff; /* Blue */
    --text-color-primary: #333;
    --text-color-secondary: #333; /* Light Indigo/Blue for details */
    --icon-border: rgba(0, 0, 0, 0.15);
    --icon-bg: rgba(255, 255, 255, 0.15);
    --icon-hover-bg: rgba(0, 0, 0, 0.15);
    --header-height: 60px;
}

/* --- General Header Container Styling --- */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    height: var(--header-height);
}

/* --- Left Side: Agent Info --- */
.chat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agent-name {
    font-size: 1.25rem; /* Larger font for the main name */
    font-weight: 700;
    line-height: 1.2; /* Tighter spacing to the details below */
}

.agent-details {
    margin-top: 2px;
    font-size: 0.85rem; /* Smaller font for details */
    font-weight: 400;
    color: var(--text-color-secondary);
}

.detail-separator {
    margin: 0 5px; /* Space around the hyphen */
}

/* --- Right Side: Action Buttons --- */
.chat-actions {
    display: flex;
    gap: 2px; /* Space between the icon buttons */
}

.action-btn {
    /* Reset button styles */
    background: var(--icon-bg);
    border: solid 1px var(--icon-border);
    color: var(--text-color-primary);
    cursor: pointer;
    /* Make buttons visually appealing */
    padding: 6px;
    border-radius: 5px; /*50%;*/ /* Circular buttons */
    transition: background-color 0.2s ease;
    /* Icon size */
    font-size: 1rem;
    line-height: 1; /* Ensure icon is vertically centered */
}

    .action-btn:hover {
        background-color: var(--icon-hover-bg);
    }

/* Optional: Highlight the minimize button */
.minimize-btn {
    /* For consistency, keep colors similar, but you could make this red/orange */
    /* background-color: rgba(255, 255, 255, 0.1); */
}

/* --- End General Header Container Styling --- */