body {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.3);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
    border: 2px solid rgba(67, 97, 238, 0.3);
    image-rendering: high-quality;
    filter: contrast(1.05) brightness(1.05);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Video loading spinner */
.video-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(67, 97, 238, 0.3);
    border-top-color: #4361ee;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.video-container.loaded::before {
    display: none;
}

/* Video kalitesi kontrolleri */
video:focus {
    outline: none;
}

video::cue {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

/* Video durumu göstergeleri */
.video-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

/* Video bağlantı uyarısı */
.connection-warning {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    text-align: center;
    padding: 8px;
    z-index: 15;
    font-size: 14px;
    font-weight: 500;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.show-warning .connection-warning {
    transform: translateY(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

.connection-status {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.room-code {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(45deg, #4361ee, #3f37c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
    margin: 10px 0;
}

.connected-users {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.user-badge {
    background: linear-gradient(45deg, #4361ee, #3f37c9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
    display: flex;
    align-items: center;
}

.user-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(67, 97, 238, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #4361ee;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
    border-left: 4px solid #ef4444;
}

.notification.success {
    background: rgba(34, 197, 94, 0.9);
    border-left: 4px solid #22c55e;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4361ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card styles */
.bg-slate-800 {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.bg-slate-800:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Button Styles */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Input styling */
input {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* Placeholder styling */
#localVideoPlaceholder, #remoteVideoPlaceholder {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 2px dashed rgba(67, 97, 238, 0.3);
}

/* Tam ekran buton stili */
.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(67, 97, 238, 0.8);
}

.video-container:hover .fullscreen-btn {
    opacity: 0.7;
}

/* Tam ekran içindeki video stillemesi */
video::-webkit-media-controls {
    display: none !important;
}

video:fullscreen {
    object-fit: contain;
    background: black;
}

.video-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
} 