/* Video Conference Room - Monday.com Style */
/* Mobile-First Responsive Design */

/* ============================================ */
/* VIDEO CALL INTERFACE (Monday.com Style) */
/* ============================================ */

.video-call-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

@media (min-width: 768px) {
    .video-call-container {
        padding: 24px;
    }
}

/* Main video card - Monday.com inspired */
.video-call-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.video-call-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-gradient 4s ease-in-out infinite;
}

@keyframes pulse-gradient {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@media (max-width: 767px) {
    .video-call-card {
        padding: 24px 20px;
        border-radius: 20px;
        max-width: 100%;
    }
}

/* Avatar/Profile Picture */
.video-call-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 24px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 767px) {
    .video-call-avatar {
        width: 110px;
        height: 110px;
        border-width: 4px;
        margin-bottom: 20px;
    }
}

/* User Name */
.video-call-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .video-call-name {
        font-size: 22px;
    }
}

/* Phone Number/Contact Info */
.video-call-number {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

@media (max-width: 767px) {
    .video-call-number {
        font-size: 16px;
        margin-bottom: 24px;
    }
}

/* Status Badge */
.video-call-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-call-status::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00ca72;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 202, 114, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 767px) {
    .video-call-status {
        font-size: 13px;
        padding: 8px 16px;
        margin-bottom: 32px;
    }
}

/* Video Action Buttons - Circular Layout */
.video-call-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .video-call-actions {
        gap: 16px;
        margin-bottom: 24px;
    }
}

/* Individual Action Button */
.video-action-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.video-action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.video-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-action-btn:active {
    transform: scale(0.95);
}

.video-action-btn i {
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.video-action-btn span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* End Call Button - Red */
.video-action-btn.end-call {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-color: #dc2626;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.video-action-btn.end-call:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(220, 38, 38, 0.6);
}

/* Muted/Disabled State */
.video-action-btn.muted,
.video-action-btn.disabled {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 767px) {
    .video-action-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .video-action-btn span {
        font-size: 10px;
    }
}

/* Monday.com branding link */
.video-call-branding {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.video-call-branding:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.video-call-branding img {
    height: 20px;
}

@media (max-width: 767px) {
    .video-call-branding {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .video-call-branding img {
        height: 18px;
    }
}

/* ============================================ */
/* VIDEO ROOM CONTAINER */
/* ============================================ */

.video-room-container {
    background: #000;
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .video-room-container {
        min-height: 600px;
        border-radius: 16px;
    }
}

/* Remote video (main) */
#remote-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 768px) {
    #remote-media {
        border-radius: 16px;
    }
}

/* Local video (picture-in-picture) */
#local-media {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 105px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;
    object-fit: cover;
    transition: all 0.3s ease;
}

#local-media:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

@media (max-width: 767px) {
    #local-media {
        width: 100px;
        height: 75px;
        bottom: 12px;
        right: 12px;
        border-width: 2px;
        border-radius: 8px;
    }
}

/* Video controls overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    transition: opacity 0.3s ease;
}

.video-controls-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .video-controls-overlay {
        padding: 16px 12px;
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* Control buttons in video */
.video-control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.video-control-btn.active {
    background: #00ca72;
    border-color: #00ca72;
}

.video-control-btn.danger {
    background: #e44258;
    border-color: #e44258;
}

.video-control-btn.danger:hover {
    background: #c63a50;
    border-color: #c63a50;
}

@media (max-width: 767px) {
    .video-control-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* ============================================ */
/* CONFERENCE DETAILS CARDS */
/* ============================================ */

.conference-detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.conference-detail-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .conference-detail-card {
        padding: 16px;
        border-radius: 8px;
    }
}

/* Participant info */
.participant-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.participant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f6f7fb;
}

.participant-details h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #323338;
}

.participant-details p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #676879;
}

@media (max-width: 767px) {
    .participant-info {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .participant-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    
    .participant-details h5 {
        font-size: 16px;
    }
    
    .participant-details p {
        font-size: 13px;
    }
}

/* ============================================ */
/* STATUS BANNERS */
/* ============================================ */

.status-banner {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.status-banner i {
    font-size: 20px;
}

.status-banner.pending {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #fdab3d;
}

.status-banner.accepted {
    background: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #5559df;
}

.status-banner.in-progress {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #00ca72;
}

.status-banner.completed {
    background: #f3e5f5;
    color: #4a148c;
    border-left: 4px solid #9c27b0;
}

@media (max-width: 767px) {
    .status-banner {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .status-banner i {
        font-size: 18px;
    }
}

/* ============================================ */
/* MEETING LINK SECTION */
/* ============================================ */

.meeting-link-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #00ca72;
}

.meeting-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.meeting-link-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
}

.copy-link-btn {
    padding: 8px 16px;
    background: #00ca72;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-link-btn:hover {
    background: #00a85c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 202, 114, 0.3);
}

.meeting-link-url {
    background: white;
    padding: 12px;
    border-radius: 6px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #323338;
    border: 1px solid #c8e6c9;
}

@media (max-width: 767px) {
    .meeting-link-box {
        padding: 16px;
    }
    
    .meeting-link-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .copy-link-btn {
        width: 100%;
        justify-content: center;
    }
    
    .meeting-link-url {
        font-size: 12px;
        padding: 10px;
    }
}

/* ============================================ */
/* RESPONSIVE UTILITIES */
/* ============================================ */

@media (max-width: 767px) {
    .d-md-none {
        display: block !important;
    }
    
    .d-none.d-md-inline,
    .d-none.d-md-block {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-none.d-md-inline {
        display: inline !important;
    }
    
    .d-none.d-md-block {
        display: block !important;
    }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.3s ease;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.slide-up {
    animation: slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
