305 lines
5.1 KiB
CSS
305 lines
5.1 KiB
CSS
/**
|
|
* CallRoom CSS
|
|
* Voice/video call interface styling
|
|
*/
|
|
|
|
.call-room {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
background: #0a0e17;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.call-room.loading {
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.call-loading-content {
|
|
text-align: center;
|
|
color: #b5bac1;
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid rgba(0, 217, 255, 0.2);
|
|
border-top: 4px solid #00d9ff;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 1rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Call header */
|
|
.call-header {
|
|
padding: 1rem;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-bottom: 1px solid rgba(0, 217, 255, 0.1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.call-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.call-info h2 {
|
|
margin: 0;
|
|
color: #ffffff;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.participant-count {
|
|
background: rgba(0, 217, 255, 0.1);
|
|
color: #00d9ff;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.call-duration {
|
|
color: #72767d;
|
|
font-size: 0.9375rem;
|
|
font-weight: 500;
|
|
padding: 0.25rem 0.75rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Video grid */
|
|
.call-video-grid {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 217, 255, 0.05) 100%);
|
|
}
|
|
|
|
.participant-video {
|
|
position: relative;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
border: 1px solid rgba(0, 217, 255, 0.2);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
aspect-ratio: 16 / 9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 250px;
|
|
}
|
|
|
|
.participant-video.empty {
|
|
grid-column: 1 / -1;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.participant-name {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
left: 0.75rem;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: #ffffff;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
z-index: 10;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.video-placeholder {
|
|
color: #72767d;
|
|
text-align: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Control bar */
|
|
.call-controls {
|
|
padding: 1rem;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border-top: 1px solid rgba(0, 217, 255, 0.1);
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.control-btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border: 1px solid rgba(0, 217, 255, 0.3);
|
|
background: rgba(0, 217, 255, 0.1);
|
|
color: #00d9ff;
|
|
border-radius: 8px;
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: rgba(0, 217, 255, 0.2);
|
|
border-color: rgba(0, 217, 255, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.control-btn.active {
|
|
background: rgba(114, 137, 218, 0.3);
|
|
border-color: #7289da;
|
|
color: #7289da;
|
|
}
|
|
|
|
.control-btn.inactive {
|
|
background: rgba(244, 54, 54, 0.1);
|
|
border-color: rgba(244, 54, 54, 0.3);
|
|
color: #f43636;
|
|
}
|
|
|
|
.control-btn.end-call {
|
|
background: rgba(244, 54, 54, 0.2);
|
|
border-color: #f43636;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.control-btn.end-call:hover {
|
|
background: rgba(244, 54, 54, 0.3);
|
|
box-shadow: 0 0 16px rgba(244, 54, 54, 0.3);
|
|
}
|
|
|
|
/* Error message */
|
|
.call-error {
|
|
position: fixed;
|
|
bottom: 1rem;
|
|
right: 1rem;
|
|
background: rgba(244, 54, 54, 0.1);
|
|
border: 1px solid #f43636;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
color: #ffffff;
|
|
z-index: 1000;
|
|
max-width: 400px;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateY(100px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.call-error p {
|
|
margin: 0 0 0.75rem 0;
|
|
color: #f43636;
|
|
}
|
|
|
|
.call-error button {
|
|
background: #f43636;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.call-error button:hover {
|
|
background: #d63030;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.call-video-grid {
|
|
grid-template-columns: 1fr;
|
|
padding: 1rem;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.call-info {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.call-info h2 {
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.control-btn {
|
|
padding: 0.625rem 1rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.call-controls {
|
|
padding: 0.75rem;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.participant-video {
|
|
min-height: 200px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.call-room {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.call-info {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.call-info h2 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.participant-count,
|
|
.call-duration {
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0.5rem;
|
|
}
|
|
|
|
.control-btn {
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.participant-video {
|
|
min-height: 150px;
|
|
}
|
|
|
|
.call-error {
|
|
bottom: 0.5rem;
|
|
right: 0.5rem;
|
|
left: 0.5rem;
|
|
max-width: 100%;
|
|
}
|
|
}
|