﻿
.mod-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #ffffff; color: #1f2937; padding: 24px; }
.mod-card { max-width: 900px; border: 1px solid #e6e9ef; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.mod-card-header { padding: 16px 20px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #e6e9ef; }
.mod-card-sub-header { width: 100%; border-collapse: collapse; }
.mod-card-sub-header thead tr { background: #fafafa; }
.mod-card-sub-header thead th { text-align: left; font-size: 12px; letter-spacing: 0.04em; color: #6b7280; padding: 12px 20px; font-weight: 600; }
.mod-card-sub-header tbody td { padding: 14px 20px; border-top: 1px solid #e6e9ef; font-size: 14px; vertical-align: middle; }

.mod-date-cell { display: flex; align-items: center; justify-content: space-between; color: #374151; white-space: nowrap; }

.mod-badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.mod-badge-submitted { background: #e8fff3; color: #0f8a5f; border-color: #86efac; }
.mod-badge-pending { background: #fff7ed; color: #b45309; border-color: #fde68a; }
.mod-badge-draft { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.mod-badge-in-review { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.mod-badge-changes-requested { background: #fff7ed; color: #b45309; border-color: #fde68a; }
.mod-badge-approved { background: #ecfeff; color: #0369a1; border-color: #67e8f9; }
.mod-badge-on-hold { background: #fefce8; color: #92400e; border-color: #fde047; }
.mod-badge-cancelled { background: #f5f5f5; color: #6b7280; border-color: #e5e7eb; }
.mod-badge-expired { background: #fef2f2; color: #991b1b; border-color: #fecaca; }



.dashboard { max-width: 1200px; padding: 32px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial; }
.dashboard-header h1 { font-size: 28px; font-weight: 600; }
.dashboard-header p { color: #6b7280; margin-top: 4px; margin-bottom: 32px; }
.dashboard-section { margin-bottom: 48px; }
.dashboard-section h2 { font-size: 12px; letter-spacing: 0.12em; color: #6b7280; margin-bottom: 16px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, 160px); gap: 20px; }
.tile { height: 140px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #ffffff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }
.icon { font-size: 28px; margin-bottom: 10px; }
.tile-title { font-size: 14px; font-weight: 500; text-align: center; line-height: 1.2; padding: 0 10px; }


/* Color variants */
.tile-blue { background: #47a4e6; }
.tile-orange { background: #f2a535; }
.tile-green { background: #36976a; }
.tile-purple { background: #8b43e6; }
.tile-magenta { background: #b935d1; }






.card { font-family: "Segoe UI", Arial, sans-serif; width: 100%; margin: 10px auto; background: #ffffff; border-radius: 12px; overflow: hidden; /* ensures status bar follows rounded corners */ border: 1px solid #d1d1d1; }

.status-bar { height: 6px; width: 100%; }
/*.status-pending .status-bar { background-color: #f59e0b;*/ /* amber */ /*}
.status-approved .status-bar { background-color: #22c55e;*/ /* green */ /*}
.status-rejected .status-bar { background-color: #ef4444;*/ /* red */ /*}*/

.status-approved .status-bar { background-color: #22c55e; }
.status-pending .status-bar { background-color: #f59e0b; }
.status-rejected .status-bar { background-color: #ef4444; }

.card-content { padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; background-color: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.avatar i { font-size: 22px; color: #666; }
.name { font-weight: 600; font-size: 15px; }
.company { font-size: 13px; color: #666; }

.email-btn { text-decoration: none; border: 1px solid #d1d1d1; background-color: #ffffff; padding: 8px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; display: inline-flex; /* ✅ important for <a> */ align-items: center; gap: 6px; color: #333; /* ✅ FIXES BLUE TEXT */ }
.email-btn:hover { background-color: #f0f0f0; text-decoration: none; color: #333; /* ✅ prevent hover turning blue again */ }

.message-box { border: 1px solid #e1e1e1; border-radius: 8px; padding: 14px; margin-top: 8px; margin-bottom: 16px; font-size: 14px; color: #333; background-color: #fafafa; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #666; }
.status { font-style: italic; color: #777; }

.status-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.status-pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; }
.status-date { font-size: 11px; color: #777; font-style: italic; }

.status-pill.status-pending { background-color: #fef3c7; color: #b45309; }
.status-pill.status-approved { background-color: #dcfce7; color: #166534; }
.status-pill.status-rejected { background-color: #fee2e2; color: #991b1b; }


.manage-participation-panel { display: flex; align-items: center; background-color: #e9eee8; border: 1px solid #cfd6cc; border-radius: 8px; padding: 10px; margin:0 20px; max-width: 900px; }
.manage-participation-panel .icon { width: 40px; height: 40px; background-color: #d5dfd2; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 16px; color: #4a5a4a; font-size: 16px; }
.manage-participation-panel .title { font-size: 12px; font-weight: bold; color: #4a5a4a; margin-bottom: 4px; }
.manage-participation-panel .action-link { font-size: 14px; color: #2f6f2f; text-decoration: underline; }
.manage-participation-panel .action-link:hover { color: #1f4f1f; }
