/* ============================================================
   PORTAL CSS — Style YouTube / Modern Meeting Platform
   ============================================================ */

:root {
    --portal-bg: #f9f9f9;
    --portal-card-bg: #ffffff;
    --portal-text: #0f0f0f;
    --portal-text-secondary: #606060;
    --portal-border: #e5e5e5;
    --portal-hover: #f2f2f2;
    --portal-chip-bg: #f2f2f2;
    --portal-chip-active: #0f0f0f;
    --portal-chip-text: #0f0f0f;
    --portal-chip-active-text: #ffffff;
    --portal-accent: #6c5ce7;
    --portal-accent-hover: #5a4bd1;
    --portal-live: #ff0033;
    --portal-success: #00c851;
    --portal-warning: #ffbb33;
    --portal-paid: #ff6b35;
    --portal-free: #00c851;
    --portal-radius: 12px;
    --portal-radius-sm: 8px;
    --portal-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --portal-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark-mode {
    --portal-bg: #0f0f0f;
    --portal-card-bg: #1a1a1a;
    --portal-text: #f1f1f1;
    --portal-text-secondary: #aaaaaa;
    --portal-border: #303030;
    --portal-hover: #272727;
    --portal-chip-bg: #272727;
    --portal-chip-active: #f1f1f1;
    --portal-chip-text: #f1f1f1;
    --portal-chip-active-text: #0f0f0f;
    --portal-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --portal-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============ Top Bar ============ */

.portal-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--portal-bg);
    border-bottom: 1px solid var(--portal-border);
}

.portal-topbar-left {
    flex-shrink: 0;
}

.portal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--portal-text);
    white-space: nowrap;
}

.portal-title i {
    color: var(--portal-accent);
    margin-right: 0.4rem;
}

.portal-topbar-center {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.portal-search {
    display: flex;
    align-items: center;
    background: var(--portal-chip-bg);
    border: 1px solid var(--portal-border);
    border-radius: 40px;
    padding: 0 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-search:focus-within {
    border-color: var(--portal-accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.portal-search i {
    color: var(--portal-text-secondary);
    font-size: 0.9rem;
}

.portal-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: var(--portal-text);
    outline: none;
}

.portal-search input::placeholder {
    color: var(--portal-text-secondary);
}

.portal-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-create-meeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--portal-accent);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-create-meeting:hover {
    background: var(--portal-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--portal-chip-bg);
    color: var(--portal-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--portal-hover);
}

/* ============ Category Chips ============ */

.portal-chips {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--portal-border);
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--portal-bg);
    position: sticky;
    top: 55px;
    z-index: 49;
    align-items: center;
}

.portal-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: none;
    background: var(--portal-chip-bg);
    color: var(--portal-chip-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.chip:hover {
    background: var(--portal-hover);
}

.chip.active {
    background: var(--portal-chip-active);
    color: var(--portal-chip-active-text);
}

.chip .live-dot {
    font-size: 0.5rem;
    color: var(--portal-live);
    animation: pulse-dot 1.5s infinite;
}

.chip-separator {
    width: 1px;
    height: 24px;
    background: var(--portal-border);
    flex-shrink: 0;
    margin: 0 0.25rem;
}

.chip-free {
    color: var(--portal-free);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============ Sections ============ */

.portal-section {
    padding: 1.25rem 1.5rem 0;
}

.section-header {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--portal-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--portal-accent);
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--portal-live);
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(255, 0, 51, 0); }
}

/* ============ Meetings Grid (YouTube style) ============ */

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.meetings-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.meetings-row .meeting-card {
    min-width: 320px;
    max-width: 380px;
    flex-shrink: 0;
}

/* ============ Meeting Card (YouTube Thumbnail Style) ============ */

.meeting-card {
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow-hover);
}

.meeting-card:hover .card-thumbnail img,
.meeting-card:hover .card-thumbnail .thumb-placeholder {
    transform: scale(1.03);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #1a1a2e;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.thumb-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.thumb-placeholder span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Gradient overlays for categories */
.thumb-gradient-tuto { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.thumb-gradient-nouveau-logiciel { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.thumb-gradient-tutorat { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.thumb-gradient-conference { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.thumb-gradient-autre { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Badges on thumbnail */
.thumb-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.thumb-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.badge-live {
    background: var(--portal-live);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.badge-paid {
    background: rgba(255, 107, 53, 0.9);
    color: white;
}

.badge-free {
    background: rgba(0, 200, 81, 0.9);
    color: white;
}

.badge-category {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

/* Countdown on thumbnail */
.thumb-countdown {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 2;
}

.thumb-viewers {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

/* Card Info (below thumbnail) */
.card-info {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.card-meta {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--portal-text);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-presenter {
    font-size: 0.8rem;
    color: var(--portal-text-secondary);
    margin-bottom: 0.15rem;
}

.card-details {
    font-size: 0.75rem;
    color: var(--portal-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-details .dot {
    width: 3px;
    height: 3px;
    background: var(--portal-text-secondary);
    border-radius: 50%;
}

.card-price {
    font-weight: 700;
    color: var(--portal-paid);
}

.card-price.free {
    color: var(--portal-free);
}

/* Card tags */
.card-tags {
    display: flex;
    gap: 0.3rem;
    padding: 0 0.75rem 0.6rem;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--portal-chip-bg);
    color: var(--portal-text-secondary);
}

/* ============ Card Action Overlay (Validation Button) ============ */

.card-action-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.meeting-card:hover .card-action-overlay {
    opacity: 1;
}

.card-action-btn {
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.card-action-btn:hover {
    transform: scale(1.05);
}

.card-action-btn.register-free {
    background: var(--portal-success);
    color: white;
}

.card-action-btn.register-paid {
    background: var(--portal-paid);
    color: white;
}

.card-action-btn.registered {
    background: rgba(255,255,255,0.2);
    color: var(--portal-success);
    border: 1px solid var(--portal-success);
    backdrop-filter: blur(4px);
}

.card-action-btn.join-live {
    background: var(--portal-live);
    color: white;
    animation: pulse-badge 2s infinite;
}

.card-action-btn.view {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(4px);
}

/* ============ Empty State ============ */

.portal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.portal-empty i {
    font-size: 4rem;
    color: var(--portal-text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.portal-empty h3 {
    font-size: 1.5rem;
    color: var(--portal-text);
    margin-bottom: 0.5rem;
}

.portal-empty p {
    color: var(--portal-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* ============ Load More ============ */

.load-more {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.btn-load-more {
    padding: 0.6rem 2rem;
    border-radius: 40px;
    border: 1px solid var(--portal-border);
    background: var(--portal-card-bg);
    color: var(--portal-accent);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--portal-accent);
    color: white;
    border-color: var(--portal-accent);
}

/* ============ Modal ============ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-portal {
    background: var(--portal-card-bg);
    border-radius: var(--portal-radius);
    width: 95%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-portal.modal-large {
    max-width: 800px;
}

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

.modal-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--portal-border);
}

.modal-portal-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--portal-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-portal-header h2 i {
    color: var(--portal-accent);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--portal-chip-bg);
    color: var(--portal-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--portal-live);
    color: white;
}

.modal-portal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-portal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--portal-border);
}

/* Form styles */
.form-row {
    margin-bottom: 1rem;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    font-size: 0.9rem;
    color: var(--portal-text);
    background: var(--portal-card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--portal-accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Thumbnail Upload */
.thumbnail-upload {
    margin-bottom: 1.25rem;
}

.thumbnail-preview {
    width: 100%;
    height: 180px;
    border: 2px dashed var(--portal-border);
    border-radius: var(--portal-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--portal-text-secondary);
    background: var(--portal-chip-bg);
    overflow: hidden;
    position: relative;
}

.thumbnail-preview:hover {
    border-color: var(--portal-accent);
    color: var(--portal-accent);
}

.thumbnail-preview i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Pricing section */
.pricing-section {
    padding: 1rem;
    background: var(--portal-chip-bg);
    border-radius: var(--portal-radius-sm);
    margin-bottom: 1rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--portal-text);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--portal-border);
    transition: 0.3s;
}

.switch .slider.round {
    border-radius: 26px;
}

.switch .slider.round::before {
    border-radius: 50%;
}

.switch .slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--portal-accent);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.price-input {
    margin-top: 1rem;
}

.price-input label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--portal-text);
    display: block;
    margin-bottom: 0.35rem;
}

.price-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--portal-accent);
}

.price-field input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--portal-text);
    background: var(--portal-card-bg);
}

/* Buttons */
.btn-cancel {
    padding: 0.6rem 1.5rem;
    border-radius: var(--portal-radius-sm);
    border: 1px solid var(--portal-border);
    background: transparent;
    color: var(--portal-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: var(--portal-hover);
}

.btn-publish {
    padding: 0.6rem 1.5rem;
    border-radius: var(--portal-radius-sm);
    border: none;
    background: var(--portal-accent);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-publish:hover {
    background: var(--portal-accent-hover);
    transform: translateY(-1px);
}

/* ============ My Meetings Tabs ============ */

.my-meetings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--portal-border);
    margin-bottom: 1rem;
}

.my-meetings-tabs .tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--portal-text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.my-meetings-tabs .tab.active {
    color: var(--portal-accent);
    border-bottom-color: var(--portal-accent);
}

.my-meetings-tabs .tab:hover {
    color: var(--portal-text);
}

.my-meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.my-meeting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--portal-radius-sm);
    background: var(--portal-chip-bg);
    transition: background 0.2s;
    cursor: pointer;
}

.my-meeting-item:hover {
    background: var(--portal-hover);
}

.my-meeting-thumb {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.my-meeting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-meeting-thumb .thumb-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.my-meeting-info {
    flex: 1;
    min-width: 0;
}

.my-meeting-info h4 {
    font-size: 0.9rem;
    color: var(--portal-text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-meeting-info p {
    font-size: 0.75rem;
    color: var(--portal-text-secondary);
}

.my-meeting-status {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-scheduled { background: rgba(108, 92, 231, 0.15); color: var(--portal-accent); }
.status-live { background: rgba(255, 0, 51, 0.15); color: var(--portal-live); }
.status-ended { background: rgba(100, 100, 100, 0.15); color: var(--portal-text-secondary); }

/* ============ Responsive ============ */

@media (max-width: 768px) {
    .portal-topbar {
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .portal-topbar-left {
        order: 1;
    }

    .portal-topbar-right {
        order: 2;
        margin-left: auto;
    }

    .portal-topbar-center {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .portal-title {
        font-size: 1rem;
    }

    .btn-create-meeting span {
        display: none;
    }

    .btn-create-meeting {
        padding: 0.5rem 0.75rem;
        border-radius: 50%;
    }

    .portal-chips {
        padding: 0.5rem 0.75rem;
        top: auto;
        position: relative;
    }

    .portal-section {
        padding: 1rem 0.75rem 0;
    }

    .meetings-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .form-row.two-cols {
        grid-template-columns: 1fr;
    }

    .modal-portal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .meetings-grid {
        grid-template-columns: 1fr;
    }

    .meetings-row .meeting-card {
        min-width: 280px;
    }

    .my-meeting-thumb {
        width: 80px;
        height: 45px;
    }
}

@media (min-width: 769px) {
    .main-content {
        margin-left: 250px;
    }
}

/* ============ Scrollbar ============ */

.modal-portal-body::-webkit-scrollbar,
.my-meetings-list::-webkit-scrollbar {
    width: 6px;
}

.modal-portal-body::-webkit-scrollbar-track,
.my-meetings-list::-webkit-scrollbar-track {
    background: transparent;
}

.modal-portal-body::-webkit-scrollbar-thumb,
.my-meetings-list::-webkit-scrollbar-thumb {
    background: var(--portal-border);
    border-radius: 3px;
}

/* ============ Notification Toast ============ */

.portal-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--portal-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10001;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-success { background: var(--portal-success); }
.toast-error { background: var(--portal-live); }
.toast-info { background: var(--portal-accent); }

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

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