/* ==========================================================
   DESIGN SYSTEM
========================================================== */
:root {
  --primary: #0f766e;
  --primary-light: #e6fffb;
  --primary-dark: #115e59;
  --text: #334155;
  --muted: #64748b;
  --light: #94a3b8;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --transition: all 0.25s ease;
}

/* ==========================================================
   GLOBAL
========================================================== */
body {
  background: var(--background);
}

.site-profile {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.profile-wrapper {
  padding-top: 10px;
}

.profile-wrapper .row {
    align-items: flex-start !important;   /* each column is only as tall as its own content */
}

/* ==========================================================
   CARDS
========================================================== */

.profile-card,
.section-card,
.dashboard-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.profile-card {
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.section-card {
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.dashboard-card {
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dashboard-card:hover,
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.25);
}

/* ==========================================================
   PROFILE HEADER
========================================================== */
.profile-sidebar {
  position: sticky;
  top: 10px;
}

.profile-header {
  /* background: linear-gradient(-35deg, var(--primary), #00928f); */
  background: linear-gradient(135deg,#00928f,#14b8a6);
  padding: 36px 24px;
  text-align: center;
  color: #fff;
}

.profile-avatar {
  width: 135px;
  height: 135px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}

.profile-name {
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-position {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================
   STATISTICS
========================================================== */
.stat-box {
  padding: 18px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================
   INFORMATION
========================================================== */
.info-item {
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: var(--light);
}

.info-value {
  font-weight: 600;
  color: var(--text);
}

.section-title {
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================
   EDUCATION
========================================================== */
.education-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
  border-left: 2px solid var(--border);
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.education-title {
  font-weight: 600;
}

.education-school {
  color: var(--muted);
}

.education-year {
  color: var(--light);
  font-size: 0.8rem;
}

/* ==========================================================
   TABS
========================================================== */
.profile-tabs {
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.profile-tabs .nav-link {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.profile-tabs .nav-link i {
  margin-right: 6px;
}

.profile-tabs .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.profile-tabs .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.15);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.05);
}

/* ==========================================================
   BADGES
========================================================== */
.badge-soft {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================
   LINKS
========================================================== */
a {
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 991.98px) {
  .profile-sidebar {
    position: static;
  }
  .profile-tabs {
    gap: 8px;
  }
  .profile-tabs .nav-link {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .profile-avatar {
    width: 110px;
    height: 110px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
}


/* ==========================================================
   APPLICATION DASHBOARDcard-body
========================================================== */

.dashboard-grid .app-card {
    height: 100%;
}

.app-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 118, 110, 0.25);
}

.app-card-body {
    padding: 28px 20px;
    text-align: center;
}

.app-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
}

.app-card:hover .app-icon {
    /* background: var(--primary); */
    color: #fff;
    transform: scale(1.05);
}

.app-icon i {
    font-size: 2.8rem;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.app-description {
    color: var(--muted);
    font-size: 0.85rem;
    min-height: 42px;
}

.app-status {
    margin-top: 12px;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}


/* Notification */
.notification-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color:white;
    font-size:0.75rem;
    font-weight:700;
    border-radius:50%;
    border:3px solid #fff;
    box-shadow: var(--shadow-sm);
    z-index:5;
}


/* Disabled application */
.app-card.disabled {
    opacity: .75;
}

.app-card.disabled:hover {
    transform:none;
    box-shadow:var(--shadow-sm);
}

/* =========================================
   RESEARCH PROFILE
   ========================================= */

.research-stat {
    text-align: center;
    padding: 22px 15px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.research-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.research-stat-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(20, 150, 140, 0.10);
    color: #14968c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.research-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #14968c;
    line-height: 1.2;
}

.research-stat-label {
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}


/* =========================================
   RESEARCH IDENTIFIERS
   ========================================= */

.research-identifiers {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.identifier-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fafafa;
}

.identifier-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    background: rgba(20, 150, 140, 0.10);
    color: #14968c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.identifier-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
}

.identifier-value {
    font-size: 15px;
    font-weight: 600;
    color: #343a40;
}

.identifier-value a {
    color: #14968c;
    text-decoration: none;
}

.identifier-value a:hover {
    text-decoration: underline;
}


/* =========================================
   PUBLICATION BY YEAR
   ========================================= */

.publication-year-card {
    text-align: center;
    padding: 18px 10px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fafafa;
}

.publication-year {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

.publication-count {
    margin-top: 5px;
    font-size: 25px;
    font-weight: 700;
    color: #14968c;
}

.publication-label {
    font-size: 11px;
    color: #6c757d;
}


/* =========================================
   RESEARCH SUMMARY
   ========================================= */

.research-summary {
    border-top: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6c757d;
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: #343a40;
}