/* ============================== */
/* Base & Form Elements */
/* ============================== */
.dash-input,
.dash-select,
.dash-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* ============================== */
/* Buttons */
/* ============================== */
.dash-btn-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #00c6a2, #008cff);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 150, 255, 0.2);
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.dash-btn-gradient:hover {
  background: linear-gradient(90deg, #00a992, #006adf);
  box-shadow: 0 6px 16px rgba(0, 130, 255, 0.3);
}

.dash-btn-gradient.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.dash-btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.dash-btn-secondary:hover {
  background-color: #f2f2f2;
}

.dash-btn-primary {
  background: linear-gradient(90deg, #00c6a2, #008cff);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

/* ============================== */
/* Dashboard Layout */
/* ============================== */
#virtual-dashboard {
  position: relative;
  min-height: 300px;
  background-color: rgba(255, 255, 255, 0.001);
  z-index: 10;
  pointer-events: auto;
}

.dashboard-container {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.dashboard-sidebar {
  pointer-events: auto;
  z-index: 25;
}

.sidebar-item {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 30;
}

/* ============================== */
/* Documents */
/* ============================== */
.document-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f9f9f9;
  margin-bottom: 1rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.document-icon {
  font-size: 1.8rem;
  margin-top: 4px;
}

.document-info {
  flex: 1;
}

.document-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.action-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.3rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.action-btn.download {
  color: #00c8a4;
}

.action-btn.delete {
  color: #ff4d4f;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Document type icons */
.document-icon[data-type="pdf"]::before {
  content: "\f1c1";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #e74c3c;
}

.document-icon[data-type="doc"]::before {
  content: "\f1c2";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #2a71d0;
}

.document-icon[data-type="xls"]::before {
  content: "\f1c3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #27ae60;
}

/* ============================== */
/* Profile Forms */
/* ============================== */
.profile-form label {
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: inline-block;
  color: #333;
}

.profile-form input.dash-input {
  margin-bottom: 1rem;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ============================== */
/* Contracts */
/* ============================== */
.contract-list {
  margin-left: auto;
  margin-top: 0.4rem;
}

.contract-list li {
  margin: 0.5rem 0;
  padding: 0.6rem 1rem;
  background: #f6f8fa;
  border-radius: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signed {
  color: #2ecc71;
  font-weight: 600;
}

.partial {
  color: #f39c12;
  font-weight: 600;
}

.progressing {
  color: #3498db;
  font-weight: 600;
}

/* ============================== */
/* Progress & Metrics */
/* ============================== */
.document-progress {
  margin-top: 1rem;
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  margin-top: 4px;
}

.progress {
  background: linear-gradient(to right, #00c6a2, #008cff);
  height: 100%;
  width: 65%;
  transition: width 0.3s;
  border-radius: 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric-card {
  background: #ffffff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.metric-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1c3b5a;
}

.metric-change {
  font-size: 0.9rem;
  font-weight: 500;
}

.metric-change.positive {
  color: #2ecc71;
}

.metric-change.negative {
  color: #e74c3c;
}

/* ============================== */
/* Share & Upload */
/* ============================== */
.panel-share-box {
  margin-bottom: 1.5rem;
}

.share-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.document-upload {
  margin-bottom: 1rem;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 130, 255, 0.3);
}

.upload-icon {
  font-size: 1.2rem;
}

/* ============================== */
/* Switch */
/* ============================== */
.switch input:checked + .slider {
  background: linear-gradient(90deg, #00c6a2, #008cff);
}

/* ============================== */
/* Modal */
/* ============================== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: auto;
}

.custom-modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.custom-modal h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
}

.custom-modal p {
  margin-bottom: 1rem;
  color: #555;
}

.custom-modal input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* ============================== */
/* Mobile Responsive */
/* ============================== */
@media (max-width: 768px) {
  .dashboard-section {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ============================== */
/* Panel Toggle Fix */
/* ============================== */
.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}
