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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* Login Screen */
#login-screen {
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #444;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #f8f8f8;
    border-color: #667eea;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box button:hover {
    background: #5568d3;
}

/* Chat Screen */
.chat-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 70px 1fr 60px;
    grid-template-areas:
        "header header"
        "sidebar messages"
        "sidebar input";
    width: 100%;
    height: 100vh;
    background: white;
}

.chat-header {
    grid-area: header;
    background: #667eea;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header h2 {
    margin: 0;
    font-size: 20px;
}

.chat-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.menu-toggle-btn {
    display: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.notification-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-btn.enabled {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: none; /* Hidden by default, shown only for admin */
}

.dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn {
    padding: 8px 15px;
    background: rgba(46, 213, 115, 0.4);
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    font-weight: bold;
}

.call-btn:hover {
    background: rgba(46, 213, 115, 0.6);
    transform: scale(1.05);
}

.user-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.user-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.user-profile:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leave-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.leave-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: #f7f7f7;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 16px;
}

#users-list {
    list-style: none;
    margin-bottom: 30px;
}

#users-list li {
    padding: 10px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

/* Rooms Section */
.rooms-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.create-room-btn {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.create-room-btn:hover {
    background: #5568d3;
}

#rooms-list {
    list-style: none;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.room-item:hover {
    background: #e8e8e8;
}

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

.room-item.active small {
    color: rgba(255, 255, 255, 0.8);
}

.room-info {
    flex: 1;
}

.room-info strong {
    display: block;
    font-size: 14px;
}

.room-info small {
    font-size: 12px;
    color: #999;
}

.room-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.invite-room-btn {
    width: 24px;
    height: 24px;
    background: rgba(102, 126, 234, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.invite-room-btn:hover {
    background: rgba(102, 126, 234, 0.9);
}

.delete-room-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.delete-room-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.room-item.active .invite-room-btn {
    background: rgba(255, 255, 255, 0.3);
}

.room-item.active .invite-room-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.room-item.active .delete-room-btn {
    background: rgba(255, 255, 255, 0.3);
}

.room-item.active .delete-room-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 10px;
}

.room-count {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-content input[type="text"],
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Invite Modal Styles */
.room-name-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.invite-section {
    margin-bottom: 25px;
}

.invite-section h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
}

.invite-input-group {
    display: flex;
    gap: 10px;
}

.invite-input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.invite-input-group button {
    padding: 10px 20px;
}

.invited-list-section {
    margin-bottom: 20px;
}

.invited-list-section h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
}

#invited-users-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.invited-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background: #f7f7f7;
    border-radius: 5px;
    font-size: 14px;
}

.remove-invite-btn {
    width: 22px;
    height: 22px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-invite-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.no-invites {
    color: #999;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Dashboard Modal */
.modal-large {
    max-width: 900px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.users-table-container {
    margin-top: 20px;
}

.users-table-container h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table thead {
    background: #f7f7f7;
}

.users-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #e0e0e0;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.users-table tbody tr:hover {
    background: #f7f7f7;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dashboard Rooms Section */
.rooms-table-container {
    margin-bottom: 30px;
}

.rooms-table-container h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

#rooms-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.room-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.room-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.room-type {
    font-size: 14px;
    color: #666;
}

.room-active-users {
    color: #444;
    font-size: 14px;
}

.user-count {
    font-weight: 600;
    color: #667eea;
}

.no-users {
    color: #999;
    font-style: italic;
}

.no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Messages Area */
.messages-container {
    grid-area: messages;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

#messages {
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s;
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.own-message {
    align-self: flex-end;
}

.own-message .message-text {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 10px 15px;
}

.own-message .message-username {
    color: #1976d2;
}

.own-message .message-header {
    flex-direction: row-reverse;
}

.own-message .message-header .message-username {
    margin-right: 0;
    margin-left: 10px;
}

.own-message .message-header .reply-btn {
    margin-left: 0;
    margin-right: 8px;
}

.other-message {
    align-self: flex-start;
}

.other-message .message-text {
    background: #f3e5f5;
    border-radius: 12px;
    padding: 10px 15px;
}

.other-message .message-username {
    color: #7b1fa2;
}

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

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.message-username {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 2px 6px;
    margin-left: 8px;
}

.message:hover .reply-btn {
    opacity: 1;
}

.reply-btn:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.reply-context {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.reply-icon {
    font-size: 14px;
    color: #667eea;
}

.reply-content {
    flex: 1;
    overflow: hidden;
}

.reply-username {
    font-weight: 600;
    color: #667eea;
    margin-right: 6px;
}

.reply-message {
    color: #666;
}

.message-text {
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 250px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.own-message .voice-message {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.other-message .voice-message {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.play-voice-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.play-voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.voice-waveform {
    flex: 1;
    color: white;
    font-size: 20px;
}

.file-message {
    max-width: 300px;
}

.own-message .file-message .file-download {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.other-message .file-message .file-download {
    background: #f3e5f5;
    border-left: 4px solid #7b1fa2;
}

.message-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.file-download:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.file-icon {
    font-size: 32px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-top: 5px;
    word-break: break-word;
}

.file-action {
    font-size: 12px;
    color: #667eea;
    margin-top: 4px;
}

.system-message {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 14px;
    margin: 10px 0;
}

#typing-indicator {
    color: #999;
    font-style: italic;
    font-size: 14px;
    min-height: 20px;
    padding-left: 5px;
}

/* Input Area */
.input-container {
    grid-area: input;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.reply-preview {
    padding: 8px 10px;
    background: #f0f0ff;
    border-bottom: 1px solid #e0e0e0;
}

.reply-preview-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.reply-preview-text {
    color: #555;
}

.reply-preview-text strong {
    color: #667eea;
}

.cancel-reply-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 8px;
    line-height: 1;
}

.cancel-reply-btn:hover {
    color: #333;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.voice-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.voice-btn:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.file-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.file-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin: 0 10px 10px 10px;
    background: #ffe0e0;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.recording-indicator[style*="display: flex"] {
    display: flex !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.recording-text {
    flex: 1;
    font-weight: 600;
    color: #d32f2f;
}

.stop-recording-btn {
    padding: 8px 16px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.stop-recording-btn:hover {
    background: #b71c1c;
}

#message-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

#message-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

#message-input:focus {
    outline: none;
    border-color: #667eea;
}

#send-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#send-btn:hover {
    background: #5568d3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Video Call Interface */
.video-call-container {
    position: absolute;
    top: 80px;
    left: 260px;
    right: 0;
    bottom: 100px;
    background: #1a1a1a;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.video-streams {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

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

.local-video {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

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

/* Incoming Call Modal */
.incoming-call-info {
    text-align: center;
    padding: 20px;
}

.caller-profile {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

.caller-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.caller-profile-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    border: 3px solid #667eea;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.caller-name {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.call-type {
    font-size: 18px;
    color: #666;
}

.incoming-call-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.modal-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.modal-small {
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "messages"
            "input";
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 80px;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.show {
        left: 0;
    }

    .menu-toggle-btn {
        display: flex !important;
    }

    .message-text {
        max-width: 90%;
    }
    
    .video-call-container {
        left: 0;
    }
    
    .local-video {
        width: 120px;
        height: 90px;
        bottom: 10px;
        right: 10px;
    }
    
    .header-info {
        flex-direction: row;
        gap: 10px;
    }
    
    .header-info h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .header-info p {
        font-size: 12px;
    }
}
