/* ==========================================================================
   iStash - iMazing Dashboard View Stylesheet
   ========================================================================== */

.overview-dashboard-container {
  width: 100%;
  height: 100%;
  padding: 20px 24px 36px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.dashboard-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-action-link {
  font-size: 11px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.card-action-link:hover {
  text-decoration: underline;
}

/* Device Info Table */
.device-info-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}

.info-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.info-row.selected {
  background-color: var(--selection-bg);
}

.info-label {
  color: var(--text-muted);
  font-size: 12px;
}

.info-row.selected .info-label {
  color: #a5b4fc;
}

.info-value {
  color: var(--text-main);
  font-weight: 500;
  font-size: 12px;
}

.info-row.selected .info-value {
  color: #fff;
  font-weight: 600;
}

/* Quick Actions List */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.action-item:hover {
  background-color: var(--bg-card-hover);
  transform: translateX(2px);
}

.action-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.action-item:hover .action-icon {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.action-text {
  font-size: 13px;
  font-weight: 500;
}

/* Storage Bar Section */
.storage-header-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-other);
}

.storage-bar-multi {
  height: 18px;
  border-radius: 9px;
  background-color: var(--bg-dark);
  display: flex;
  overflow: hidden;
  margin: 16px 0 14px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.storage-seg {
  height: 100%;
  transition: width 0.4s ease;
  position: relative;
}

.storage-seg.apps { background-color: var(--color-apps); }
.storage-seg.photos { background-color: var(--color-photos); }
.storage-seg.videos { background-color: var(--color-videos); }
.storage-seg.music { background-color: var(--color-music); }
.storage-seg.other { background-color: var(--color-other); }

.storage-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Battery Widget */
.battery-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 4px 0;
}

.battery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--color-photos);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
}

.battery-icon-graphic {
  display: flex;
  align-items: center;
  gap: 4px;
}

.battery-status-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-photos);
}

/* Gallery & Timeline Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 14px;
  margin-top: 16px;
}

.media-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.media-card img, .media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
