/* General App Layout */
.App {
  display: flex;
  height: 100vh;
  background-color: #f0f2f5;
}

.app-sidebar {
  height: 100vh;
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 1000;
}

.app-main {
  flex-grow: 1;
  padding: 20px;
  margin-left: 250px; /* Same as sidebar width */
  transition: margin-left 0.3s;
}

.App.collapsed .app-main {
  margin-left: 80px; /* Same as collapsed sidebar width */
}



/* Sidebar Styles */
.path-section {
  padding: 10px 20px;
  color: #333;
}

.path-section h2 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
}

.path-form {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.path-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.add-path-btn {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-list h3 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 10px;
}

.path-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.path-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}

.scan-btn-sidebar {
  width: 100%;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.scan-btn-sidebar:hover {
  background-color: #218838;
}

.scan-btn-sidebar:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Video Library - YouTube Style */
.videos-section h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
  cursor: pointer;
}

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-thumbnail {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  background-color: #000;
}

.thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: linear-gradient(45deg, #222, #444);
}

.video-info {
  padding: 12px;
  display: flex;
  gap: 12px;
}

.video-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ddd;
  flex-shrink: 0;
}

.video-details {
  flex-grow: 1;
}

.video-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0f0f0f;
  line-height: 1.4;
  max-height: 2.8em; /* Limit to 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-channel, .video-stats {
  margin: 0;
  font-size: 14px;
  color: #606060;
}

.video-path, .video-size {
  margin: 4px 0;
  font-size: 12px;
  color: #606060;
  word-break: break-all;
}
