/* --- DASHBOARD WRAPPER --- */
.smart-dashboard-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 20px 0;
}

/* Headeris */
.dashboard-header {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.profile-text h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: white;
}

.user-status {
    background: #27ae60;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 10px;
}

/* Tabs */
.dashboard-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.tab-link {
    background: none;
    border: none;
    padding: 20px 5px;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab-link:hover { color: #333; }

.tab-link.active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }

/* --- TABLE STYLES --- */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Cell content */
.flex-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.cell-text strong a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.col-stats { color: #666; font-size: 14px; }
.stat-item { display: inline-block; margin-right: 10px; }

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.status-publish { background: #e8f5e9; color: #2e7d32; }
.status-draft { background: #fff3e0; color: #ef6c00; }

/* Action Buttons */
.col-actions { display: flex; gap: 8px; }
.btn-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #555;
    transition: 0.2s;
}
.btn-icon:hover { background: #e0e0e0; }
.btn-icon.danger:hover { background: #ffebee; color: #c62828; }
.btn-icon.success:hover { background: #e8f5e9; color: #2e7d32; }

/* --- PROFILE FORM --- */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-col { flex: 1; }
.form-col.full { width: 100%; }

.profile-edit-form input, .profile-edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dashboard-header { flex-direction: column; text-align: center; gap: 20px; }
    .profile-summary { flex-direction: column; }
    .form-row { flex-direction: column; }
    
    /* Table stacked for mobile */
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { border: 1px solid #ccc; margin-bottom: 15px; border-radius: 8px; padding: 10px; }
    td { border: none; position: relative; padding-left: 50%; text-align: right; }
    td:before { position: absolute; top: 12px; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; content: attr(data-label); }
    .flex-cell { justify-content: flex-end; }
}