/*
 * InspireCorp eLearning — Dashboard Styles v3.2.0
 * Matches validated myaccount-redesign.html mockup.
 * All classes prefixed ic-d- to avoid conflicts.
 */

/* ── Blank template shell ── */
body.inspirecorp-blank-template { margin: 0 !important; padding: 0; min-height: 100vh; }
body.inspirecorp-blank-template #wpadminbar { display: none !important; }
body.inspirecorp-blank-template html { margin-top: 0 !important; }
@media screen { body.inspirecorp-blank-template { margin-top: 0 !important; } }

/* ── Root / Reset ── */
.ic-d-page { font-family: "Alexandria", sans-serif; font-size: 15px; font-weight: 300; color: #0D0D0D; background: #F2F8F1; min-height: 100vh; }
.ic-d-page *, .ic-d-page *::before, .ic-d-page *::after { box-sizing: border-box; }
.ic-d-page ul { list-style: none; padding: 0; margin: 0; }
.ic-d-page a  { text-decoration: none; transition: all .4s cubic-bezier(0.46,0,0.07,1); }
.ic-d-page p  { margin-bottom: 10px; line-height: 1.5; }

/* ── CSS Variables ── */
.ic-d-page {
    --ic-c1: #abc6db; --ic-c2: #edbb99; --ic-c3: #efc4cd; --ic-c4: #efc170;
    --ic-black: #000; --ic-light: #F2F8F1; --ic-grey: #888;
    --ic-radius: 20px; --ic-ease: cubic-bezier(0.46,0,0.07,1);
}

/* ── HEADER ── */
.ic-d-header { background: var(--ic-black); padding: 0 30px; height: 58px; display: flex; align-items: center; }
.ic-d-header-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.ic-d-logo { display: block; line-height: 0; }
.ic-d-logo svg { height: 32px; width: auto; }
.ic-d-header-right { display: flex; align-items: center; gap: 16px; }
.ic-d-header-name { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 300; }
.ic-d-header-name strong { color: #fff; font-weight: 600; }
.ic-d-logout { font-size: 13px; color: rgba(255,255,255,0.6); padding: 6px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; transition: all .3s var(--ic-ease); text-decoration: none; display: inline-block; }
.ic-d-logout:hover { border-color: var(--ic-c1); color: #fff; }

/* ── HERO ── */
.ic-d-hero { background: var(--ic-black); padding: 28px 30px 0; }
.ic-d-hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; gap: 20px; }
.ic-d-hero-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ic-c1); object-fit: cover; display: block; flex-shrink: 0; }
.ic-d-hero-initials { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ic-c1); background: var(--ic-c1); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--ic-black); flex-shrink: 0; font-family: "Alexandria", sans-serif; }
.ic-d-hero-text { flex: 1; padding-bottom: 8px; }
.ic-d-hero-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.ic-d-hero-name { font-size: 36px; font-weight: 200; color: #fff; line-height: 1; margin: 0; }
.ic-d-hero-name strong { font-weight: 800; color: var(--ic-c1); }

/* ── TABS ── */
.ic-d-tabs { max-width: 1200px; margin: 20px auto 0; display: flex; gap: 4px; padding: 0 0 0; }
.ic-d-tab { padding: 12px 28px; font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.45); border-radius: 12px 12px 0 0; transition: all .3s var(--ic-ease); cursor: pointer; background: transparent; border: none; font-family: "Alexandria", sans-serif; }
.ic-d-tab.ic-d-active { background: #F2F8F1; color: var(--ic-black); font-weight: 500; }
.ic-d-tab:hover:not(.ic-d-active) { color: rgba(255,255,255,.8); }

/* ── MAIN ── */
.ic-d-main { max-width: 1200px; margin: 0 auto; padding: 30px 30px 60px; }
.ic-d-panel { display: none; }
.ic-d-panel.ic-d-active { display: block; animation: icFadeUp .35s ease; }
@keyframes icFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── MESSAGE SLIDER ── */
.ic-d-msg-wrap { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--ic-radius); overflow: hidden; margin-bottom: 28px; }
.ic-d-msg-viewport { height: 100px; overflow: hidden; }
.ic-d-msg-track { display: flex; transition: transform .5s var(--ic-ease); }
.ic-d-msg-slide { min-width: 100%; padding: 18px 24px 14px; }
.ic-d-msg-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--ic-black); }
.ic-d-msg-text { font-size: 13px; color: #555; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic-d-msg-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 22px 12px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.ic-d-msg-pips { display: flex; gap: 5px; align-items: center; }
.ic-d-msg-pip { width: 22px; height: 3px; border-radius: 3px; background: #ddd; cursor: pointer; transition: background .2s; }
.ic-d-msg-pip.ic-d-active { background: var(--ic-black); }
.ic-d-msg-counter { font-size: 12px; color: #aaa; }
.ic-d-msg-nav { display: flex; gap: 6px; }
.ic-d-msg-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; transition: all .2s; font-family: inherit; }
.ic-d-msg-btn:hover { border-color: var(--ic-black); color: var(--ic-black); }

/* ── STATS ── */
.ic-d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.ic-d-stat { background: #fff; border: 1px solid #e8e8e8; border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; }
.ic-d-stat::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
.ic-d-stat:nth-child(1)::before { background: var(--ic-c1); }
.ic-d-stat:nth-child(2)::before { background: var(--ic-c4); }
.ic-d-stat:nth-child(3)::before { background: var(--ic-c2); }
.ic-d-stat:nth-child(4)::before { background: var(--ic-c3); }
.ic-d-stat-value { font-size: 28px; font-weight: 700; color: var(--ic-black); display: block; line-height: 1; margin-bottom: 5px; }
.ic-d-stat-label { font-size: 12px; color: var(--ic-grey); font-weight: 400; }

/* ── SECTION HEADER ── */
.ic-d-section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ic-d-section-title { font-size: 17px; font-weight: 600; }
.ic-d-section-count { background: var(--ic-c1); padding: 3px 12px; border-radius: 20px; font-size: 12px; color: var(--ic-black); }

/* ── BADGES — Option C rounded squares ── */
.ic-d-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ic-d-badge { position: relative; display: inline-block; }
.ic-d-badge-tile { width: 84px; height: 84px; border-radius: 20px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; border: 1.5px solid transparent; transition: all .3s var(--ic-ease); cursor: pointer; overflow: hidden; }
.ic-d-badge-tile img { width: 70px; height: 70px; border-radius: 14px; display: block; }
.ic-d-badge:hover .ic-d-badge-tile { border-color: var(--ic-c1); background: #f0f5f8; transform: scale(1.07); }
.ic-d-badge-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); min-width: 250px; max-width: 300px; padding: 11px 15px; border-radius: 12px; background: var(--ic-black); color: #fff; font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s var(--ic-ease), transform .25s var(--ic-ease); z-index: 200; line-height: 1.45; white-space: normal; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.ic-d-badge-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--ic-black); }
.ic-d-badge:hover .ic-d-badge-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.ic-d-badge[data-pos="left"]  .ic-d-badge-tip { left: 0; transform: translateX(0) translateY(4px); }
.ic-d-badge[data-pos="right"] .ic-d-badge-tip { left: auto; right: 0; transform: translateX(0) translateY(4px); }
.ic-d-badge[data-pos="left"]:hover  .ic-d-badge-tip { transform: translateX(0) translateY(0); }
.ic-d-badge[data-pos="right"]:hover .ic-d-badge-tip { transform: translateX(0) translateY(0); }
.ic-d-badge[data-pos="left"]  .ic-d-badge-tip::after { left: 20px; transform: none; }
.ic-d-badge[data-pos="right"] .ic-d-badge-tip::after { left: auto; right: 20px; transform: none; }
.ic-d-badge-name { font-weight: 700; display: block; margin-bottom: 4px; font-size: 13px; }
.ic-d-badge-desc { font-weight: 300; opacity: .85; }

/* ── COURSE GRID ── */
.ic-d-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ic-d-course { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--ic-radius); overflow: hidden; transition: border-color .3s var(--ic-ease); }
.ic-d-course:hover { border-color: var(--ic-black); }
.ic-d-course-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.ic-d-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ic-ease); }
.ic-d-course:hover .ic-d-course-thumb img { transform: scale(1.03); }
.ic-d-course-body { padding: 18px 20px 20px; }
.ic-d-course-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--ic-black); }
.ic-d-course-meta { font-size: 12px; color: var(--ic-grey); margin-bottom: 14px; }
.ic-d-progress-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ic-grey); margin-bottom: 6px; }
.ic-d-progress-bar { width: 100%; height: 6px; background: #eee; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.ic-d-progress-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ic-c1), var(--ic-c3)); }
.ic-d-course-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ic-d-no-courses { text-align: center; padding: 40px; color: var(--ic-grey); font-size: 15px; }

/* ── BUTTON — blog style ── */
.ic-d-btn { padding: 10px 48px 10px 14px; border-radius: 30px; border: 1px solid var(--ic-black); color: var(--ic-black); font-size: 13px; font-weight: 300; font-family: "Alexandria", sans-serif; position: relative; display: inline-block; transition: all .4s var(--ic-ease); background: transparent; cursor: pointer; text-decoration: none; }
.ic-d-btn::before { content: ""; position: absolute; right: 5px; top: calc(50% - 13px); width: 26px; height: 26px; border-radius: 50%; background: var(--ic-c1); transition: all .4s var(--ic-ease); }
.ic-d-btn::after { content: ""; position: absolute; right: 5px; top: calc(50% - 13px); width: 26px; height: 26px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 39 39"><g><line fill="none" stroke="%23000" stroke-miterlimit="10" x1="1" y1="19.5" x2="38" y2="19.5"/><path fill="none" stroke="%23000" stroke-miterlimit="10" d="M38,19.5c-9.2,0-16.6-7.5-16.6-16.6"/><path fill="none" stroke="%23000" stroke-miterlimit="10" d="M38,19.5c-9.2,0-16.6,7.5-16.6,16.6"/></g></svg>'); background-size: 20px; background-repeat: no-repeat; background-position: center; }
.ic-d-btn:hover { background: var(--ic-c1); color: var(--ic-black); }
.ic-d-btn:hover::before { background: #fff; }
.ic-d-btn-cert { background: var(--ic-c4); border-color: var(--ic-black); }
.ic-d-btn-cert::before { background: #fff; }
.ic-d-btn-cert:hover { background: var(--ic-black); color: #fff; }
.ic-d-btn-cert:hover::before { background: var(--ic-c4); }
.ic-d-btn-ghost { background: none; border-color: #ddd; color: var(--ic-grey); padding: 10px 14px; }
.ic-d-btn-ghost::before, .ic-d-btn-ghost::after { display: none; }
.ic-d-btn-ghost:hover { border-color: var(--ic-black); color: var(--ic-black); background: var(--ic-light); }

/* ── MESSAGES (flash) ── */
.ic-d-flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.ic-d-flash.success { background: #e8f5e9; border: 1px solid #4caf50; color: #2e7d32; }
.ic-d-flash.error   { background: #fdecea; border: 1px solid #e53935; color: #c62828; }

/* ── PROFILE ── */
.ic-d-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ic-d-card { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--ic-radius); padding: 24px; }
.ic-d-card-title { font-size: 15px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.ic-d-info-row { margin-bottom: 16px; }
.ic-d-info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ic-grey); margin-bottom: 3px; }
.ic-d-info-value { font-size: 15px; font-weight: 400; color: var(--ic-black); }
.ic-d-avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ic-d-av-opt { position: relative; cursor: pointer; }
.ic-d-av-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.ic-d-av-img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; object-fit: cover; display: block; transition: all .3s var(--ic-ease); background: var(--ic-light); }
.ic-d-av-opt:hover .ic-d-av-img { border-color: var(--ic-c1); transform: scale(1.06); }
.ic-d-av-opt.ic-d-sel .ic-d-av-img { border-color: var(--ic-c1); border-width: 3px; box-shadow: 0 0 0 3px rgba(171,198,219,.2); }
.ic-d-pw-group { margin-bottom: 16px; }
.ic-d-pw-label { font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--ic-black); display: block; }
.ic-d-pw-input { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px; font-family: "Alexandria", sans-serif; font-weight: 300; transition: border-color .3s; background: #fff; }
.ic-d-pw-input:focus { border-color: var(--ic-c1); outline: none; box-shadow: 0 0 0 3px rgba(171,198,219,.12); }
.ic-d-save { margin-top: 8px; padding: 11px 50px 11px 16px; border-radius: 30px; border: 1px solid var(--ic-black); background: var(--ic-c1); color: var(--ic-black); font-size: 14px; font-weight: 400; font-family: "Alexandria", sans-serif; position: relative; cursor: pointer; transition: all .4s var(--ic-ease); }
.ic-d-save::before { content: ""; position: absolute; right: 5px; top: calc(50% - 13px); width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: all .4s var(--ic-ease); }
.ic-d-save::after { content: "✓"; position: absolute; right: 12px; top: calc(50% - 10px); font-size: 16px; font-weight: 700; color: var(--ic-black); }
.ic-d-save:hover { background: var(--ic-black); color: #fff; }
.ic-d-save:hover::before { background: var(--ic-c1); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ic-d-stats { grid-template-columns: repeat(2, 1fr); }
    .ic-d-profile { grid-template-columns: 1fr; }
    .ic-d-courses { grid-template-columns: 1fr; }
    .ic-d-hero-name { font-size: 26px; }
    .ic-d-main { padding: 20px 16px 50px; }
}
