/* Storage Quota Widget Styles */

.storage-quota-widget {
  background: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.storage-quota-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.storage-quota-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Usage Bar */
.storage-quota-usage {
  margin-bottom: 1rem;
}

.storage-quota-bar-container {
  width: 100%;
  height: 0.75rem;
  background-color: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.storage-quota-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.storage-quota-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Status Message */
.storage-quota-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

/* Breakdown */
.storage-quota-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.storage-quota-breakdown summary {
  font-size: 0.75rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.storage-quota-breakdown summary:hover {
  color: #111827;
}

.storage-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.storage-breakdown-item span:first-child {
  font-weight: 500;
}

.storage-breakdown-item span:last-child {
  color: #111827;
  font-family: 'Courier New', monospace;
}

/* Upgrade Button */
.storage-quota-upgrade {
  margin-top: 1rem;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-upgrade:active {
  transform: translateY(0);
}

/* Loading States */
.storage-quota-loading,
.storage-quota-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  flex-direction: column;
}

.storage-quota-error {
  color: #ef4444;
}

.storage-quota-error button {
  margin-top: 0.5rem;
}

/* Spinner Styles */
.spinner-small {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-tiny {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .storage-quota-widget {
    padding: 1rem;
  }

  .storage-quota-header h3 {
    font-size: 0.875rem;
  }

  .storage-quota-stats {
    font-size: 0.75rem;
  }
}
