/* Waed Talent Incubator – Modern UI (v1.4.0) */

.wti-portal,
.wti-community,
.wti-tasks,
.wti-training,
.wti-certificates,
.wti-tickets {
    direction: rtl;
    text-align: right;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 20px 0;
}

/* Hero */
.wti-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f6, #06c);
    color: #fff;
    margin-bottom: 16px;
}
.wti-hero-info {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 220px;
}
.wti-hero-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
}
.wti-hero-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}
.wti-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}
.wti-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.wti-stat-card {
    min-width: 90px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wti-stat-label {
    font-size: 11px;
    opacity: 0.9;
}
.wti-stat-value {
    font-size: 18px;
    font-weight: 600;
}

/* Tabs */
.wti-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 999px;
    background: #f5f5f5;
    padding: 3px;
    margin-bottom: 12px;
}
.wti-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}
.wti-tab.active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.wti-tab-panels {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 14px;
    background: #fff;
}
.wti-tab-panel {
    display: none;
}
.wti-tab-panel.active {
    display: block;
}

/* Common list & table */
.wti-subtitle {
    color: #666;
    margin-bottom: 10px;
    font-size: 13px;
}

.wti-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wti-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.wti-list-item:last-child {
    border-bottom: none;
}

.wti-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wti-table th,
.wti-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f2f2f2;
}
.wti-table th {
    background: #fafafa;
    font-weight: 600;
}

/* Badges */
.wti-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
}
.wti-badge-new      { background:#e6f4ff; color:#1677ff; }
.wti-badge-progress { background:#fff7e6; color:#fa8c16; }
.wti-badge-done     { background:#f6ffed; color:#52c41a; }
.wti-badge-late     { background:#fff1f0; color:#f5222d; }

/* Boxes */
.wti-box {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}
.wti-warning { background: #fff7e6; border: 1px solid #ffd591; }
.wti-success { background: #f6ffed; border: 1px solid #b7eb8f; }
.wti-error   { background: #fff2f0; border: 1px solid #ffccc7; }

.wti-empty {
    padding: 10px;
    font-size: 13px;
    color: #777;
}

/* Cards & grids */
.wti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
    margin-top: 8px;
}
.wti-card {
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.wti-card h4,
.wti-card h5 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Community layout */
.wti-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 14px;
}
.wti-community-section h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

/* Members */
.wti-members .wti-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wti-members .wti-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #1677ff;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size: 14px;
    font-weight: 600;
}
.wti-member-info strong {
    display:block;
}

/* Tickets */
.wti-ticket-form {
    margin: 12px 0 18px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
}
.wti-btn {
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
}
.wti-btn:hover {
    background: #165fcc;
}

/* Admin overview cards */
.wti-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 12px;
}
.wti-admin-card {
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 12px;
    background:#fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.wti-admin-card h3 {
    margin: 0 0 6px;
}
.wti-admin-number {
    display:block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 600px) {
    .wti-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .wti-hero-stats {
        width: 100%;
    }
}
