/* Team Feedback System - Unified Design System */
/* Version: 2.0 - Complete Redesign */

/* ===============================
   BASE STYLES & RESET
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* ===============================
   CSS VARIABLES
   =============================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #6c757d;
    --secondary-dark: #5a6268;
    --success-color: #28a745;
    --success-dark: #218838;
    --danger-color: #dc3545;
    --danger-dark: #c82333;
    --warning-color: #ffc107;
    --warning-dark: #e0a800;
    --info-color: #17a2b8;
    --info-dark: #138496;
    
    --text-primary: #333;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --bg-white: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-light: #f8f9fa;
    --bg-dark: rgba(0, 0, 0, 0.05);
    
    --border-color: rgba(255, 255, 255, 0.2);
    --border-light: #dee2e6;
    --border-medium: #e9ecef;
    
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    --radius-small: 6px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --radius-xlarge: 15px;
    
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
}

/* ===============================
   LAYOUT & STRUCTURE
   =============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.header {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xlarge);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    color: white;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 120px;
    width: auto;
    max-width: 200px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===============================
   CARDS & CONTAINERS
   =============================== */
.card, 
.container > div:not(.header),
.auth-container,
.form-section {
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xlarge);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.card h3 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: var(--font-size-lg);
    font-weight: 500;
}

/* ===============================
   UNIFIED BUTTON SYSTEM
   =============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-medium);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
    min-height: 44px;
    box-sizing: border-box;
    white-space: nowrap;
    background: var(--primary-color);
    color: white;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Color Variants */
.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-dark);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-dark);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-dark);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    background: var(--warning-dark);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: var(--info-dark);
}

/* Button Size Variants */
.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-base);
    min-height: 52px;
}

/* Special Button States */
.btn-self {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-self:hover {
    background: var(--secondary-color);
    transform: none;
}

.btn-completed {
    background: var(--success-color);
    color: white;
    position: relative;
}

.btn-completed::before {
    content: "✓ ";
    font-weight: bold;
}

.btn-view-feedback {
    background: var(--info-color);
    color: white;
}

.btn-view-feedback:hover:not(:disabled) {
    background: var(--info-dark);
}

.btn-auth {
    width: 100%;
    padding: 15px;
    font-size: var(--font-size-base);
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-auth:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

/* ===============================
   FORMS
   =============================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    background: white;
    color: var(--text-secondary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.form-header h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Form Validation States */
.form-group input.valid {
    border-color: var(--success-color);
}

.form-group input.invalid {
    border-color: var(--danger-color);
}

.form-group input[pattern]:invalid {
    border-color: var(--danger-color);
}

.form-group input[pattern]:valid {
    border-color: var(--success-color);
}

.field-validation {
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-small);
}

.field-validation.success {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.field-validation.error {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

/* ===============================
   TABLES
   =============================== */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.table th {
    background: var(--bg-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* ===============================
   MESSAGES & ALERTS
   =============================== */
.message, .alert {
    padding: 16px 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
    border-left: 4px solid;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.message.success, .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left-color: var(--success-color);
}

.message.error, .alert-error, .alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left-color: var(--danger-color);
}

.message.warning, .alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left-color: var(--warning-color);
}

.message.info, .alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left-color: var(--info-color);
}

/* ===============================
   INFO BOXES & SECTIONS
   =============================== */
.info-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--info-color);
    padding: 20px;
    border-radius: var(--radius-large);
    margin-bottom: 25px;
    color: #1565c0;
}

.info-box h3 {
    margin-top: 0;
    color: #0d47a1;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: var(--radius-large);
    border-left: 4px solid var(--warning-color);
    margin-bottom: 20px;
    color: #856404;
}

.warning-box h4 {
    margin-top: 0;
    color: #856404;
    font-weight: 600;
    margin-bottom: 15px;
}

.warning-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* ===============================
   GRID SYSTEM
   =============================== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.management-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* ===============================
   CARDS & COMPONENTS
   =============================== */
.session-card {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-large);
    padding: 25px;
    background: white;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.session-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.session-dates {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: var(--font-size-sm);
}

.session-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-small);
    border-left: 3px solid var(--primary-color);
}

.session-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
}

.dashboard-panel {
    background: white;
    border-radius: var(--radius-large);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-medium);
}

.dashboard-panel h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* ===============================
   STATUS BADGES
   =============================== */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active, .status-badge.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-inactive, .status-badge.status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 4px 8px;
    border-radius: var(--radius-small);
    font-size: 12px;
    font-weight: 600;
}

.participation-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-small);
    font-size: 12px;
    font-weight: 500;
}

.participation-status.participated {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.participation-status.not-participated {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.role-badge {
    padding: 4px 8px;
    border-radius: var(--radius-small);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-trainer {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.role-badge.role-member {
    background: rgba(108, 117, 125, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* ===============================
   USER MANAGEMENT
   =============================== */
.users-section {
    background: white;
    border-radius: var(--radius-large);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-medium);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th {
    background: var(--bg-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.users-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.users-table tr:hover {
    background: var(--bg-light);
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-card {
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-large);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
}

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

.user-card-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-card-username {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.user-card-info {
    margin-bottom: 15px;
}

.user-card-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

.user-card-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.user-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.stats-box {
    background: white;
    border-radius: var(--radius-large);
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-medium);
}

.stats-box h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-value {
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

/* ===============================
   QUESTION MANAGEMENT
   =============================== */
.questions-section {
    background: white;
}

.question-item {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-large);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: move;
}

.question-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.question-item.inactive {
    background: var(--bg-light);
}

.question-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 20px;
    padding: 5px;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
}

.drag-handle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.question-number {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.question-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.questions-count {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.drag-instructions {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.drag-instructions .icon {
    font-size: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.no-questions {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: var(--radius-large);
}

.no-questions .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.reorder-section {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: var(--radius-large);
    border: 2px dashed var(--primary-color);
    margin-bottom: 25px;
}

/* ===============================
   AUTHENTICATION
   =============================== */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xlarge);
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.auth-header p {
    color: var(--text-muted);
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

.auth-form .form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    background: white;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.auth-links a:hover {
    text-decoration: underline;
}

.password-requirements {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-medium);
    margin-top: 10px;
    border-left: 4px solid var(--info-color);
}

.password-requirements strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===============================
   MEMBER DASHBOARD
   =============================== */
.member-welcome {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 30px;
    border-radius: var(--radius-xlarge);
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.member-welcome h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.member-header {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    padding: 25px;
    border-radius: var(--radius-xlarge);
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.member-header h1 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.no-sessions {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-light);
    border-radius: var(--radius-xlarge);
    color: var(--text-muted);
}

.no-sessions p {
    font-size: var(--font-size-lg);
    margin-bottom: 20px;
    line-height: 1.6;
}

.no-sessions .icon {
    font-size: 64px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: var(--font-size-xl);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* ===============================
   SPECIAL COMPONENTS
   =============================== */
.questions-preview {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-medium);
    margin-top: 15px;
    border-left: 4px solid var(--primary-color);
}

.no-questions-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: var(--radius-large);
    border-left: 4px solid var(--warning-color);
    margin-bottom: 20px;
}

.no-questions-text {
    color: #856404;
    font-weight: 500;
    margin: 0;
}

.ready-status {
    color: var(--success-color);
    font-weight: 600;
}

.not-ready-status {
    color: var(--danger-color);
    font-weight: 600;
}

.create-session-panel {
    text-align: center;
}

.create-session-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: var(--radius-large);
    border-left: 4px solid var(--info-color);
    margin-bottom: 25px;
    color: #1565c0;
}

.mobile-user-cards {
    display: none;
}

/* ===============================
   MODALS
   =============================== */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xlarge);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}

.modal-content .close:hover {
    color: var(--danger-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===============================
   UTILITIES
   =============================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Loading overlay default hidden via class, not inline */
.loading-overlay { display: none; }

/* Inline separator utility */
.inline-separator { margin: 0 10px; }

/* Generic redirect note text */
.redirect-note { margin-top: 10px; font-size: 0.9rem; opacity: 0.8; }

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        font-size: var(--font-size-xl);
        margin-bottom: 15px;
    }
    
    .logo {
        height: 60px;
        max-width: 150px;
    }

    .card, .container > div:not(.header) {
        padding: 20px;
        margin-bottom: 20px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sessions-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .table-responsive {
        display: none;
    }

    .mobile-user-cards {
        display: block;
    }

    .btn {
        padding: 12px 16px;
        font-size: var(--font-size-sm);
        min-height: 44px;
    }

    .btn-small {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }

    .btn-auth {
        padding: 16px;
        font-size: var(--font-size-base);
    }

    .user-actions {
        flex-direction: column;
        gap: 8px;
    }

    .user-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .auth-container {
        padding: 30px 20px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 15px;
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: var(--font-size-lg);
    }
    
    .logo {
        height: 60px;
        max-width: 120px;
    }

    .card, .container > div:not(.header) {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px 16px;
        font-size: var(--font-size-sm);
    }

    .session-card {
        padding: 20px;
    }

    .dashboard-panel {
        padding: 20px;
    }

    .stats-box {
        padding: 15px;
    }

    .auth-container {
        padding: 25px 15px;
    }
}

/* Farbige Bewertung für Auswertungen */
.color-red { color: #dc3545 !important; background: rgba(220,53,69,0.08) !important; }
.color-yellow { color: #ffc107 !important; background: rgba(255,193,7,0.08) !important; }
.color-green { color: #28a745 !important; background: rgba(40,167,69,0.08) !important; }

/* Für Balken und Badges */
.rating-badge.color-red, .user-rating-badge.color-red, .rating-fill.color-red, .rating-text.color-red {
  background: #dc3545 !important;
  color: #fff !important;
}
.rating-badge.color-yellow, .user-rating-badge.color-yellow, .rating-fill.color-yellow, .rating-text.color-yellow {
  background: #ffc107 !important;
  color: #333 !important;
}
.rating-badge.color-green, .user-rating-badge.color-green, .rating-fill.color-green, .rating-text.color-green {
  background: #28a745 !important;
  color: #fff !important;
}

 
