/* ============================================================
   STYLES.CSS - Chat AMT Promoția 1984
   Academia Militară Tehnică București
   ============================================================ */

/* Variables */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --primary-dark: #152a45;
    --secondary: #f0c14b;
    --secondary-dark: #d4a83a;
    --accent: #c9302c;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f4f6f9;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --gold: #f0c14b;
    --gold-dark: #c8960c;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   LOGO AMT
   ============================================================ */
.logo-amt {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    gap: 0;
}

.logo-amt__star {
    font-size: 1.4em;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(240,193,75,0.7));
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(240,193,75,0.5)); transform: scale(1); }
    50%       { filter: drop-shadow(0 0 10px rgba(240,193,75,0.9)); transform: scale(1.12); }
}

.logo-amt__letters {
    display: flex;
    align-items: baseline;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-amt__a {
    font-size: 2.4em;
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--primary-dark);
}

.logo-amt__mt {
    font-size: 2.4em;
    color: var(--white);
    text-shadow: 2px 2px 0 var(--primary-dark);
}

/* Variante de mărime */
.logo-amt--small .logo-amt__star  { font-size: 0.9em; }
.logo-amt--small .logo-amt__a,
.logo-amt--small .logo-amt__mt    { font-size: 1.5em; }

.logo-amt--large .logo-amt__star  { font-size: 2em; }
.logo-amt--large .logo-amt__a,
.logo-amt--large .logo-amt__mt    { font-size: 3.8em; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    gap: 12px;
}

.loading-promotie {
    font-size: 1em;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 4px;
}

.loading-subtitle {
    opacity: 0.6;
    font-size: 0.9em;
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e8edf5 0%, #f4f6f9 60%, #dce4ef 100%);
    padding: 20px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 620px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(30,58,95,0.08);
}

/* Sidebar 35% */
.login-sidebar {
    width: 36%;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 44px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Decoratie geometrica subtila */
.login-sidebar::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(240,193,75,0.15);
    border-radius: 50%;
}
.login-sidebar::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(240,193,75,0.1);
    border-radius: 50%;
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.amt-promotie {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 8px;
    text-transform: uppercase;
}

.login-brand .slogan {
    font-size: 0.95em;
    opacity: 0.8;
    margin-top: 6px;
}

.login-brand .description {
    font-size: 0.85em;
    opacity: 0.65;
    margin-top: 12px;
    line-height: 1.6;
}

/* Stats rotative */
.login-stats {
    position: relative;
    min-height: 100px;
    margin: 24px 0;
}

.stat-item {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}

.stat-item.active {
    opacity: 1;
    transform: translateY(0);
}

.stat-icon  { font-size: 2.2em; }
.stat-value { font-size: 1.5em; font-weight: bold; color: var(--gold); }
.stat-label { font-size: 0.82em; opacity: 0.8; margin-top: 2px; }

.stat-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.stat-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.stat-dots .dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* Form 65% */
.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 48px;
    background: var(--white);
}

.login-form { width: 100%; max-width: 400px; }

.login-form-header { margin-bottom: 32px; }

.login-form-header h2 {
    font-size: 1.75em;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.9em;
    color: var(--gray);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1em;
    transition: all 0.25s;
    background: #fafbfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.form-group.checkbox label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-weight: normal; color: var(--gray);
}

.form-group.checkbox input[type="checkbox"] {
    width: 17px; height: 17px; cursor: pointer;
    accent-color: var(--primary);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--gray);
    font-size: 0.85em;
    line-height: 1.6;
}

.link-whatsapp {
    display: inline-block;
    margin-top: 10px;
    color: var(--success);
    font-weight: 600;
    text-decoration: none;
}
.link-whatsapp:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}

.btn-secondary { background: var(--gray-light); color: var(--dark); }
.btn-secondary:hover:not(:disabled) { background: #ddd; }

.btn-large { width: 100%; padding: 15px; font-size: 1.05em; border-radius: 14px; }
.btn-small { padding: 6px 12px; font-size: 0.85em; }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #20bd5a; }

/* ============================================================
   WAITING ROOM
   ============================================================ */
.waiting-room {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.waiting-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--white);
    text-align: center;
}

.waiting-icon { font-size: 4em; margin-bottom: 20px; }
.waiting-icon .spinner { display: inline-block; animation: spin 2s linear infinite; }

@keyframes spin { 100% { transform: rotate(360deg); } }

.waiting-room h1 { font-size: 2em; margin-bottom: 20px; }

.waiting-user-info {
    display: flex; align-items: center; gap: 15px;
    padding: 20px 30px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.waiting-user-info .avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--secondary);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5em; font-weight: bold;
}

.waiting-user-info .user-details { text-align: left; }
.waiting-user-info .user-details strong { display: block; font-size: 1.2em; }
.waiting-user-info .user-details span { opacity: 0.8; font-size: 0.9em; }

.waiting-message { max-width: 400px; opacity: 0.9; margin-bottom: 30px; }
.waiting-contact { margin-bottom: 30px; }
.waiting-contact p { margin-bottom: 15px; opacity: 0.8; }

.btn-logout {
    margin-top: 20px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.waiting-decoration {
    width: 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.12);
    opacity: 0.4;
}

/* ============================================================
   BLOCKED SCREEN
   ============================================================ */
.blocked-screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--light); padding: 20px;
}

.blocked-content { text-align: center; max-width: 400px; }
.blocked-icon { font-size: 4em; display: block; margin-bottom: 20px; }
.blocked-content h1 { color: var(--danger); margin-bottom: 15px; }
.blocked-content p  { color: var(--gray); margin-bottom: 30px; }

/* ============================================================
   CHAT ROOM
   ============================================================ */
.chat-room {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--light);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.chat-brand { display: flex; align-items: center; gap: 12px; }
.chat-title h1 { font-size: 1.1em; margin: 0; }
.online-count { font-size: 0.78em; opacity: 0.75; cursor: pointer; }
.online-count:hover { opacity: 1; }

.chat-actions { display: flex; gap: 10px; }

.btn-admin {
    background: var(--secondary);
    color: var(--primary-dark);
    position: relative;
}

.btn-admin .badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--danger); color: var(--white);
    font-size: 0.7em; padding: 2px 6px;
    border-radius: 10px; min-width: 18px;
}

.chat-actions .btn-logout {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
}
.chat-actions .btn-logout:hover { background: rgba(255,255,255,0.25); }

/* Online dropdown */
.online-dropdown {
    position: absolute; top: 65px; left: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 15px; z-index: 100;
    min-width: 210px;
    border: 1px solid var(--gray-light);
}

.online-dropdown h4 { color: var(--primary); margin-bottom: 10px; font-size: 0.88em; }
.online-dropdown ul { list-style: none; max-height: 200px; overflow-y: auto; }
.online-dropdown li { padding: 8px 10px; border-radius: 6px; font-size: 0.9em; }
.online-dropdown li:hover { background: var(--light); }
.online-dropdown li.admin { color: var(--secondary-dark); font-weight: 600; }

/* Messages */
.messages-container {
    flex: 1; overflow-y: auto;
    padding: 20px;
    display: flex; flex-direction: column;
}

.no-messages {
    flex: 1; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    color: var(--gray);
}

.no-messages span { font-size: 3em; margin-bottom: 15px; opacity: 0.4; }

.messages-list { display: flex; flex-direction: column; gap: 5px; }

.message { display: flex; gap: 10px; max-width: 80%; }
.message.own { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary); flex-shrink: 0;
}

.message.admin-msg .message-avatar { background: var(--secondary); }
.message-content { display: flex; flex-direction: column; }

.message-author {
    font-size: 0.75em; font-weight: 600;
    color: var(--primary); margin-bottom: 3px; margin-left: 10px;
}

.admin-badge {
    background: var(--secondary); color: var(--primary-dark);
    padding: 1px 6px; border-radius: 4px;
    font-size: 0.8em; margin-left: 5px;
}

.message-bubble {
    background: var(--white);
    padding: 10px 14px;
    border-radius: 18px; border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message.own .message-bubble {
    background: var(--primary); color: var(--white);
    border-radius: 18px; border-top-right-radius: 4px;
}

.message.admin-msg:not(.own) .message-bubble {
    background: #fff8e1;
    border: 1px solid rgba(240,193,75,0.4);
}

.message-text { word-break: break-word; white-space: pre-wrap; }

.message-link { color: var(--primary-light); text-decoration: underline; }
.message.own .message-link { color: var(--secondary); }

.message-time { font-size: 0.7em; opacity: 0.55; text-align: right; margin-top: 4px; }

/* Typing indicator */
.typing-indicator {
    padding: 10px 20px; color: var(--gray);
    font-size: 0.85em; display: flex; align-items: center; gap: 8px;
}

.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px;
    background: var(--gray); border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.chat-input-area {
    padding: 14px 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
}

.input-wrapper { display: flex; gap: 10px; align-items: flex-end; }

.input-wrapper textarea {
    flex: 1; padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 24px; font-size: 1em;
    resize: none; max-height: 120px;
    font-family: inherit;
}

.input-wrapper textarea:focus {
    outline: none; border-color: var(--primary);
}

.btn-send {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    font-size: 1.3em; padding: 0;
}
.btn-send:hover:not(:disabled) { background: var(--primary-light); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}

.modal-content {
    background: var(--white); border-radius: var(--radius-lg);
    max-width: 95vw; width: 100%;
    max-height: 95vh; overflow: hidden;
    display: flex; flex-direction: column;
}

.modal-content.admin-modal { max-width: 1100px; height: 90vh; }

.admin-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; background: var(--primary); color: var(--white);
}

.admin-header h2 { margin: 0; }

.btn-close { background: transparent; color: var(--white); font-size: 1.5em; padding: 5px 10px; }

.admin-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 15px; padding: 20px; background: var(--light);
}

.stat-box {
    background: var(--white); padding: 15px;
    border-radius: var(--radius); text-align: center;
}

.stat-box .stat-number { display: block; font-size: 1.8em; font-weight: bold; color: var(--primary); }
.stat-box .stat-label  { font-size: 0.8em; color: var(--gray); }
.stat-box.pending .stat-number  { color: var(--warning); }
.stat-box.approved .stat-number { color: var(--success); }
.stat-box.online .stat-number   { color: var(--primary-light); }

.admin-filters {
    display: flex; gap: 10px; padding: 15px 20px;
    border-bottom: 1px solid var(--gray-light); flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px; border: 2px solid var(--gray-light);
    background: var(--white); border-radius: 20px;
    font-size: 0.85em; cursor: pointer; transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--primary); }
.filter-btn.pending.active  { border-color: var(--warning); color: var(--warning); }
.filter-btn.approved.active { border-color: var(--success); color: var(--success); }
.filter-btn.blocked.active  { border-color: var(--danger);  color: var(--danger); }

.admin-users {
    flex: 1; overflow-y: auto; overflow-x: auto;
    padding: 20px; min-height: 0; max-height: 100%;
}

.admin-users::-webkit-scrollbar       { width: 8px; height: 8px; }
.admin-users::-webkit-scrollbar-track { background: var(--gray-light); border-radius: 4px; }
.admin-users::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
.admin-users::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.admin-users table { width: 100%; border-collapse: collapse; }
.admin-users th { text-align: left; padding: 12px; background: var(--light); font-size: 0.85em; color: var(--gray); }
.admin-users td { padding: 12px; border-bottom: 1px solid var(--gray-light); vertical-align: middle; }
.admin-users tr:hover { background: var(--light); }

.user-info    { display: flex; align-items: center; gap: 10px; }
.user-avatar  {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary);
}

.role-badge   { background: var(--secondary); color: var(--primary-dark); padding: 2px 8px; border-radius: 4px; font-size: 0.7em; margin-left: 8px; }
.status-badge { margin-left: 5px; }
.contact-info { font-size: 0.85em; color: var(--gray); }
.msg-count    { text-align: center; font-weight: 600; }
.last-seen    { font-size: 0.85em; color: var(--gray); }
.actions      { display: flex; gap: 5px; flex-wrap: wrap; }

.btn-approve { background: var(--success); color: var(--white); }
.btn-block   { background: var(--warning); color: var(--dark); }
.btn-promote { background: var(--secondary); color: var(--primary-dark); }
.btn-delete  { background: var(--danger); color: var(--white); }

.you-badge {
    background: var(--gray-light); color: var(--gray);
    padding: 4px 10px; border-radius: 4px; font-size: 0.8em;
}

.admin-footer {
    display: flex; gap: 10px; padding: 15px 20px;
    border-top: 1px solid var(--gray-light); justify-content: flex-end;
}

.no-users, .loading { text-align: center; padding: 40px; color: var(--gray); }

/* ============================================================
   ERROR MESSAGE
   ============================================================ */
.error-message {
    background: #fee2e2; color: var(--danger);
    padding: 12px 16px; border-radius: var(--radius);
    margin-bottom: 20px; font-size: 0.9em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .login-container { flex-direction: column; min-height: auto; }
    .login-sidebar { width: 100%; padding: 30px 24px; }
    .login-form-wrapper { padding: 30px 24px; }
    .login-stats { min-height: 90px; }

    .waiting-room { flex-direction: column; }
    .waiting-decoration { display: none; }

    .chat-header { padding: 10px 14px; }
    .chat-brand .logo-amt { display: none; }

    .message { max-width: 90%; }

    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-users { overflow-x: auto; }
    .admin-users table { min-width: 600px; }

    .modal-content { max-height: 95vh; border-radius: var(--radius); }
    .modal-content.admin-modal { max-width: 100%; height: 95vh; margin: 10px; border-radius: var(--radius); }
}

@media (max-width: 480px) {
    .logo-amt--small .logo-amt__a,
    .logo-amt--small .logo-amt__mt { font-size: 1.2em; }

    .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; }
    .stat-box { padding: 10px; }
    .stat-box .stat-number { font-size: 1.4em; }
}

/* ============================================================
   VIDEO CALL - WebRTC 1-1
   ============================================================ */

/* Buton mic 📞 în lista online */
.btn-call-mini {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 8px;
    transition: background 0.15s;
    vertical-align: middle;
}
.btn-call-mini:hover {
    background: rgba(255,255,255,0.25);
}

/* Overlay fullscreen */
.vc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.vc-modal {
    background: #1a1a2e;
    border-radius: 16px;
    width: min(500px, 96vw);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Header */
.vc-header {
    padding: 14px 20px;
    background: #16213e;
    text-align: center;
}
.vc-title {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
}

/* Video area */
.vc-videos {
    position: relative;
    background: #0f0f1a;
    aspect-ratio: 4/3;
    max-height: 55vh;
    overflow: hidden;
}

/* Video coleg (mare) */
.vc-remote {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-video-remote {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder când nu e video remote */
.vc-avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.vc-avatar-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}
.vc-avatar-placeholder p {
    font-size: 1.1rem;
    color: #ccc;
}

/* Video propriu (mic, colț dreapta jos) */
.vc-local {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 110px;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background: #222;
}
.vc-video-local {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* mirror */
}
.vc-video-local.cam-off {
    display: none;
}
.vc-cam-off-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.75rem;
    background: #333;
}

/* Eroare */
.vc-error {
    background: rgba(220,53,69,0.15);
    color: #ff6b6b;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Butoane control */
.vc-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 20px;
    background: #16213e;
}

.vc-btn {
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.1s;
}
.vc-btn:hover    { opacity: 0.85; }
.vc-btn:active   { transform: scale(0.95); }

.vc-btn-answer   { background: #28a745; color: #fff; }
.vc-btn-reject,
.vc-btn-end      { background: #dc3545; color: #fff; }

.vc-btn-mute,
.vc-btn-cam      { background: #3a3a5c; color: #fff; min-width: 52px; }
.vc-btn-mute.active,
.vc-btn-cam.active { background: #c9302c; }

/* Mobile */
@media (max-width: 480px) {
    .vc-modal { border-radius: 10px; }
    .vc-local { width: 80px; }
    .vc-btn   { padding: 9px 14px; font-size: 0.9rem; }
}