:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --danger-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --bg-color: #f8f9fa;
    --sidebar-bg: #ffffff;
    --border-color: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Pre-meeting screen styles */
.pre-meeting-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.meeting-options {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.meeting-options h1 {
    margin-bottom: 20px;
    font-weight: 500;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.input-group button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.input-group button:hover {
    background-color: var(--primary-dark);
}

.divider {
    position: relative;
    margin: 25px 0;
    color: var(--text-secondary);
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: -1;
}

.divider span {
    background-color: white;
    padding: 0 10px;
}

.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

.primary-btn i {
    margin-right: 8px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

.settings-toggle i {
    margin-right: 8px;
}

.settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
    z-index: 10;
    display: none;
}

.settings-panel h3 {
    margin-bottom: 20px;
    font-weight: 500;
}

.setting-option {
    margin-bottom: 15px;
}

.setting-option label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-option select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

#closeSettingsBtn {
    margin-top: 20px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Meeting screen styles */
.meeting-screen {
    display: none;
    height: 100%;
    flex-direction: column;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 2;
}

.meeting-info {
    display: flex;
    align-items: center;
}

.meeting-info span {
    margin-right: 15px;
    font-size: 14px;
}

.meeting-actions {
    display: flex;
    align-items: center;
}

.meeting-actions button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.meeting-actions button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.danger-btn {
    color: white !important;
    background-color: var(--danger-color) !important;
}

.danger-btn:hover {
    background-color: #d33426 !important;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f4;
    position: relative;
}

.video-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    background-color: black;
    border-radius: 8px;
    overflow: hidden;
}

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

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-actions {
    display: flex;
}

.video-action-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 5px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar styles */
.sidebar {
    width: 300px;
    background-color: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-tabs {
    display: flex;
}

.sidebar-tab {
    background: none;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.sidebar-tab.active {
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

.sidebar-tab i {
    margin-right: 5px;
}

.close-sidebar {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.close-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-content {
    flex: 1;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.participants-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.participant-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 500;
}

.participant-name {
    flex: 1;
    font-size: 14px;
}

.participant-status {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.participant-status i {
    margin-right: 5px;
}

.invite-section {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.invite-section h4 {
    margin-bottom: 10px;
    font-weight: 500;
}

.invite-options {
    display: flex;
    flex-direction: column;
}

.invite-options button {
    display: flex;
    align-items: center;
    padding: 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.invite-options button i {
    margin-right: 8px;
    color: var(--text-secondary);
}

.invite-options button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Chat styles */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 15px;
}

.message-sender {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 3px;
}

.message-content {
    background-color: #f1f3f4;
    padding: 8px 12px;
    border-radius: 18px;
    display: inline-block;
    max-width: 80%;
    font-size: 14px;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input button {
    background: none;
    border: none;
    margin-left: 10px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Controls bar */
.controls-bar {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 2;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 12px;
    min-width: 80px;
}

.control-btn i {
    font-size: 18px;
    margin-bottom: 5px;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.control-btn.active {
    color: var(--primary-color);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
}

.modal h2 {
    margin-bottom: 20px;
    font-weight: 500;
}

.invite-methods {
    margin-bottom: 20px;
}

.invite-method {
    margin-bottom: 20px;
}

.invite-method h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.invite-link {
    display: flex;
}

.invite-link input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.invite-link button {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Responsive styles */
@media (max-width: 768px) {
    .meeting-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 50%;
        transform: translateY(100%);
    }
    
    .sidebar.open {
        transform: translateY(0);
    }
    
    .controls-bar {
        justify-content: space-around;
    }
    
    .control-btn {
        min-width: auto;
        padding: 8px;
    }
    
    .control-btn span {
        display: none;
    }
}
