/*
Theme Name: MedSet Dealer Portal
Theme URI: https://medsetpharma.com
Author: MedSet Pharma
Author URI: https://medsetpharma.com
Description: A complete, secure dealer order tracking portal theme with built-in custom post types, ACF integration, role-based access, and a premium responsive dashboard design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medset-portal
*/

/* ============================================================================
   DASHBOARD UI STYLES
   ============================================================================ */
.medset-dashboard { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2937; max-width: 1200px; margin: 0 auto; padding: 20px; }
.medset-profile-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); margin-bottom: 32px; border: 1px solid #e5e7eb; }
.medset-profile-card h3 { margin-top: 0; color: #111827; border-bottom: 2px solid #f3f4f6; padding-bottom: 16px; margin-bottom: 24px; font-size: 1.25rem; font-weight: 700; }
.medset-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.medset-profile-item { display: flex; flex-direction: column; }
.medset-profile-label { font-size: 0.875rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.medset-profile-value { font-size: 1.125rem; color: #111827; font-weight: 600; margin-top: 8px; }

.medset-section-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 24px; margin-top: 48px; display: flex; align-items: center; gap: 12px; }
.medset-section-title svg { color: #008C45; }

.medset-order-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 24px; overflow: hidden; border: 1px solid #e5e7eb; transition: transform 0.2s, box-shadow 0.2s; }
.medset-order-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025); }
.medset-order-header { background: #f9fafb; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.medset-order-number { font-size: 1.25rem; font-weight: 700; color: #111827; }
.medset-order-date { font-size: 0.875rem; color: #6b7280; margin-top: 4px; }

.medset-order-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .medset-order-body { grid-template-columns: 1fr; } }

.medset-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.medset-status-item { display: flex; flex-direction: column; gap: 8px; }
.medset-status-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 700; }
.medset-status-badge { display: inline-block; padding: 6px 16px; border-radius: 9999px; font-size: 0.875rem; font-weight: 700; color: #fff; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

.medset-timeline { position: relative; padding-left: 28px; }
.medset-timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: #e5e7eb; }
.medset-timeline-item { position: relative; margin-bottom: 20px; }
.medset-timeline-item:last-child { margin-bottom: 0; }
.medset-timeline-dot { position: absolute; left: -28px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; background: #fff; z-index: 1; }
.medset-timeline-dot.active { background: #008C45; box-shadow: 0 0 0 2px #008C45; }
.medset-timeline-dot.pending { background: #f3f4f6; box-shadow: 0 0 0 2px #d1d5db; }
.medset-timeline-content { font-size: 0.875rem; color: #374151; line-height: 1.5; }
.medset-timeline-content strong { color: #111827; display: block; margin-bottom: 2px; }

.medset-pdf-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #e6f4ea; color: #008C45; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: all 0.2s; border: 1px solid #b7e1cd; }
.medset-pdf-link:hover { background: #d4edda; border-color: #008C45; transform: translateY(-1px); }
.medset-no-data { color: #6b7280; font-style: italic; padding: 32px; background: #f9fafb; border-radius: 8px; text-align: center; border: 1px dashed #d1d5db; }

.medset-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.medset-detail-item { display: flex; flex-direction: column; gap: 8px; }
.medset-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 700; }

/* Login Redirect Message */
.medset-login-prompt { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); max-width: 500px; margin: 60px auto; }
.medset-login-prompt h2 { color: #111827; margin-bottom: 16px; }
.medset-login-prompt p { color: #6b7280; margin-bottom: 24px; }
.medset-login-btn { display: inline-block; padding: 12px 24px; background: #E30613; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: background 0.2s; }
.medset-login-btn:hover { background: #c00510; }