/* Enhanced styles for mini tools */
/* ========== Base Styles ========== */
.tm-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* ========== Participant/Member Rows ========== */
.tm-participants,
.tm-members {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.tm-participant-row,
.tm-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dark .tm-participant-row,
.dark .tm-member-row {
    background: #1f2937;
    border-color: #374151;
}

.tm-participant-row:hover,
.tm-member-row:hover {
    border-color: #6366f1;
}

.tm-participant-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.tm-tz-input,
.tm-member-name {
    flex: 1;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.dark .tm-tz-input,
.dark .tm-member-name {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

.tm-tz-input:focus,
.tm-member-name:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tm-member-name {
    max-width: 120px;
}

.tm-remove-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dark .tm-remove-btn {
    background: #450a0a;
    color: #fca5a5;
}

.tm-remove-btn:hover {
    background: #dc2626;
    color: white;
}

.tm-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.dark .tm-add-btn {
    border-color: #4b5563;
    color: #9ca3af;
}

.tm-add-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

/* ========== Settings ========== */
.tm-settings {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.dark .tm-settings {
    background: #1f2937;
}

.tm-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tm-setting-row:last-child {
    margin-bottom: 0;
}

.tm-label {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dark .tm-label {
    color: #d1d5db;
}

.tm-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-number {
    width: 60px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    text-align: center;
    font-size: 14px;
}

.dark .tm-number {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

.tm-select {
    height: 36px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.dark .tm-select {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

/* ========== Buttons ========== */
.tm-btn-wrap {
    margin-bottom: 20px;
}

.tm-primary-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.tm-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.tm-primary-btn.tm-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.tm-primary-btn.tm-blue:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.tm-primary-btn.tm-purple {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.tm-primary-btn.tm-purple:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ========== Results ========== */
.tm-results {
    margin-top: 20px;
}

.tm-empty {
    text-align: center;
    padding: 30px 20px;
    background: #faf5ff;
    border: 1px dashed #c4b5fd;
    border-radius: 16px;
}

.dark .tm-empty {
    background: rgba(124, 58, 237, 0.1);
    border-color: #7c3aed;
}

.tm-empty i {
    font-size: 40px;
    color: #a78bfa;
    margin-bottom: 12px;
}

.tm-empty p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.dark .tm-empty p {
    color: #d1d5db;
}

.tm-tips {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
    display: inline-block;
}

.tm-tips li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.dark .tm-tips li {
    color: #9ca3af;
}

.tm-tips li i {
    font-size: 12px;
    color: #10b981;
}

/* ========== Meeting Suggestions ========== */
.tm-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ecfdf5;
    border-radius: 10px;
    color: #047857;
    font-weight: 600;
    margin-bottom: 16px;
}

.dark .tm-result-header {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

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

.tm-suggestion-card {
    position: relative;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.dark .tm-suggestion-card {
    background: #111827;
    border-color: #374151;
}

.tm-suggestion-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.tm-suggestion-card.tm-best {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.dark .tm-suggestion-card.tm-best {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: #10b981;
}

.tm-best-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-suggestion-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 12px;
}

.dark .tm-suggestion-time {
    color: #f9fafb;
}

.tm-suggestion-time i {
    color: #6366f1;
}

.tm-suggestion-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-zone-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
}

.dark .tm-zone-chip {
    background: #374151;
}

.tm-zone-name {
    color: #6b7280;
}

.dark .tm-zone-name {
    color: #9ca3af;
}

.tm-zone-time {
    font-weight: 600;
    color: #111827;
}

.dark .tm-zone-time {
    color: #f9fafb;
}

/* ========== Travel Planner ========== */
.tm-travel-form {
    margin-bottom: 20px;
}

.tm-travel-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tm-field {
    flex: 1;
    min-width: 200px;
}

.tm-input {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.dark .tm-input {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

.tm-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tm-arrow {
    width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 18px;
}

/* Travel Summary */
.tm-travel-summary {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.dark .tm-travel-summary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
}

.tm-travel-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tm-route-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tm-route-city i {
    font-size: 24px;
    color: #2563eb;
}

.tm-route-city span {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.dark .tm-route-city span {
    color: #f9fafb;
}

.tm-route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tm-route-arrow i {
    font-size: 20px;
    color: #60a5fa;
}

.tm-flight-time {
    font-size: 12px;
    color: #6b7280;
}

.tm-travel-diff {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}

.dark .tm-travel-diff {
    background: #1f2937;
}

.tm-diff-num {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.tm-diff-label {
    color: #6b7280;
    font-size: 14px;
}

.tm-diff-direction {
    color: #9ca3af;
    font-size: 13px;
}

.tm-travel-diff.tm-diff-large .tm-diff-num {
    color: #dc2626;
}

/* Severity */
.tm-severity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
}

.tm-severity.tm-mild {
    background: #ecfdf5;
    color: #047857;
}

.tm-severity.tm-moderate {
    background: #fef3c7;
    color: #b45309;
}

.tm-severity.tm-severe {
    background: #fee2e2;
    color: #dc2626;
}

.dark .tm-severity.tm-mild {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.dark .tm-severity.tm-moderate {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.dark .tm-severity.tm-severe {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

/* Timeline */
.tm-timeline-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 16px;
}

.dark .tm-timeline-title {
    color: #f9fafb;
}

.tm-adjustment-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tm-timeline-day {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.dark .tm-timeline-day {
    background: #111827;
    border-color: #374151;
}

.tm-timeline-day.tm-pre {
    border-left: 4px solid #8b5cf6;
}

.tm-timeline-day.tm-flight {
    border-left: 4px solid #2563eb;
    background: linear-gradient(90deg, #eff6ff, #fff);
}

.dark .tm-timeline-day.tm-flight {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), #111827);
}

.tm-timeline-day.tm-post {
    border-left: 4px solid #10b981;
}

.tm-day-label {
    width: 50px;
    font-weight: 700;
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.dark .tm-day-label {
    color: #9ca3af;
}

.tm-day-content {
    flex: 1;
}

.tm-advice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.dark .tm-advice {
    color: #d1d5db;
}

.tm-advice:last-child {
    margin-bottom: 0;
}

.tm-advice i {
    width: 16px;
    color: #6b7280;
}

/* Tips Section */
.tm-tips-section {
    background: #faf5ff;
    border-radius: 14px;
    padding: 20px;
}

.dark .tm-tips-section {
    background: rgba(124, 58, 237, 0.1);
}

.tm-tips-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #7c3aed;
    margin-bottom: 12px;
}

.tm-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

.dark .tm-tips-list li {
    color: #d1d5db;
}

.tm-tips-list li:last-child {
    margin-bottom: 0;
}

.tm-tips-list li i {
    color: #8b5cf6;
    margin-top: 3px;
}

/* ========== Remote Scheduler ========== */
.tm-remote-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .tm-remote-summary {
        grid-template-columns: 1fr;
    }
}

.tm-stat-card {
    text-align: center;
    padding: 20px 16px;
    background: #f9fafb;
    border-radius: 14px;
}

.dark .tm-stat-card {
    background: #1f2937;
}

.tm-stat-card.tm-good {
    background: #ecfdf5;
}

.dark .tm-stat-card.tm-good {
    background: rgba(16, 185, 129, 0.15);
}

.tm-stat-card.tm-warn {
    background: #fef3c7;
}

.dark .tm-stat-card.tm-warn {
    background: rgba(245, 158, 11, 0.15);
}

.tm-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 6px;
}

.tm-stat-card.tm-good .tm-stat-num {
    color: #10b981;
}

.tm-stat-card.tm-warn .tm-stat-num {
    color: #f59e0b;
}

.tm-stat-label {
    font-size: 13px;
    color: #6b7280;
}

.dark .tm-stat-label {
    color: #9ca3af;
}

/* Overlap Visualization */
.tm-overlap-viz {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.dark .tm-overlap-viz {
    background: #111827;
    border-color: #374151;
}

.tm-viz-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 16px;
}

.dark .tm-viz-title {
    color: #f9fafb;
}

.tm-hour-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-bottom: 24px;
}

.tm-hour-bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.tm-bar-fill {
    width: 100%;
    height: var(--height, 0%);
    background: #e5e7eb;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.dark .tm-bar-fill {
    background: #374151;
}

.tm-bar-fill.tm-partial {
    background: #93c5fd;
}

.dark .tm-bar-fill.tm-partial {
    background: #3b82f6;
}

.tm-bar-fill.tm-full {
    background: linear-gradient(180deg, #10b981, #059669);
}

.tm-bar-label {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: #9ca3af;
}

.tm-hour-bar:hover .tm-bar-fill {
    transform: scaleY(1.05);
}

.tm-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.tm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.dark .tm-legend-item {
    color: #9ca3af;
}

.tm-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #e5e7eb;
}

.dark .tm-legend-color {
    background: #374151;
}

.tm-legend-color.tm-partial {
    background: #93c5fd;
}

.tm-legend-color.tm-full {
    background: #10b981;
}

/* Member Timelines */
.tm-member-timelines {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.dark .tm-member-timelines {
    background: #111827;
    border-color: #374151;
}

.tm-member-timeline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tm-member-timeline:last-child {
    margin-bottom: 0;
}

.tm-member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.tm-member-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.tm-member-label {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.dark .tm-member-label {
    color: #f9fafb;
}

.tm-member-tz {
    font-size: 12px;
    color: #9ca3af;
}

.tm-timeline-bars {
    flex: 1;
    display: flex;
    gap: 2px;
}

.tm-timeline-cell {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.dark .tm-timeline-cell {
    background: #374151;
}

.tm-timeline-cell.tm-working {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.tm-timeline-cell:hover {
    transform: scaleY(1.3);
}

/* Recommendations */
.tm-recommendations {
    background: #faf5ff;
    border-radius: 14px;
    padding: 20px;
}

.dark .tm-recommendations {
    background: rgba(124, 58, 237, 0.1);
}

.tm-rec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #7c3aed;
    margin-bottom: 12px;
}

.tm-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-rec-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
}

.dark .tm-rec-list li {
    color: #d1d5db;
    background: #1f2937;
}

.tm-rec-list li:last-child {
    margin-bottom: 0;
}

.tm-rec-list li i {
    margin-top: 2px;
    color: #9ca3af;
}

.tm-rec-list li.tm-rec-good i {
    color: #10b981;
}

.tm-rec-list li.tm-rec-warn i {
    color: #f59e0b;
}