/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.role-badge {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logout-btn {
    background: #e74c3c;
    color: white !important;
    margin-left: 10px;
}

.logout-btn:hover {
    background: #c0392b;
}

.user-info {
    color: #ecf0f1;
    font-size: 0.9rem;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Login/Register Styles */
.login-box {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
}

.login-box h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Updated Stats Grid - Better Color Scheme */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* User Dashboard Stats */
.user-stat {
    border: none;
}

.total-stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.pending-stat {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.3);
}

.completed-stat {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

.progress-stat {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 10px 25px rgba(67, 233, 123, 0.3);
}

/* Admin Dashboard Stats */
.stat-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.stat-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.3);
}

.stat-green {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

.stat-purple {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 10px 25px rgba(250, 112, 154, 0.3);
}

.stat-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.stat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 10px;
}

/* Progress Bar in Stats */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Transcript Cards */
.transcript-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.transcript-header strong {
    color: #2c3e50;
}

.date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* FIXED: Transcript Content Box - No Code View */
.content-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #374151;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.content-label {
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-label::before {
    content: '📄';
    font-size: 1.2em;
}

/* Reply Sections */
.reply-section,
.admin-reply {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.reply-section h4,
.admin-reply h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* FIXED: Reply Box Styling */
.reply-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #3b82f6;
    margin-top: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
}

.reply-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #374151;
    margin-bottom: 20px;
}

.reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    margin-top: 15px;
}

.reply-label {
    color: #3b82f6;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.reply-label::before {
    content: '👨‍💼';
}

.reply-status {
    background: #10b981;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.form-actions .btn-primary {
    width: auto;
    padding: 10px 25px;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.demo-credentials {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    font-size: 0.9rem;
    color: #495057;
}

.demo-credentials strong {
    color: #2c3e50;
}

/* User Dashboard Styles */
.dashboard-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-header h2 {
    color: #1e293b;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Enhanced Quick Actions Styling */
.quick-actions {
    margin: 50px 0 40px;
    padding: 35px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.quick-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
}

.quick-actions h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.quick-actions h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 4px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 28px 30px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.action-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(-4px);
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 2px solid #60a5fa;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
}

.pending-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 2px solid #fbbf24;
}

.pending-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #f59e0b;
}

.completed-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 2px solid #34d399;
}

.completed-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #10b981;
}

.action-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    min-width: 50px;
    text-align: center;
}

.action-text {
    flex-grow: 1;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.3rem;
    margin-right: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 60px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-arrow {
    font-size: 1.8rem;
    font-weight: 900;
    opacity: 0.8;
    transition: all 0.3s ease;
    min-width: 30px;
}

.action-btn:hover .action-arrow {
    transform: translateX(10px);
    opacity: 1;
}

/* Recent Activity Styling - Enhanced */
.recent-activity {
    margin: 50px 0 40px;
    padding: 35px;
    background: white;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.recent-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed, #6d28d9);
}

.recent-activity h3 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    position: relative;
    padding-left: 15px;
}

.recent-activity h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 4px;
}

.activity-list {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e5e7eb;
}

/* Activity Item - Completed */
.activity-item.completed {
    display: flex;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.activity-item.completed:hover {
    border-color: #10b981;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.activity-item.completed::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 3px 0 0 3px;
}

/* Activity Item - Pending */
.activity-item.pending {
    display: flex;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.activity-item.pending:hover {
    border-color: #f59e0b;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.activity-item.pending::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-radius: 3px 0 0 3px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    font-size: 2.2rem;
    margin-right: 25px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid;
}

.activity-item.completed .activity-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    color: #10b981;
}

.activity-item.pending .activity-icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #f59e0b;
}

.activity-content {
    flex-grow: 1;
    min-width: 0;
}

.activity-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-title strong {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-title strong::before {
    content: '•';
    font-size: 2rem;
    line-height: 0;
}

.activity-item.completed .activity-title strong::before {
    color: #10b981;
}

.activity-item.pending .activity-title strong::before {
    color: #f59e0b;
}

.activity-date {
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid;
}

.activity-item.completed .activity-date {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
}

.activity-item.pending .activity-date {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
}

.activity-preview {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    word-break: break-word;
}

.activity-link {
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 20px;
    min-width: 110px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.activity-item.completed .activity-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
}

.activity-item.pending .activity-link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
}

.activity-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.activity-item.completed .activity-link:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.activity-item.pending .activity-link:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* YouTube Link Styling */
.activity-preview a,
.activity-preview[href*="youtube"],
.activity-preview[href*="youtu.be"] {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.activity-preview a:hover,
.activity-preview[href*="youtube"]:hover,
.activity-preview[href*="youtu.be"]:hover {
    color: #2563eb;
    text-decoration: underline;
}

.activity-preview a::before {
    content: '🔗';
    font-size: 0.9em;
}

.activity-preview[href*="youtube"]::before,
.activity-preview[href*="youtu.be"]::before {
    content: '▶️';
    font-size: 0.9em;
}

/* URL Preview Styling */
.url-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    margin: 5px 0;
    color: #1d4ed8;
    font-weight: 500;
    text-decoration: none;
}

.url-preview:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.url-preview::before {
    content: '🔗';
    font-size: 0.9em;
}

.youtube-preview::before {
    content: '▶️';
    font-size: 0.9em;
}

/* Empty State Enhancement */
.empty-state.mini {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    position: relative;
}

.empty-state.mini .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state.mini h4 {
    color: #4b5563;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.empty-state.mini p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* FIXED: Remove code-like styling from content areas */
.transcript-content pre,
.reply-content pre,
.content-box pre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    white-space: pre-wrap !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* FIXED: Ensure all text areas display normally */
.transcript-content,
.reply-content,
.content-box,
.activity-preview {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
}

/* For URLs in content */
.content-box a,
.reply-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #93c5fd;
    padding-bottom: 2px;
}

.content-box a:hover,
.reply-content a:hover {
    color: #2563eb;
    border-bottom-style: solid;
}

/* Admin Reply Section Enhancement */
.admin-reply-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 15px;
    border: 2px solid #bae6fd;
    position: relative;
}

.admin-reply-section .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-reply-section .section-title h4 {
    color: #0c4a6e;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-reply-section .title-icon {
    font-size: 1.5em;
}

.reply-date {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
}

/* User Approval Card */
.user-approval-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #ffc107;
    border: 2px solid #ffeaa7;
}

.user-approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.user-approval-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #e8590c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Approved Users Section */
.approved-users-section {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.approved-users-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.approved-users-section h3::before {
    content: '✅';
    font-size: 1.2em;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 18px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-item:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.user-item.approved {
    border-left: 4px solid #10b981;
}

.user-avatar-small {
    font-size: 1.8rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    border: 2px solid #34d399;
}

.user-details {
    flex-grow: 1;
}

.user-details strong {
    color: #1f2937;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.user-email {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.user-date small {
    color: #9ca3af;
    font-size: 0.85rem;
}

.user-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status.approved {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Registration note */
.registration-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-size: 0.95rem;
}

.registration-note p {
    margin: 0;
}

/* Status badges */
.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* User meta */
.user-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.user-meta .date,
.user-meta .time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1em;
}

/* Responsive Design for New Sections */
@media (max-width: 1200px) {
    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-actions,
    .recent-activity {
        padding: 25px;
    }
    
    .activity-item.completed,
    .activity-item.pending {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .action-btn {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    
    .action-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .action-text {
        margin-bottom: 10px;
    }
    
    .action-count {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .activity-item.completed,
    .activity-item.pending {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .activity-icon {
        margin-right: 0;
        align-self: flex-start;
    }
    
    .activity-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .activity-date {
        align-self: flex-start;
    }
    
    .activity-link {
        margin-left: 0;
        align-self: center;
    }
    
    .quick-actions h3,
    .recent-activity h3 {
        font-size: 1.6rem;
    }
    
    .action-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .quick-actions,
    .recent-activity {
        padding: 20px 15px;
    }
    
    .action-btn {
        padding: 20px;
    }
    
    .activity-item.completed,
    .activity-item.pending {
        padding: 18px;
    }
    
    .activity-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .activity-title strong {
        font-size: 1.2rem;
    }
    
    .activity-preview {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-info {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .transcript-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .transcript-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .badge {
        align-self: flex-start;
    }
    
    .nav-links a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}