/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: url('../images/webinarfinal.png') no-repeat center center fixed;
    background-size: cover;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border-radius: 5px;
    text-decoration: none;
  }
/* Webinar Room Layout */
.webinar-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    height: 100vh;
}

.video-container {
    background: #1a1a1a;
    border-radius: 8px;
    position: relative;
    height: 70vh;
}

/* Video Elements */
video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 50px;
    z-index: 1000;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #444;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}
.control-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.control-btn:hover::after {
    opacity: 1;
}

.control-btn.danger {
    background: #e74c3c;
    padding: 12px; /* Add padding for text */
    font-size: 0.9rem; /* Smaller text */
    white-space: nowrap;
    width: auto;
    border-radius: 30px;
}
.control-btn:hover {
    background: #666;
}


/* Sidebar */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.participants ul {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.participants li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.participants {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.participants h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.participant-name {
    font-weight: 500;
}

.badge.presenter {
    background: #4361ee;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}
#participantsList {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    list-style: none;
}

#participantsList li {
    padding: 8px 10px;
    margin-bottom: 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#remoteVideos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  #remoteVideos video {
    width: 320px;
    height: 240px;
    border: 1px solid #ccc;
  }
/* Chat */
.chat {
    margin-top: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

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

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #2980b9;
}
/* Mute state */
.control-btn.muted {
    background-color: #e74c3c;
}

/* Presentation styles */
.presentation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10;
}

.presentation-container iframe {
    width: 100%;
    height: 100%;
}

.presentation-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Moderator controls */
.moderator-controls {
    display: none;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.is-moderator .moderator-controls {
    display: block;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 100;
    animation: fadeInOut 3s;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
.subtitle {
    background: linear-gradient(45deg, 
    rgb(10 131 134 / 58%) 0%, 
    rgb(9 51 150 / 90%) 100%);
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.9;
}
header {
    background: linear-gradient(135deg, #43eeac, #3751c9);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.webinar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.webinar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.webinar-card.live::before {
    content: 'LIVE';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

.webinar-card.upcoming::before {
    content: 'UPCOMING';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--warning);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.webinar-card.past::before {
    content: 'RECORDING AVAILABLE';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.webinar-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.webinar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.webinar-card:hover .webinar-thumbnail img {
    transform: scale(1.05);
}

.webinar-thumbnail .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.webinar-thumbnail .play-btn i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-left: 5px;
}

.webinar-card:hover .play-btn {
    opacity: 1;
}

.webinar-info {
    padding: 20px;
}

.webinar-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.webinar-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.webinar-meta i {
    margin-right: 8px;
    color: var(--accent);
}

.webinar-meta span {
    margin-right: 15px;
}

.webinar-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webinar-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-disabled {
    background-color: #ddd;
    color: #666;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    animation: fadeIn 0.8s ease-out;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}
.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color : white;
    font-weight: 6px;
}

.empty-state .btn {
    margin-top: 15px;
}
.search-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color:#6a410c;
}

.filter-btn i {
    margin-left: 8px;
}

.filter-menu {
    position: absolute;
    right: 0;
    top: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 200px;
    z-index: 10;
    display: none;
}

.filter-menu.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.filter-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background-color: #f5f7fa;
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(247, 37, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .webinar-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .search-filter {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .filter-dropdown {
        align-self: flex-end;
    }
}
.webinar-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    background-color: #4361ee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
    max-width: 300px;
}

.webinar-notification.error {
    background-color: #f72585;
}

.webinar-notification.success {
    background-color: #4cc9f0;
}

.webinar-notification.warning {
    background-color: #f8961e;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}