* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F9FAFB;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1B998B 0%, #158576 50%, #E6A740 100%);
    color: white;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

header .logo {
    max-width: 300px;
    height: auto;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active {
    background: white;
    color: #1B998B;
    border-bottom: 3px solid #1B998B;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #333;
    margin-bottom: 10px;
}

.description {
    color: #6c757d;
    margin-bottom: 30px;
}

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

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #1B998B;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.btn-primary {
    background: #1B998B;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: #158576;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 153, 139, 0.4);
}

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

.output-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #1B998B;
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;
}

.output-box:empty {
    display: none;
}

.loading {
    margin-top: 20px;
    padding: 15px;
    background: #E6F7F5;
    border-left: 4px solid #1B998B;
    border-radius: 8px;
    color: #158576;
    font-weight: 600;
}

.error {
    margin-top: 20px;
    padding: 15px;
    background: #FFF0F5;
    border-left: 4px solid #C73E7A;
    border-radius: 8px;
    color: #B0326A;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
}

.user-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.btn-logout {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #5a6268;
}

.auth-view {
    padding: 60px 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 450px;
    width: 100%;
}

.auth-container h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
    color: #1B998B;
}

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

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1B998B;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.error-message {
    padding: 12px 16px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 6px;
    color: #c62828;
    margin-bottom: 20px;
}

.success-message {
    padding: 12px 16px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 6px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.info-message {
    padding: 12px 16px;
    background: #E6F7F5;
    border-left: 4px solid #1B998B;
    border-radius: 6px;
    color: #158576;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.auth-switch a {
    color: #1B998B;
    text-decoration: none;
    font-weight: 600;
}

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

.users-table-container {
    margin-top: 30px;
    overflow-x: auto;
}

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

.users-table thead {
    background: #f8f9fa;
}

.users-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.btn-action {
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.btn-approve {
    background: #4caf50;
    color: white;
}

.btn-approve:hover {
    background: #45a049;
}

.btn-revoke {
    background: #ff9800;
    color: white;
}

.btn-revoke:hover {
    background: #f57c00;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #da190b;
}

.btn-password {
    background: #9c27b0;
    color: white;
}

.btn-password:hover {
    background: #7b1fa2;
}

.admin-label {
    color: #6c757d;
    font-style: italic;
}

.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-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content form {
    padding: 30px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .tab-button {
        padding: 15px 10px;
        font-size: 0.9em;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .auth-view {
        padding: 40px 20px;
    }
    
    .user-nav {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .users-table {
        font-size: 0.9em;
    }
    
    .btn-action {
        padding: 5px 10px;
        font-size: 0.8em;
        margin-bottom: 5px;
    }
}

/* Coachees Layout */
.coachees-layout {
    display: flex;
    min-height: 500px;
}

.coachees-sidebar {
    width: 250px;
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 15px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin: 0;
    color: #1B998B;
}

.coachees-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coachee-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.coachee-item:hover {
    border-color: #1B998B;
}

.coachee-item.active {
    background: #1B998B;
    color: white;
}

.coachees-main {
    flex: 1;
    padding: 20px;
}

.coachee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.coachee-header h2 {
    color: #1B998B;
    margin: 0;
}

.coachee-actions {
    display: flex;
    gap: 10px;
}

.sessions-section {
    margin-top: 20px;
}

.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sessions-header h3 {
    margin: 0;
    color: #333;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #1B998B;
}

.session-item:hover {
    background: #e9ecef;
}

.session-item .session-date {
    font-weight: 600;
    color: #333;
}

.session-item .session-preview {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9em;
    background: #1B998B;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #158576;
}

.btn-small.btn-danger {
    background: #C73E7A;
}

.btn-small.btn-danger:hover {
    background: #a33263;
}

.btn-back {
    background: none;
    border: none;
    color: #1B998B;
    cursor: pointer;
    padding: 10px 0;
    font-size: 1em;
    margin-bottom: 15px;
}

.btn-back:hover {
    text-decoration: underline;
}

.session-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.session-transcript, .session-analysis, .session-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.session-transcript h4, .session-analysis h4, .session-notes h4 {
    margin: 0 0 10px 0;
    color: #1B998B;
}

.transcript-display, .analysis-display {
    background: white;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.95em;
    line-height: 1.6;
}

.session-notes textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.modal-large .modal-content {
    max-width: 700px;
}

.modal-large textarea {
    min-height: 200px;
}

/* Insights Styles */
.coachee-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.coachee-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.coachee-tab-btn:hover {
    color: #1B998B;
}

.coachee-tab-btn.active {
    color: #1B998B;
    border-bottom-color: #1B998B;
}

.coachee-tab-content {
    display: none;
}

.coachee-tab-content.active {
    display: block;
}

.insights-section {
    padding: 10px 0;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.insights-header h3 {
    color: #1B998B;
}

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

.insights-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.insights-card.full-width {
    grid-column: 1 / -1;
}

.insights-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.themes-chart {
    min-height: 200px;
}

.theme-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.theme-label {
    width: 150px;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.theme-bar-container {
    flex: 1;
    background: #e9ecef;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.theme-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.theme-count {
    color: white;
    font-size: 0.8em;
    font-weight: 600;
}

.category-emotional { background: linear-gradient(90deg, #C73E7A, #e05a93); }
.category-professional { background: linear-gradient(90deg, #1B998B, #24b5a5); }
.category-personal { background: linear-gradient(90deg, #E6A740, #f0b85a); }
.category-relational { background: linear-gradient(90deg, #6f42c1, #8a5cd0); }
.category-behavioral { background: linear-gradient(90deg, #0dcaf0, #3dd6f5); }
.category-mindset { background: linear-gradient(90deg, #20c997, #3dd9ac); }

.session-timeline {
    min-height: 200px;
}

.timeline-item {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.timeline-date {
    width: 100px;
    font-size: 0.85em;
    color: #666;
    padding-top: 5px;
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
    margin-left: 15px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #e9ecef;
}

.timeline-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.theme-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    color: white;
}

.trend-analysis {
    min-height: 150px;
}

.trend-section {
    margin-bottom: 20px;
}

.trend-section h5 {
    font-size: 0.95em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-section h5 .trend-icon {
    font-size: 1.2em;
}

.trend-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-theme {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
}

.trend-emerging {
    background: #d1fae5;
    color: #059669;
}

.trend-declining {
    background: #fee2e2;
    color: #dc2626;
}

.trend-stable {
    background: #e0e7ff;
    color: #4338ca;
}

.empty-insights {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.rag-section {
    margin-top: 10px;
}

.rag-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.rag-chat {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rag-messages {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    min-height: 60px;
}

.rag-message {
    padding: 12px 15px;
    border-radius: 12px;
    line-height: 1.5;
}

.rag-message.user-message {
    background: #e8f4f8;
    align-self: flex-end;
    max-width: 85%;
}

.rag-message.assistant-message {
    background: white;
    border: 1px solid #e2e8f0;
    max-width: 100%;
}

.rag-message.loading .loading-dots {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rag-answer {
    margin-top: 8px;
}

.rag-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    color: #666;
}

.rag-input-container {
    display: flex;
    gap: 10px;
}

.rag-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
}

.rag-input-container input:focus {
    outline: none;
    border-color: #3d9970;
    box-shadow: 0 0 0 3px rgba(61, 153, 112, 0.1);
}

.pattern-analysis {
    min-height: 100px;
}

.pattern-result {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pattern-meta {
    color: #666;
    font-size: 0.9em;
}

.pattern-themes {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
}

.pattern-content {
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.6;
}

.session-compare-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.session-compare-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.session-compare-item:hover {
    background: #e2e8f0;
}

.session-compare-item input {
    cursor: pointer;
}

.comparison-result {
    margin-top: 15px;
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comparison-meta {
    color: #666;
    font-size: 0.9em;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-text {
    background: white;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.6;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-secondary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.error-message {
    color: #dc2626;
    padding: 15px;
    background: #fee2e2;
    border-radius: 8px;
}

.tools-section {
    padding: 20px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tools-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.tools-card.full-width {
    grid-column: span 2;
}

.tools-card h4 {
    margin: 0 0 8px 0;
    color: #1B998B;
}

.tools-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.prep-summary {
    margin-top: 15px;
}

.prep-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    line-height: 1.7;
}

.template-content {
    margin-top: 15px;
}

.template-detail {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.template-sections {
    margin-top: 15px;
}

.template-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.template-section h6 {
    margin: 0 0 10px 0;
    color: #1B998B;
}

.template-section ul {
    margin: 0;
    padding-left: 20px;
}

.template-section li {
    margin-bottom: 5px;
    color: #555;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.goals-header .tools-description {
    margin-bottom: 0;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.goal-item.goal-completed {
    opacity: 0.7;
    background: #f8fafc;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.goal-header h5 {
    margin: 0;
    color: #333;
}

.goal-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    background: #d1fae5;
    color: #059669;
}

.goal-completed .goal-status {
    background: #e2e8f0;
    color: #6b7280;
}

.goal-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1B998B, #24b5a5);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9em;
    font-weight: 600;
    color: #1B998B;
    min-width: 40px;
}

.goal-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 12px;
}

.goal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.followups-header {
    margin-bottom: 15px;
}

.followups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.followup-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.followup-item.followup-completed {
    opacity: 0.6;
    background: #f8fafc;
}

.followup-item.priority-high {
    border-left: 4px solid #dc2626;
}

.followup-item.priority-medium {
    border-left: 4px solid #E6A740;
}

.followup-item.priority-low {
    border-left: 4px solid #6b7280;
}

.followup-content {
    flex: 1;
}

.followup-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    margin-bottom: 8px;
}

.priority-high .followup-priority {
    background: #fee2e2;
    color: #dc2626;
}

.priority-medium .followup-priority {
    background: #fef3c7;
    color: #d97706;
}

.priority-low .followup-priority {
    background: #e5e7eb;
    color: #6b7280;
}

.followup-content p {
    margin: 0 0 10px 0;
    color: #333;
}

.followup-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.85em;
}

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

.completed-badge {
    padding: 6px 12px;
    background: #d1fae5;
    color: #059669;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-card.full-width {
        grid-column: span 1;
    }
    
    .followup-item {
        flex-direction: column;
    }
    
    .followup-actions {
        flex-direction: row;
    }
}

.reports-section {
    padding: 20px 0;
}

.reports-header h3 {
    margin: 0 0 20px 0;
    color: #1B998B;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reports-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.reports-card.full-width {
    grid-column: span 2;
}

.reports-card h4 {
    margin: 0 0 8px 0;
    color: #1B998B;
}

.reports-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.reports-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.report-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.report-content {
    margin-top: 15px;
}

.report-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.report-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.report-section h5 {
    margin: 0 0 12px 0;
    color: #1B998B;
    font-size: 1em;
}

.report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: #f0f9f7;
    border-radius: 8px;
    min-width: 100px;
}

.stat-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #1B998B;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.report-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-theme {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}

.report-followups {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-followups li {
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-followups li.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.priority-low {
    background: #e5e7eb;
    color: #6b7280;
}

.metrics-period {
    margin-bottom: 15px;
}

.metrics-period label {
    font-weight: 500;
    margin-right: 10px;
}

.metrics-period select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.metrics-dashboard {
    margin-top: 15px;
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metrics-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.metrics-section h5 {
    margin: 0 0 12px 0;
    color: #1B998B;
    font-size: 1em;
}

.metrics-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0f9f7, #e8f4f8);
    border-radius: 10px;
    min-width: 100px;
    flex: 1;
}

.metric-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #1B998B;
}

.metric-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

.engagement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.engagement-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B998B;
    color: white;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 600;
}

.engagement-name {
    flex: 1;
    font-weight: 500;
}

.engagement-count {
    color: #1B998B;
    font-weight: 600;
}

.engagement-date {
    color: #888;
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-card.full-width {
        grid-column: span 1;
    }
    
    .report-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .metrics-cards {
        flex-direction: column;
    }
    
    .metric-card {
        width: 100%;
    }
    
    .engagement-item {
        flex-wrap: wrap;
    }
}
