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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f7f7f7 0%, #eddcff 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    
}

.sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: center;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size:  13px;
}

.sidebar-content {
    padding: 12px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size:  12px;
}

.room-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.room-item {
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.room-item:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.room-item.active {
    border-color: #667eea;
    background: #e3f2fd;
}


.room-users {
    font-size: 0.9em;
    color: #666;
}

.create-room {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.create-room input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.create-room button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    position: relative;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 200px;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in;
}

.message.own {
    background: linear-gradient(135deg, #ecf0ff 0%, #c3b6ff 100%);
    color: rgb(0, 0, 0);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message.other {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message-info {
    font-size: 0.8em;
    margin-bottom: 5px;
    opacity: 0.7;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #667eea;
}

.send-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: translateY(-2px);
}

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

.user-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #333;
}

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

.system-message {
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    background: #e3f2fd;
    border-radius: 10px;
    color: #1976d2;
    font-size: 0.9em;
}

.no-room-selected {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
    font-size: 1.2em;
}


.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.login-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.login-body input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.login-body input:focus {
    border-color: #4CAF50;
}

.login-body button {
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-body button:hover {
    background: #45a049;
}


pre {
    overflow-x: hidden;
    overflow-y: auto;
}

.option {
    margin-bottom: 8px;
}


.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button_icon {
    cursor: pointer;
}

.button_icon:hover {
    color: #667eea;
}



@media (orientation: landscape) {
    video {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }
}

@media (orientation: portrait) {
    video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

@media screen and (max-aspect-ratio: 1219/685) {
    video {
        width: auto;
        height: 100%;
     }
 }

/* Extracted styles from index.html */

/* Main container styles */
.main-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Title bar styles */
.title-bar {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.title-bar-left {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    padding: 1px;
    min-width: 450px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 5px;
    height: 48px;
    padding-left: 10px;
    padding-right: 10px;
}

.title-bar-brand {
    width: 100%;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 5px;
}

.brand-text-green {
    color: #9BAD72;
    font-family: Paperlogy;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.84px;
}

.brand-text-dark {
    color: #2C3121;
    font-family: Paperlogy;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.84px;
}

.title-bar-search {
    width: 340px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    height: 34px;
}

.search-container {
    border-radius: 10px 3px 3px 10px;
    border: 1px solid #D0D0D0;
    background: #F9F9F9;
    padding: 2px;
    display: flex;
    align-items: center;
    height: 32px;
    gap: 5px;
    padding-left: 5px;
}

.search-label {
    color: #9BAD72;
    font-family: Paperlogy;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.6px;
    text-wrap: nowrap;
}

.search-divider {
    width: 2px;
    height: 16px;
    flex-shrink: 0;
    background: #D0D0D0;
}

.search-input {
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 5px;
    color: #000000;
    text-align: center;
    font-family: Paperlogy;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.6px;
}

.search-button {
    border-radius: 3px 10px 10px 3px;
    border: 1px solid #9BAD72;
    background: #9BAD72;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.title-bar-user {
    width: 300px;
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    height: 44px;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 5px;
    min-width: 200px;
    gap: 10px;
}

.user-text {
    color: #384121;
    font-family: Paperlogy;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.72px;
}

.logout-button {
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-button:hover  {
    background: #D0D0D0;
}

.logout-button:hover svg path {
    fill: rgba(255, 25, 25, 0.75);
}



/* Content container styles */
.content-container {
    border-radius: 20px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    width: 100%;
    height: 100%;
    min-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content-header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.content-header-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.content-title {
    color: #2C3121;
    font-family: Paperlogy;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.72px;
}

.content-count {
    color: #919191;
    font-family: Paperlogy;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.6px;
}

.content-header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.create-room-button {
    border-radius: 15px;
    border: 1px solid #D0D0D0;
    background: linear-gradient(90deg, #9BAD72 0%, #829655 100%);
    width: 120px;
    height: 34px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.create-room-button:hover {
    border: 1px solid #9BAD72;
    background: #ffab0f;
}


.create-room-text {
    color: #FFF;
    text-align: center;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.6px;
}

.filter-select {
    border-radius: 7px;
    border: 1px solid #D0D0D0;
    background: #FAFAFA;
    width: 100px;
    height: 34px;
    flex-shrink: 0;
    text-align: center;
}

.content-divider {
    border: 1px solid #D0D0D0;
}

.content-body {
    height: 100%;
    overflow-y: auto;
}

.content-padding {
    height: 100%;
    width: 100%;
    padding: 10px;
}

.room-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.room-item {
    width: 50%;
    height: 100px;
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #F9F9F9;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.room-item-left {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 10px;
}

.room-number {
    color: #9BAD72;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
}

.room-name {
    color: #000;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.72px;
}

.room-status {
    border-radius: 20px;
    border: 1px solid #9BAD72;
    background: #EFF5E0;
    width: 70px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-status-text {
    color: #919191;
    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.6px;
}

/* User avatar styles */
.user-avatar {
    border-radius: 10px;
    background: #818C68;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Modal styles */
.make-room-modal {
    position: absolute;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    border-radius: 20px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    padding: 15px;
    max-width: 500px;
    width: 100%;
}

.modal-title {
    color: #2C3121;
    font-family: Paperlogy;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.84px;
    margin-bottom: 10px;
}

.modal-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.modal-input {
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #F9F9F9;
    height: 36px;
    padding: 5px;
    width: 100%;
    font-family: Paperlogy;
    font-size: 14px;
    outline: none;
}

.modal-input:focus {
    border-color: #9BAD72;
}

.modal-select {
    border-radius: 10px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    height: 36px;
    text-align: center;
    font-family: Paperlogy;
    font-size: 14px;
    outline: none;
}

.modal-select-small {
    width: 100px;
}

.modal-select-large {
    width: 100%;
    color: #000000;
    font-family: Paperlogy;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.6px;
    padding: 5px;
}

.modal-divider {
    height: 1px;
    background: #D0D0D0;
    margin-top: 10px;
}

.modal-checkbox-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.modal-checkbox {
    margin-right: 5px;
}

.modal-label {
    font-size: 14px;
    color: #000000;
    text-wrap: nowrap;
}

.modal-button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.modal-button {
    border-radius: 15px;
    border: 1px solid #D0D0D0;
    padding: 5px;
    width: 100%;
    height: 40px;
    cursor: pointer;
    font-family: Paperlogy;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-button-cancel {
    background: #EFEFEF;
    color: #333;
}

.modal-button-cancel:hover {
    background: #D0D0D0;
}

.modal-button-create {
    background: linear-gradient(90deg, #9BAD72 0%, #829655 100%);
    color: white;
}

.modal-button-create:hover {
    background: linear-gradient(90deg, #829655 0%, #6B7A47 100%);
}

.modal-video-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    flex-direction: row;
}

.modal-video {
    width: 50%;
    background: #ff7d7d;
    object-fit: cover;
    border-radius: 10px;
}

.modal-video:nth-child(2) {
    background: #bbf813;
}
 

.room-header-title{
    color: #2C3121;
    font-family: Paperlogy;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.72px;
}

.sidebar-container {
    display: block; 
    position: fixed; 
    top: 60px; 
    right: 10px; 
    width: 320px; 
    min-height: 400px; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    overflow: hidden;
    transition: all 0.3s;
}


.room-container-background-label-container {
    position: absolute;
    background: rgb(0, 255, 221);
    top: 0px;
    padding: 5px;
}

.room-container-background-label-container:hover {
    border-color: rgb(0, 81, 255);
}


.room-container-background-label-container-my {
    position: absolute;
    background: rgb(255, 115, 0);
    top: 0px;
    padding: 5px;
}

.room-container-background-label-container-my:hover {
    background: rgb(0, 81, 255);
}

.room-container-background-label {
    color: #000000;
    font-family: Pretendard;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.6px;
}


.video-background {
    border: 2px solid rgb(0, 255, 221);
    resize: both;
    overflow: hidden;position: absolute;
}

.video-background:hover {
    border: 2px solid rgb(0, 81, 255);
}


.video-background-my {
    border: 2px solid rgb(255, 115, 0);
    resize: both;
    overflow: hidden;position: absolute;
}

.video-background-my:hover {
    border: 2px solid rgb(0, 81, 255);
}