:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-radius: 6px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-link:hover {
    border-bottom-color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Main content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--background-color);
}

.btn-teampulse {
    background: #8b5cf6;
    color: white;
}

.btn-teampulse:hover {
    background: #7c3aed;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-card h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* Tasks */
.task-list,
.event-list {
    list-style: none;
    margin-bottom: 1rem;
}

.task-item,
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.task-item:last-child,
.event-item:last-child {
    border-bottom: none;
}

.task-title,
.event-title {
    font-weight: 500;
}

.task-date,
.event-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-todo {
    border-left: 3px solid var(--warning-color);
    padding-left: 0.5rem;
}

.status-in_progress {
    border-left: 3px solid var(--primary-color);
    padding-left: 0.5rem;
}

.status-done {
    border-left: 3px solid var(--success-color);
    padding-left: 0.5rem;
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-form {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Error messages */
.error {
    background: #fef2f2;
    color: var(--danger-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.success {
    background: #f0fdf4;
    color: var(--success-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #bbf7d0;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Tasks */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--border-color);
}

.task-card.status-todo {
    border-left-color: var(--warning-color);
}

.task-card.status-in_progress {
    border-left-color: var(--primary-color);
}

.task-card.status-done {
    border-left-color: var(--success-color);
    opacity: 0.8;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-low {
    background: #f3f4f6;
    color: var(--text-muted);
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.task-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.task-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.task-meta > div {
    margin-bottom: 0.5rem;
}

.task-actions select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-background);
}

/* Events */
.events-section {
    margin-bottom: 3rem;
}

.events-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: flex;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.event-card.past {
    opacity: 0.7;
}

.event-card.type-meeting {
    border-left-color: var(--primary-color);
}

.event-card.type-event {
    border-left-color: var(--success-color);
}

.event-card.type-deadline {
    border-left-color: var(--danger-color);
}

.event-card.type-communication {
    border-left-color: var(--warning-color);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin-right: 1.5rem;
    text-align: center;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.event-date .month {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.event-time {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-muted);
    line-height: 1.5;
}

.event-actions {
    display: flex;
    align-items: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Field errors */
.field-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger-color);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tables */
.table-container {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
}

.data-table tr:hover {
    background: var(--background-color);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Interest levels */
.interest-level {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.level-low {
    background: #f3f4f6;
    color: var(--text-muted);
}

.level-medium {
    background: #fef3c7;
    color: #92400e;
}

.level-high {
    background: #d1fae5;
    color: var(--success-color);
}

/* Bureau member cards */
.bureau-member {
    border-left: 4px solid var(--primary-color);
}

/* Welcome section */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.welcome-section h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Linked documents */
.linked-documents {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.doc-link {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.25rem 0.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.doc-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Links selection in forms */
.links-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.links-section h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-group {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: var(--background-color);
}

.link-group h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.link-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.link-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.link-item label {
    font-size: 0.85rem;
    margin: 0;
    cursor: pointer;
}

/* Profile page */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: filter 0.3s ease;
}

.profile-avatar:hover img {
    filter: brightness(0.8);
}

.avatar-placeholder.large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2.5rem;
    border: 4px solid var(--primary-color);
    transition: filter 0.3s ease;
}

.profile-avatar:hover .avatar-placeholder.large {
    filter: brightness(0.8);
}

.avatar-overlay {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.btn-avatar-change,
.btn-avatar-remove {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-avatar-change {
    background: var(--primary-color);
    color: white;
}

.btn-avatar-change:hover {
    background: var(--primary-hover);
}

.btn-avatar-remove {
    background: var(--danger-color);
    color: white;
}

.btn-avatar-remove:hover {
    background: #b91c1c;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.profile-role {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-contact {
    margin: 1rem 0;
}

.profile-contact p {
    margin: 0.25rem 0;
}

.profile-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.profile-bio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.profile-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--border-color);
    transition: transform 0.2s ease;
}

.activity-item:hover {
    transform: translateX(4px);
}

.activity-item.task {
    border-left-color: var(--primary-color);
}

.activity-item.event {
    border-left-color: var(--success-color);
}

.activity-item.communication {
    border-left-color: var(--warning-color);
}

.activity-item.document {
    border-left-color: var(--secondary-color);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-background);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.activity-content h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.activity-content h4 a:hover {
    color: var(--primary-color);
}

.activity-content p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.activity-meta span {
    padding: 0.25rem 0.5rem;
    background: var(--card-background);
    border-radius: 12px;
    color: var(--text-muted);
}

.activity-meta .priority,
.activity-meta .status-badge {
    color: white;
}

.activity-meta .due-date,
.activity-meta .planned-date,
.activity-meta .upload-date,
.activity-meta .event-date {
    font-weight: 500;
}

.profile-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .task-item,
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .event-type-badge {
        align-self: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .task-header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
    
    .admin-actions {
        order: -1;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-meta {
        justify-content: flex-start;
    }
    
    .communications-table {
        overflow-x: auto;
    }
    
    .documents-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .task-item,
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

/* Documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-icon {
    text-align: center;
    font-size: 2rem;
}

.document-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.document-filename {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.document-description {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.document-meta .category {
    background: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    color: var(--text-color);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Members */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.member-avatar {
    margin-bottom: 1rem;
}

.member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto;
}

.member-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.member-email a {
    color: var(--text-muted);
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.badge-admin {
    background: var(--primary-color);
    color: white;
}

/* Communications */
.communications-table {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.communications-table table {
    width: 100%;
    border-collapse: collapse;
}

.communications-table th,
.communications-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.communications-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
}

.communications-table tr:hover {
    background: var(--background-color);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.status-planned {
    background: #f3f4f6;
    color: var(--text-muted);
}

.status-badge.status-in_progress {
    background: #dbeafe;
    color: var(--primary-color);
}

.status-badge.status-done {
    background: #d1fae5;
    color: var(--success-color);
}

.status-badge.status-cancelled {
    color: var(--danger-color);
    background: #fee2e2;
}
.status-badge.status-published {
    color: var(--success-color);
    background: #d1fae5;
}

.status-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-background);
}

/* Data files initialization */
@media (max-width: 768px) {
    .communications-table {
        overflow-x: auto;
    }
    
    .documents-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .document-actions {
        flex-direction: column;
    }
}
.member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto;
}

.member-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.member-email a {
    color: var(--text-muted);
    text-decoration: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.badge-admin {
    background: var(--primary-color);
    color: white;
}

/* Communications */
.communications-table {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.communications-table table {
    width: 100%;
    border-collapse: collapse;
}

.communications-table th,
.communications-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.communications-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
}

.communications-table tr:hover {
    background: var(--background-color);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.status-planned {
    background: #f3f4f6;
    color: var(--text-muted);
}

.status-badge.status-in_progress {
    background: #dbeafe;
    color: var(--primary-color);
}

.status-badge.status-done {




































}    }        flex-direction: column;    .document-actions {        }        grid-template-columns: 1fr;    .members-grid {    .documents-grid,        }        overflow-x: auto;    .communications-table {@media (max-width: 768px) {/* Data files initialization */}    background: var(--card-background);    border-radius: var(--border-radius);    border: 1px solid var(--border-color);    font-size: 0.8rem;    padding: 0.25rem 0.5rem;.status-select {}    background: #d1fae5;    color: var(--success-color);.status-badge.status-published {}    background: #fee2e2;    color: var(--danger-color);.status-badge.status-cancelled {}    color: var(--success-color);    background: #d1fae5;    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-background);
}

/* Data files initialization */
@media (max-width: 768px) {
    .communications-table {
        overflow-x: auto;
    }
    
    .documents-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .document-actions {
        flex-direction: column;
    }
}
