/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Basic styling for the file drop application */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  margin: 0;
  color: #333;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* Buttons */
.button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
}

.button.primary {
  background: #007cba;
  color: white;
}

.button.primary:hover {
  background: #005a87;
}

.button.secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.button.secondary:hover {
  background: #f8f9fa;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 30px;
}

.form-header h1 {
  margin-bottom: 10px;
  color: #333;
}

.form {
  background: white;
  padding: 30px;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007cba;
}

.help-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

/* Error messages */
.error-messages {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-messages h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.error-messages ul {
  margin: 0;
  padding-left: 20px;
}

/* Drops list */
.drops-list {
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.drop-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.drop-item:last-child {
  border-bottom: none;
}

.drop-status {
  margin-right: 20px;
}

.status-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.status-icon.uploaded {
  background: #d4edda;
  color: #155724;
}

.status-icon.pending {
  background: #f8f9fa;
  color: #6c757d;
}

.drop-info {
  flex: 1;
}

.drop-title {
  margin-bottom: 5px;
}

.drop-title a {
  color: #007cba;
  text-decoration: none;
  font-weight: bold;
}

.drop-title a:hover {
  text-decoration: underline;
}

.expired-badge {
  background: #f8d7da;
  color: #721c24;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 10px;
}

.drop-meta {
  color: #666;
  font-size: 14px;
}

.drop-details {
  display: flex;
  gap: 30px;
  align-items: center;
}

.file-info,
.email-info {
  font-size: 14px;
  color: #666;
}

.drop-actions {
  display: flex;
  gap: 10px;
}

.link {
  color: #007cba;
  text-decoration: none;
  font-size: 14px;
}

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

.link.delete {
  color: #dc3545;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 4px;
}

.empty-state h3 {
  margin-bottom: 10px;
  color: #333;
}

.empty-state p {
  color: #666;
  margin-bottom: 30px;
}

/* Flash messages */
.notice,
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid;
}

.notice {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

/* Detail sections */
.drop-detail {
  max-width: 800px;
  margin: 0 auto;
}

.drop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.drop-header h1 {
  margin: 0 0 5px 0;
  color: #333;
}

.drop-header p {
  margin: 0;
  color: #666;
}

.detail-section {
  background: white;
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.detail-section h3 {
  margin: 0 0 20px 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.detail-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row dt {
  width: 200px;
  font-weight: bold;
  color: #333;
}

.detail-row dd {
  flex: 1;
  margin: 0;
  color: #666;
}

.text-muted {
  color: #6c757d;
}

.button.delete {
  background: #dc3545;
  color: white;
}

.button.delete:hover {
  background: #c82333;
}

/* Service information */
.service-info {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.info-section {
  margin-bottom: 30px;
}

.info-section h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
}

.info-section h3 {
  color: #555;
  margin-bottom: 10px;
  font-size: 18px;
}

.info-section p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
}

.info-section ul {
  list-style-type: none;
  padding: 0;
}

.info-section li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.info-section li:last-child {
  border-bottom: none;
}

.contact-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid #007cba;
}

.contact-info {
  background: white;
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
}

.contact-info a {
  color: #007cba;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
