/* Military Rank Progression & Dossier Stylesheet */

.military-rank-card {
  margin-top: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #1a202c 0%, #11141d 100%);
  border: 1px solid #2d3748;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

.rank-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-insignia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  background: #0f172a;
  border: 2px solid #a0aec0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 0 8px currentColor;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.rank-card-info {
  flex: 1;
  min-width: 0;
}

.rank-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rank-display-name {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.rank-display-title {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 2px;
}

.rank-exp-section {
  margin-top: 8px;
}

.rank-exp-bar-container {
  height: 8px;
  background: #0f172a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #2d3748;
  position: relative;
}

.rank-exp-fill {
  height: 100%;
  width: 0%;
  background: #48bb78;
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
}

.rank-exp-text {
  display: block;
  font-size: 10px;
  color: #a0aec0;
  margin-top: 4px;
  text-align: right;
  font-family: monospace;
}

.rank-active-perk {
  margin-top: 6px;
  padding: 5px 8px;
  background: rgba(45, 55, 72, 0.4);
  border-left: 3px solid #ecc94b;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.35;
}

.btn-open-dossier {
  width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  background: #2b6cb0;
  border: 1px solid #4299e1;
  color: #ebf8ff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-open-dossier:hover {
  background: #3182ce;
  border-color: #63b3ed;
  box-shadow: 0 0 8px rgba(66, 153, 225, 0.4);
}

/* Rank Dossier Modal */
.rank-dossier-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.rank-dossier-modal.hidden {
  display: none;
}

.dossier-content {
  background: #171923;
  border: 2px solid #4a5568;
  border-radius: 12px;
  width: 90%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(236, 201, 75, 0.2);
  overflow: hidden;
}

.dossier-header {
  padding: 14px 18px;
  background: #1a202c;
  border-bottom: 1px solid #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-header h2 {
  margin: 2px 0 0 0;
  font-size: 17px;
  color: #fff;
}

.dossier-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 18px;
  background: #11141d;
  border-bottom: 1px solid #2d3748;
}

.dossier-stat-box {
  background: #1a202c;
  border: 1px solid #2d3748;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.dossier-stat-box small {
  font-size: 10px;
  color: #a0aec0;
}

.dossier-stat-box strong {
  font-size: 15px;
  color: #ecc94b;
  margin-top: 2px;
  font-family: monospace;
}

.dossier-rank-list {
  padding: 12px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dossier-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #1a202c;
  border: 1px solid #2d3748;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dossier-rank-item.active-rank {
  background: rgba(49, 130, 206, 0.15);
  border-color: #4299e1;
  box-shadow: 0 0 10px rgba(66, 153, 225, 0.3);
}

.dossier-rank-item.locked {
  opacity: 0.6;
}

.dossier-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.dossier-badge-col .insignia-symbol {
  font-size: 15px;
  font-weight: 900;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: #0f172a;
}

.dossier-info-col {
  flex: 1;
  min-width: 0;
}

.dossier-title-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dossier-exp-req {
  font-size: 11px;
  color: #a0aec0;
  font-family: monospace;
}

.dossier-status-col {
  min-width: 80px;
  text-align: right;
}

.rank-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

.rank-status-tag.current {
  background: #3182ce;
  color: #fff;
}

.rank-status-tag.passed {
  background: #276749;
  color: #9ae6b4;
}

.rank-status-tag.lock {
  background: #4a5568;
  color: #cbd5e0;
}
