/* Shared CSS styles for all group-related pages */

/* Group Cards */
.group-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--card-shadow, 0 2px 10px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.group-card:hover {
    box-shadow: var(--card-shadow-hover, 0 8px 25px rgba(0, 0, 0, 0.15));
    transform: translateY(-4px);
    border-color: #667eea;
}

[data-theme="dark"] .group-card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.group-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.group-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.group-title:hover {
    color: #667eea;
}

.group-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.group-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.invite-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .invite-code-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.invite-code-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invite-code-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #667eea;
    letter-spacing: 1px;
}

.group-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-stats {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    padding: 1px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

[data-theme="dark"] .group-stats {
    background: rgba(102, 126, 234, 0.15);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-icon.members {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

[data-theme="dark"] .stat-icon.members {
    background: rgba(102, 126, 234, 0.2);
    color: #8b9aff;
}

.stat-icon.problems {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-theme="dark"] .stat-icon.problems {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.stat-icon.files {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

[data-theme="dark"] .stat-icon.files {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.group-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 5px 8px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.action-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.action-btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Form Cards */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow, 0 2px 10px rgba(0, 0, 0, 0.05));
}

.form-card:hover {
    box-shadow: var(--card-shadow-hover, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    border: none;
    box-shadow: var(--card-shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
    margin-bottom: 24px;
}

[data-theme="dark"] .alert {
    box-shadow: var(--card-shadow, 0 2px 10px rgba(0, 0, 0, 0.3));
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-error, .alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .group-card {
        padding: 10px;
    }
    
    .group-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-card {
        padding: 24px 20px;
    }
}

