* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

body {
    background-color: #202124;
    color: white;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ================= HOME PAGE STYLING ================= */
.home-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #202124;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.home-header .logo {
    font-size: 24px;
    font-weight: 500;
    color: #e8eaed;
}

.current-time {
    font-size: 18px;
    color: #9aa0a6;
}

.home-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 40px;
}

.hero-left {
    flex: 1;
    max-width: 700px;
}

.hero-left h1 {
    font-size: 44px;
    line-height: 52px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #e8eaed;
}

.subtitle {
    font-size: 18px;
    color: #9aa0a6;
    line-height: 24px;
    margin-bottom: 40px;
}

/* Action Box Layout */
.action-box {
    display: flex;
    flex-direction: column;
    background-color: #2d2e30;
    padding: 25px;
    border-radius: 12px;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.action-label {
    display: block;
    font-size: 12px;
    color: #8ab4f8;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 8px;
}

.generated-code {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #34a853;
    background: #1f2022;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px dashed #34a853;
    word-break: break-all;
    cursor: pointer;
    text-align: center;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: #4f5357;
}

.join-panel {
    display: flex;
    gap: 10px;
    width: 100%;
}

.join-panel input {
    padding: 14px;
    flex: 1;
    border-radius: 6px;
    border: 1px solid #5f6368;
    background-color: #202124;
    color: white;
    font-size: 15px;
    outline: none;
}

.join-panel input:focus {
    border-color: #8ab4f8;
}

.join-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    background-color: #1a73e8;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.join-btn:hover {
    background-color: #1557b0;
}

/* Right Side Illustration Area */
.hero-right {
    flex-shrink: 0;
}

.carousel-card {
    background-color: #2d2e30;
    width: 320px;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.carousel-img-placeholder {
    font-size: 50px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #202124;
    border-radius: 12px;
    margin-bottom: 20px;
}

.carousel-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.carousel-card p {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 20px;
}

/* Responsive adjustments for screens */
@media (min-width: 768px) {
    .action-box {
        flex-direction: row;
        align-items: center;
    }
    .divider-line {
        width: 1px;
        height: 60px;
    }
    .host-panel {
        flex: 1;
    }
    .join-panel {
        width: auto;
        flex: 1;
    }
}

/* ================= VIDEO CALL SCREEN STYLING ================= */
.call-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #202124;
}

.video-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    padding: 30px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #3c4043;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Controls Bar Footer */
.controls-bar {
    background-color: #171717;
    padding: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #3c4043;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s, transform 0.1s;
}

.control-btn:hover {
    background-color: #4f5357;
    transform: scale(1.05);
}

.control-btn.end-call {
    background-color: #ea4335;
}

.control-btn.end-call:hover {
    background-color: #c5221f;
}
