:root {
  --photolive-button-bg: #2271b1;
  --photolive-button-text: #ffffff;
  --photolive-note-text: #000000;
  --photolive-status-text: #3c434a;
  --photolive-placeholder-text: #8c8f94;
  --photolive-warning-text: #ef4444;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #161117;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.photolive-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.photolive-upload {
  background: #390c45;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 480px;
  padding: 24px;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Ensures top image fits container borders */
}

.photolive-upload__top-image {
  width: calc(100% + 48px); /* Expand to full container width */
  margin-left: -24px;       /* Pull left to align with padding */
  margin-right: -24px;      /* Pull right to align with padding */
  margin-top: -24px;        /* Pull to the very top of container */
  height: auto;             /* Maintain aspect ratio */
  display: block;
  margin-bottom: 20px;      /* Space below image */
}

.photolive-upload__file-input {
  display: none;
}

.photolive-upload__action {
  background: var(--photolive-button-bg);
  border: 0;
  border-radius: 8px;
  color: var(--photolive-button-text);
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
  transition: opacity 0.2s ease;
}

.photolive-upload__action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.photolive-upload .photolive-upload__note,
.photolive-upload .photolive-upload__note:focus {
  border: 1px solid #8c8f94;
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--photolive-note-text) !important;
  font-size: 16px;
  margin-bottom: 14px;
  padding: 12px;
  width: 100%;
  outline: none;
}

.photolive-upload .photolive-upload__note::placeholder,
.photolive-upload .photolive-upload__note::-webkit-input-placeholder,
.photolive-upload .photolive-upload__note::-moz-placeholder {
  color: var(--photolive-placeholder-text) !important;
  opacity: 1 !important;
  text-align: center !important;
}

.photolive-upload__warning {
  color: var(--photolive-warning-text) !important;
  font-size: 11px;
  text-align: center;
  direction: rtl;
  margin-top: 30px;
  margin-bottom: 0;
  line-height: 1.4;
}

.photolive-upload .photolive-upload__status {
  color: var(--photolive-status-text) !important;
  font-size: 14px;
  margin: 10px 0 0 0;
  min-height: 1.2em;
}
