
/* ==========================================================================
   Summary

   1 = Basic Style
   2 = Copyright
   3 = Options
   4 = Upload
   5 = Terms of service
   6 = Install
   7 = Admin
   8 = Download page

   ========================================================================== */

/* ==========================================================================
   1 = Basic Style
   ========================================================================== */

body {
  background: #efebe9;
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
}

#content {
  padding: 2em;
}

h1 a {
  display: block;
  background: url(logo-jirafeau.svg) no-repeat;
  background-size: 100% 100%;
  text-indent: -9999px;
  width: 194px;
  height: 185px;
  margin: 1em auto;
  position: relative;
  left: 0.4em;
}

h2 {
  text-align: center;
  color: #795548;
}

fieldset {
  border: 0;
  padding: 1.5em;
  margin: 0 auto;
  border-radius: 8px;
  width: 20em;
  border: 7px dashed #bcaaa4;
  min-height: 15em;
  min-width: 30em;
  position: relative;
}

legend {
  padding: 0.5em 1em;
  background: #efebe9;
  color: #663D1C;
  font-size: 1.2em;
  display: block;
  min-width: 8em;
  text-align: center;
}

table a {
  color: #000;
}

table a:hover,
table a:focus {
  text-decoration: none;
}

input[type="submit"] {
  background: #0D9CB2;
  border: 0;
  padding: 0.4em 2.2em;
  font-size: 1.1em;
  color: #FFF;
  border-bottom: 5px solid #085B69;
  cursor: pointer;
  margin: 10px;
}

select,
input[type="text"],
input[type="password"] {
  border: 1;
  padding: 5px 5px;
  font-size: 1em;
}

select { width: 100%; }

input[type="submit"]:hover,
input[type="submit"]:focus {
  border: 0;
  position: relative;
  top: 5px;
  margin-bottom: 15px;
}

.inner {
  margin-top: 3em;
}

#upload fieldset {
  background: url(upload.svg) no-repeat center;
  -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
          transition: all 0.5s ease;
}

#upload fieldset:hover {
  border-color: #663D1C;
}

#upload.drag-highlight fieldset {
  border-color: #0D9CB2;
  background-color: rgba(13, 156, 178, 0.05);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(13, 156, 178, 0.2);
}

#upload > form {
  text-align: center;
}

#upload p {
  margin: 0;
}

#file_select {
  position: relative;
  width: 100%;
  height: 16em;
  cursor: pointer;
  opacity: 0;
}
  #upload.file-selected #file_select {
    opacity: 1;
    height: 2em;
  }
  #upload.file-selected fieldset {
    background-image: none;
  }


/* ==========================================================================
   2 = Copyright
   ========================================================================== */

#copyright {
  text-align: center;
  font-size: 0.8em;
  color: #795548;
  margin: 3em auto;
}

#copyright a {
  color: #795548;
  text-decoration: none;
}

#copyright a:hover,
#copyright a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   3 = Options
   ========================================================================== */

#options {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 90%;
}

#options tr { height: 2.7em; }

#option_table tr:first-child {
  width: 100%;
  height: 100%;
}

#option_table td:first-child {
}

#options input[type="submit"] {
  position: relative;
  margin: 1em auto;
}

/* ==========================================================================
   4 = Upload
   ========================================================================== */

#upload_finished,
#uploading,
.message,
.info,
.error {
  text-align: center;
  color: #795548;
  padding-left: 3em;
}

#upload_finished > p:nth-child(1) {
  color: #0D9CB2;
  font-weight: bold;
}

#upload_finished div p:nth-child(1) {
  font-weight: bold;
}

#upload_finished a {
  text-decoration: none;
  color: #795548;
}

#uploading a {
  font-weight: bold;
  text-decoration: none;
  color: #795548;
}

#uploaded_percentage {
  font-size: 2em;
  font-weight: bold;
}

#upload_finished a:hover,
#uploading a:hover,
#upload_finished a:focus,
#uploading a:focus {
  text-decoration: underline;
}

.message,
.error {
  color: #d55548;
  font-style: italic;
  font-weight: bold;
}

#upload_link_email {
  margin-left: 10px;
}

#upload_image_email {
  padding-left: 20px;
  padding-bottom: 15px;
  background: url(email.png) no-repeat;
}

/* ==========================================================================
   5 = Terms of service
   ========================================================================== */

textarea[readonly="readonly"] {
  border: 0;
  color: #795548;
  font-family: Arial, sans-serif;
  background: none;
  margin: auto;
  display: block;
}

textarea[readonly="readonly"] + p,
textarea[readonly="readonly"] + p + p {
  text-align: center;
  color: #795548;
}

textarea[readonly="readonly"] + p a,
textarea[readonly="readonly"] + p + p a {
  font-weight: bold;
  text-decoration: none;
  color: #795548;
}

textarea[readonly="readonly"] + p a:hover,
textarea[readonly="readonly"] + p + p a:hover,
textarea[readonly="readonly"] + p a:focus,
textarea[readonly="readonly"] + p + p a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   6 = Install
   ========================================================================== */

#install fieldset,
#install + fieldset {
  width: auto;
  max-width: 50em;
  border: 7px dashed #bcaaa4;
}

#install table,
#install + fieldset table {
  width: 100%;
  border-collapse: collapse;
}

#install td,
#install + fieldset td {
  padding: 0.5em 1em;
  border-bottom: 0;
}

#install td:empty {
  width: 13.1em;
}

#install table form:nth-child(odd),
#install + fieldset tr:nth-child(odd) {
  background: #bcaaa4;
}

#install fieldset > form {
  margin-top: 2em;
  text-align: center;
}

#install form {
  display: table;
  width: 100%;
}

#install td:last-child { text-align: left; }

#install .info { width: 19em; }

#install input[type="submit"] {
  min-width: 10.5em;
}

#install + fieldset table {
  font-size: 0.9em;
}

#install + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #000;
  font-weight: bold;
  border-bottom: 0;
}

#install + fieldset td:first-child input[type="submit"]:hover,
#install + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
}

/* ==========================================================================
   7 = Admin
   ========================================================================== */

#admin fieldset,
#admin + fieldset {
  width: auto;
  max-width: 95%;
  border: 7px dashed #bcaaa4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#admin table,
#admin + fieldset table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #FFF;
  min-width: 900px;
}

#admin td,
#admin + fieldset td {
  padding: 0.5em 0.8em;
  border: 2px solid #FFF;
  border-bottom: 0;
  white-space: nowrap;
}

#admin td:first-child,
#admin td:nth-child(3),
#admin td:nth-child(5) {
  white-space: normal;
}

#admin td:empty {
  width: 13.1em;
}

#admin table form:nth-child(odd),
#admin + fieldset tr:nth-child(odd) {
  background: #bcaaa4;
}

#admin fieldset > form {
  margin-top: 2em;
  text-align: center;
}

#admin form {
  display: table;
  width: 100%;
}

#admin td:last-child { 
  text-align: left;
  white-space: normal;
}

#admin .info { width: 19em; }

#admin input[type="submit"] {
  min-width: 9em;
  padding: 0.35em 1em;
  font-size: 0.95em;
  margin: 3px 2px;
}

#admin + fieldset table {
  font-size: 0.9em;
}

#admin + fieldset td:first-child input[type="submit"] {
  background: none;
  padding: 0;
  color: #000;
  font-weight: bold;
  border-bottom: 0;
}

#admin + fieldset td:first-child input[type="submit"]:hover,
#admin + fieldset td:first-child input[type="submit"]:focus {
  text-decoration: underline;
}

/* IP geolocation link styling */
#admin td a[href*="iplocation"],
#admin + fieldset td a[href*="iplocation"] {
  display: inline-block;
  padding: 2px 4px;
  transition: all 0.2s ease;
}

#admin td a[href*="iplocation"]:hover,
#admin + fieldset td a[href*="iplocation"]:hover {
  text-decoration: underline;
  background: rgba(13, 156, 178, 0.1);
  border-radius: 3px;
}

/* ==========================================================================
   8 = Download page
   ========================================================================== */

#self_destruct {
  font-weight: bold;
  color: red;
  background-image: url('pixel_bomb.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  padding-left: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ==========================================================================
   9 = Mobile Optimizations & File Details
   ========================================================================== */

/* File details display */
#file_details {
  margin: 15px 0;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.files-summary {
  padding: 10px;
  background: #0D9CB2;
  color: white;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: center;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #0D9CB2;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: #ececec;
  transform: translateX(5px);
}

.file-icon {
  font-size: 2em;
  margin-right: 15px;
  min-width: 40px;
  text-align: center;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: bold;
  color: #663D1C;
  word-break: break-word;
  margin-bottom: 4px;
}

.file-meta {
  font-size: 0.9em;
  color: #795548;
}

.file-error {
  color: #d55548;
  font-weight: bold;
  margin-left: 10px;
}

.files-total {
  padding: 10px;
  text-align: right;
  font-weight: bold;
  color: #663D1C;
  border-top: 2px solid #bcaaa4;
  margin-top: 10px;
}

/* Files summary header with Add More button */
.files-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: linear-gradient(135deg, #0D9CB2 0%, #0BC9E0 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.files-summary-header strong {
  font-size: 1.1em;
}

.add-more-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-more-files-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-more-files-btn:active {
  transform: translateY(0);
}

.add-more-files-btn .btn-icon {
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1;
}

/* File thumbnail preview in list */
.file-thumbnail-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ddd;
  margin-right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove file button */
.remove-file-btn {
  padding: 6px 12px;
  background: #d55548;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1;
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-file-btn:hover {
  background: #a83f35;
  transform: scale(1.1);
}

.remove-file-btn:active {
  transform: scale(0.95);
}

/* Multi-upload results */
.multi-upload-results {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.multi-upload-results h2 {
  color: #0D9CB2;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5em;
}

.upload-summary {
  text-align: center;
  font-size: 1.1em;
  color: #663D1C;
  margin-bottom: 30px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 10px;
}

.upload-result-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border-left: 5px solid #0D9CB2;
}

.upload-result-item.error-item {
  border-left-color: #d55548;
  background: #fff5f5;
}

.result-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-icon {
  font-size: 1.5em;
  margin-right: 10px;
}

.result-header strong {
  flex: 1;
  color: #663D1C;
  font-size: 1.1em;
  word-break: break-word;
  min-width: 0;
}

.file-size-badge {
  background: #0D9CB2;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  white-space: nowrap;
}

.error-message {
  color: #d55548;
  font-style: italic;
  margin: 10px 0;
}

.result-links {
  margin-top: 15px;
}

.link-group {
  margin: 12px 0;
}

.link-group label {
  display: block;
  font-weight: bold;
  color: #663D1C;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.link-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
  flex-wrap: wrap;
}

.result-link {
  flex: 1;
  color: #0D9CB2;
  text-decoration: none;
  word-break: break-all;
  min-width: 0;
  font-size: 0.9em;
}

.result-link:hover {
  text-decoration: underline;
}

.result-link.delete-link {
  color: #d55548;
}

.copy-btn-mini {
  background: #0D9CB2;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.copy-btn-mini:hover {
  background: #085B69;
  transform: scale(1.1);
}

.copy-btn-mini:active {
  transform: scale(0.95);
}

.expiry-info {
  margin-top: 10px;
  padding: 8px;
  background: #fff3e0;
  border-radius: 5px;
  color: #795548;
  font-size: 0.9em;
  text-align: center;
}

.upload-another-btn {
  display: block;
  margin: 30px auto;
  background: #0D9CB2;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  border-bottom: 5px solid #085B69;
  transition: all 0.3s ease;
}

.upload-another-btn:hover {
  background: #085B69;
  transform: translateY(-2px);
}

.upload-another-btn:active {
  transform: translateY(3px);
  border-bottom: 2px solid #085B69;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  #content {
    padding: 1em;
  }
  
  h1 a {
    width: 150px;
    height: 143px;
    margin: 0.5em auto;
  }
  
  fieldset {
    width: auto;
    min-width: auto;
    max-width: 100%;
    padding: 1em;
    min-height: auto;
  }
  
  legend {
    font-size: 1em;
    padding: 0.5em;
  }
  
  input[type="file"] {
    font-size: 16px;
    width: 100%;
  }
  
  #file_details {
    padding: 10px;
  }
  
  .file-item {
    padding: 10px;
  }
  
  .file-icon {
    font-size: 1.5em;
    margin-right: 10px;
    min-width: 30px;
  }
  
  .file-thumbnail-preview {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .file-name {
    font-size: 0.95em;
  }
  
  .file-meta {
    font-size: 0.85em;
  }
  
  .files-summary-header {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .files-summary-header strong {
    font-size: 1em;
    text-align: center;
  }
  
  .add-more-files-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .remove-file-btn {
    min-width: 28px;
    height: 28px;
    font-size: 1em;
  }
  
  #options {
    overflow-x: auto;
  }
  
  #option_table {
    width: 100%;
  }
  
  input[type="submit"] {
    width: 100%;
    padding: 0.6em 1em;
    font-size: 1em;
    margin: 5px 0;
  }
  
  input[type="text"],
  input[type="password"],
  select {
    width: 100%;
    font-size: 16px;
    padding: 8px;
  }
  
  .multi-upload-results {
    padding: 10px;
  }
  
  .multi-upload-results h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }
  
  .upload-result-item {
    padding: 15px;
    margin: 10px 0;
  }
  
  .result-header {
    font-size: 0.95em;
  }
  
  .result-icon {
    font-size: 1.3em;
  }
  
  .link-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .result-link {
    font-size: 0.85em;
  }
  
  .copy-btn-mini {
    width: 100%;
    padding: 10px;
  }
  
  .upload-another-btn {
    width: 100%;
    padding: 12px 20px;
  }
  
  .qr-code-container {
    max-width: 100%;
  }
  
  .qr-code-container img {
    max-width: 150px;
    height: auto;
  }
  
  /* Admin mobile optimizations */
  #admin fieldset,
  #admin + fieldset {
    max-width: 100%;
    padding: 0.5em;
  }
  
  #admin table,
  #admin + fieldset table {
    font-size: 0.75em;
    min-width: 700px;
  }
  
  #admin td,
  #admin + fieldset td {
    padding: 0.4em 0.5em;
  }
  
  #admin input[type="submit"] {
    min-width: 7em;
    padding: 0.3em 0.7em;
    font-size: 0.85em;
    margin: 2px;
  }
  
  #admin td:last-child form {
    display: block;
    margin: 2px 0;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  input[type="submit"],
  button,
  .copy-btn-mini {
    min-height: 44px;
    min-width: 44px;
  }
  
  .file-item {
    padding: 15px;
  }
  
  a {
    padding: 5px;
  }
}

/* ==========================================================================
   10 = New Mobile-Optimized Upload Interface
   ========================================================================== */

/* Upload Progress Container */
.upload-progress-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.upload-icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.upload-title {
  color: #663D1C;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.upload-current-file {
  color: #795548;
  font-size: 1em;
  margin-bottom: 20px;
  word-break: break-word;
  font-weight: bold;
}

.progress-info {
  color: #795548;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.progress-bar-container {
  position: relative;
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 40px;
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0D9CB2 0%, #0BC9E0 100%);
  border-radius: 20px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 4px rgba(13, 156, 178, 0.3);
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.upload-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  color: #795548;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  color: #663D1C;
  font-size: 1.1em;
  font-weight: bold;
}

.creating-zip {
  margin-top: 30px;
  padding: 20px;
  background: #fff3e0;
  border-radius: 10px;
}

.zip-icon {
  font-size: 3em;
  margin-bottom: 10px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Success Container */
.success-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.success-icon {
  font-size: 5em;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  color: #0D9CB2;
  font-size: 2em;
  margin-bottom: 10px;
}

.success-subtitle {
  color: #795548;
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Share Buttons */
.share-buttons-container {
  margin: 30px 0;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 30px;
  margin: 10px 0;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.share-button.primary {
  background: linear-gradient(135deg, #0D9CB2 0%, #0BC9E0 100%);
  color: white;
}

.share-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(13, 156, 178, 0.3);
}

.share-button.primary:active {
  transform: translateY(0);
}

.share-button.secondary {
  background: white;
  color: #0D9CB2;
  border: 2px solid #0D9CB2;
}

.share-button.secondary:hover {
  background: #f0f9fa;
  transform: translateY(-2px);
}

.share-button.secondary:active {
  transform: translateY(0);
}

.share-icon {
  font-size: 1.3em;
}

/* File Info */
.file-info {
  margin: 30px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
}

.info-text {
  color: #795548;
  font-size: 1em;
  margin: 8px 0;
}

.info-text strong {
  color: #663D1C;
}

/* Upload Another Button */
.upload-another-btn {
  margin-top: 30px;
  padding: 15px 40px;
  background: #bcaaa4;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-another-btn:hover {
  background: #a1887f;
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1em;
  z-index: 10000;
  transition: bottom 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast-notification.show {
  bottom: 30px;
}

/* Mobile Optimizations for New Interface */
@media screen and (max-width: 768px) {
  .upload-progress-container {
    padding: 20px 15px;
  }
  
  .upload-icon {
    font-size: 3em;
  }
  
  .upload-title {
    font-size: 1.3em;
  }
  
  .upload-current-file {
    font-size: 0.9em;
  }
  
  .progress-bar {
    height: 35px;
  }
  
  .progress-percentage {
    font-size: 1em;
  }
  
  .upload-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
  }
  
  .stat-label,
  .stat-value {
    display: inline;
  }
  
  .success-container {
    padding: 30px 15px;
  }
  
  .success-icon {
    font-size: 4em;
  }
  
  .success-title {
    font-size: 1.5em;
  }
  
  .success-subtitle {
    font-size: 1em;
  }
  
  .share-button {
    padding: 16px 25px;
    font-size: 1em;
  }
  
  .share-icon {
    font-size: 1.2em;
  }
  
  .file-info {
    padding: 15px;
  }
  
  .info-text {
    font-size: 0.95em;
  }
  
  .toast-notification {
    padding: 12px 25px;
    font-size: 0.9em;
    max-width: 90%;
  }
  
  .toast-notification.show {
    bottom: 20px;
  }
}

/* Email Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  border-radius: 15px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #0D9CB2 0%, #0BC9E0 100%);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5em;
}

.close-modal {
  color: white;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 30px 25px;
}

.modal-body p {
  margin: 0 0 15px 0;
  color: #663D1C;
  font-size: 1em;
}

.email-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #0D9CB2;
  box-shadow: 0 0 0 3px rgba(13, 156, 178, 0.1);
}

.email-error {
  margin-top: 15px;
  padding: 12px;
  background: #ffebee;
  color: #c62828;
  border-radius: 8px;
  font-size: 0.9em;
  border-left: 4px solid #c62828;
}

.modal-footer {
  padding: 20px 25px;
  background: #f9f9f9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-button {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-button.primary {
  background: linear-gradient(135deg, #0D9CB2 0%, #0BC9E0 100%);
  color: white;
}

.modal-button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 156, 178, 0.3);
}

.modal-button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-button.secondary {
  background: white;
  color: #795548;
  border: 2px solid #ddd;
}

.modal-button.secondary:hover {
  background: #f5f5f5;
}

.button-icon {
  font-size: 1.2em;
}

/* Mobile Responsive for Modal */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h3 {
    font-size: 1.2em;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
    flex-direction: column-reverse;
  }
  
  .modal-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   9 = File Selection Display with Thumbnails
   ========================================================================== */

#file_details {
  margin: 1em 0;
}

.files-summary {
  text-align: center;
  color:rgb(255, 255, 255);
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
}

.file-item {
  display: flex;
  align-items: center;
  background: rgba(188, 170, 164, 0.15);
  border-radius: 8px;
  padding: 0.8em;
  margin-bottom: 0.8em;
  position: relative;
  transition: background 0.3s ease;
  border: 2px solid rgba(188, 170, 164, 0.3);
}

.file-item:hover {
  background: rgba(188, 170, 164, 0.25);
  border-color: rgba(188, 170, 164, 0.5);
}

.file-preview {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 85, 72, 0.1);
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(121, 85, 72, 0.2);
}

.file-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.file-icon-large {
  font-size: 2.5em;
}

.file-info {
  flex-grow: 1;
  min-width: 0;
}

.file-name {
  color: #5d4037;
  font-weight: bold;
  word-break: break-word;
  margin-bottom: 0.3em;
  font-size: 1em;
}

.file-meta {
  color: #8d6e63;
  font-size: 0.9em;
}

.file-error {
  color: #d32f2f;
  font-weight: bold;
}

.remove-file-btn {
  background: #d32f2f;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5em;
  font-weight: bold;
}

.remove-file-btn:hover {
  background: #b71c1c;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.remove-file-btn:active {
  transform: scale(1.05);
}

.files-total {
  text-align: center;
  color: #5d4037;
  font-size: 1.1em;
  font-weight: bold;
  margin: 1em 0;
  padding: 0.8em;
  background: rgba(121, 85, 72, 0.1);
  border-radius: 8px;
  border: 2px solid rgba(121, 85, 72, 0.2);
}

.add-more-files-btn {
  background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
  border: 0;
  padding: 0.8em 2.5em;
  font-size: 1em;
  color: #FFF;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  display: block;
  margin: 1em auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.add-more-files-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
  background: linear-gradient(135deg, #a0522d 0%, #8B4513 100%);
}

.add-more-files-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
}

/* Mobile Responsive for File Selection */
@media screen and (max-width: 768px) {
  .file-item {
    padding: 0.6em;
  }
  
  .file-preview {
    width: 60px;
    height: 60px;
    margin-right: 0.7em;
  }
  
  .file-icon-large {
    font-size: 2em;
  }
  
  .file-name {
    font-size: 0.9em;
  }
  
  .file-meta {
    font-size: 0.8em;
  }
  
  .remove-file-btn {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }
  
  .add-more-files-btn {
    padding: 0.7em 2em;
    font-size: 0.95em;
  }
}

/* ==========================================================================
   11 = Loading Indicator for File Processing
   ========================================================================== */

.files-loading-overlay {
  position: relative;
  padding: 2em;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  margin: 1em 0;
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(13, 156, 178, 0.2);
  border-top-color: #0D9CB2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: #663D1C;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.loading-subtext {
  color: #795548;
  font-size: 0.9em;
}

.file-thumbnail-loading {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.file-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 85, 72, 0.1);
  border-radius: 4px;
  font-size: 2em;
  color: #795548;
}

/* Mobile Responsive for Loading */
@media screen and (max-width: 768px) {
  .files-loading-overlay {
    padding: 1.5em;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .loading-text {
    font-size: 1em;
  }
  
  .loading-subtext {
    font-size: 0.85em;
  }
}
