
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --accent: #f16101;
    --light: #f8f9fa;
    --dark: #212529;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

.agenda-page {
    background-color: #f8fafc;
    padding-bottom: 80px;
}

.agenda-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agenda-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.agenda-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.agenda-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* شريط الأيام الجانبي */
.days-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
}

.days-sidebar-header {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.days-sidebar-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.days-sidebar-title i {
    margin-right: 10px;
    color: var(--accent);
}

.day-list {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.day-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.day-item:last-child {
    border-bottom: none;
}

.day-item:hover {
    background: rgba(13, 110, 253, 0.05);
}

.day-item.active {
    background: var(--primary);
    color: white;
}

.day-item.active .date-badge {
    background: white;
    color: var(--primary);
}

.date-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: 700;
}

.date-badge .day-number {
    font-size: 1.3rem;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 3px;
}

.day-info {
    flex-grow: 1;
}

.day-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.day-count {
    font-size: 0.9rem;
    color: #777;
}

.day-item.active .day-count {
    color: rgba(255, 255, 255, 0.8);
}

/* فلترة الفعاليات */
.events-filters {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.filter-title i {
    margin-right: 12px;
    color: var(--accent);
    font-size: 1.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.filter-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.filter-btn:hover {
    background: rgba(13, 110, 253, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
}

/* ألوان مخصصة لكل نوع فعالية */
.filter-btn[data-filter="session"] { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.filter-btn[data-filter="workshop"] { background: rgba(102, 16, 242, 0.1); color: #6610f2; }
.filter-btn[data-filter="keynote"] { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.filter-btn[data-filter="break"] { background: rgba(32, 201, 151, 0.1); color: #20c997; }
.filter-btn[data-filter="lunch"] { background: rgba(253, 126, 20, 0.1); color: #fd7e14; }
.filter-btn[data-filter="networking"] { background: rgba(232, 62, 140, 0.1); color: #e83e8c; }

.filter-btn.active[data-filter="session"] { background: #0d6efd; color: white;}
.filter-btn.active[data-filter="workshop"] { background: #6610f2; color: white;}
.filter-btn.active[data-filter="keynote"] { background: #ffc107; color: white;}
.filter-btn.active[data-filter="break"] { background: #20c997; color: white;}
.filter-btn.active[data-filter="lunch"] { background: #fd7e14; color: white;}
.filter-btn.active[data-filter="networking"] { background: #e83e8c; color: white;}

/* المحتوى الرئيسي */
.agenda-content {
    flex: 1;
}

.agenda-day {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.agenda-day.active {
    display: block;
}

.agenda-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.agenda-item.hidden {
    display: none;
}

.agenda-header-card {
    display: flex;
    align-items: center;
    padding: 22px;
    background: rgba(13, 110, 253, 0.03);
    border-bottom: 1px solid #eee;
}

.agenda-time {
    min-width: 140px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.agenda-type {
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.agenda-type-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.agenda-body {
    padding: 30px;
}

.agenda-title {
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
    line-height: 1.4;
}

.agenda-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #777;
    min-width: 200px;
}

.meta-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.meta-details h5 {
    margin-bottom: 5px;
    font-weight: 700;
    color: #555;
    font-size: 1.05rem;
}

.meta-details p {
    margin: 0;
    font-size: 1rem;
}

.agenda-speakers {
    margin-top: 30px;
}

.speaker-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #555;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.speaker-title i {
    margin-right: 12px;
    color: var(--accent);
    font-size: 1.3rem;
}

.speaker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.speaker-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    width: calc(50% - 10px);
}

.speaker-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(13, 110, 253, 0.2);
}

.speaker-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    color: #333; /* تغيير اللون إلى داكن أكثر */
    font-weight: 400; /* زيادة سمك الخط */
}

.speaker-position {
    color: #555; /* لون أكثر وضوحًا */
}

.empty-agenda {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.empty-icon {
    font-size: 5rem;
    color: #e2e8f0;
    margin-bottom: 25px;
}

.no-items-message {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

/* زر القائمة الجانبية للأجهزة الصغيرة */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 25px rgba(13, 110, 253, 0.5);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1199px) {
    .agenda-container {
        flex-direction: column;
    }

    .days-sidebar {
        flex: 0 0 auto;
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        padding-right: 0;
    }

    .days-sidebar-header {
        display: none;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .day-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .day-list.active {
        max-height: 1000px;
    }
}

@media (max-width: 991px) {
    .agenda-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .agenda-time {
        margin-bottom: 15px;
    }

    .agenda-type {
        margin-left: 0;
    }

    .speaker-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .agenda-header {
        padding: 60px 0;
    }

    .agenda-body {
        padding: 20px;
    }

    .agenda-title {
        font-size: 1.3rem;
    }

    .agenda-meta {
        flex-direction: column;
        gap: 15px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .filter-btn i {
        font-size: 0.9rem;
    }
}
