/*
 * 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.
 */


@import url("https://cloudsecurityalliance.org/assets/application.css");

html {
  background-color: #f5f5f5;
}

.c-megamenu--audit-bot {
  box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.2);
  padding: 0.25em 0;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.u-pin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-button--disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Submissions Grid Layout */
.c-submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

/* File Upload Styling - BEM Methodology */
.c-file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 2px dashed #ccc;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 200px;
}

.c-file-drop--dragover {
  background-color: rgba(0, 123, 255, 0.05);
  border-color: #007bff;
}

.c-file-drop--has-file {
  background-color: rgba(40, 167, 69, 0.05);
  border-color: #28a745;
}

.c-file-drop__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.c-file-drop__message p {
  margin: 0.5rem 0;
  color: #495057;
}

.c-file-drop__subtext {
  font-size: 0.875rem;
  color: #6c757d;
}

.c-file-drop__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.c-file-drop__browse-button {
  display: inline-block;
  margin-top: 0.5rem;
  cursor: pointer;
}

.c-file-drop__filename {
  margin-top: 1rem;
  font-weight: bold;
  color: #28a745;
  word-break: break-all;
}

.c-file-drop__icon {
  font-size: 2rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.c-submission {
  position: relative;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.c-submission:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.c-submission__header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.c-submission__status {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 12px;
}

.c-submission__status--processing {
  background-color: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.c-submission__status--processed {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.c-submission__status--error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.c-submission__status-icon {
  margin-left: 8px;
}

.c-submission__content {
  padding: 20px;
}

.c-submission__info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.c-submission__info-item {
  margin: 0;
}

.c-submission__info-label {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 5px;
}

.c-submission__info-value {
  font-weight: 500;
}

.c-submission__file-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 6px;
  background-color: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .o-grid__column--4\@md {
    width: 33.333333%;
  }
}

.u-h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.c-dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.c-dashboard-table th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.c-dashboard-table td {
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.text-success {
  color: #38a169;
}

.text-danger {
  color: #e53e3e;
}

.c-metric-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 20px;
  height: calc(100% - 20px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.c-metric-card__value {
  font-size: 36px;
  font-weight: 700;
  color: #3182ce;
  margin-bottom: 8px;
}

.c-metric-card__label {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 4px;
}

.c-metric-card__label--sub {
  font-size: 14px;
  color: #718096;
  margin-bottom: 8px;
}

.c-metric-card__date {
  font-size: 12px;
  color: #a0aec0;
}

.c-chart-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: 300px;
  margin-top: 10px;
}

.status-processed {
  color: #38a169;
  font-weight: 500;
}

.status-processing {
  color: #3182ce;
  font-weight: 500;
}

.status-error {
  color: #e53e3e;
  font-weight: 500;
}

.c-submission__file-link:hover {
  background-color: #e5e7eb;
}

.c-submission__file-icon {
  margin-right: 8px;
  font-size: 16px;
  color: #4b5563;
}

.c-submission__file-group {
  display: grid;
  gap: 8px;
}

.c-submission__file-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.c-submission__file-link {
  white-space: nowrap;
}

.c-submission__progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #e5e7eb;
  overflow: hidden;
  margin-bottom: 8px;
}

.c-submission__progress::-webkit-progress-bar {
  background-color: #e5e7eb;
  border-radius: 4px;
}

.c-submission__progress::-webkit-progress-value {
  background-color: #3b82f6;
  border-radius: 4px;
}

.c-submission__progress::-moz-progress-bar {
  background-color: #3b82f6;
  border-radius: 4px;
}

.c-submission__progress-text {
  font-size: 0.85em;
  color: #6b7280;
}

.c-submission__error {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  color: #dc2626;
}
