/* Pending Fade Wrapper */
#pending-fade-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.pending-img-fade {
    animation: fadeInOut 2s infinite;
    border-radius: 10px;
    border: 1px solid #555;
    max-width: 180px;
    max-height: 160px;
}

@media (prefers-color-scheme: dark) {
    .pending-img-fade {
        border-color: #999;
        opacity: 0.7;
    }
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* General Reset and Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 {
    margin-top: 0;
}

/* Upload Form Styles */
.upload-form {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-form:hover,
.upload-form.highlight {
    border-color: #007bff;
    background-color: #e9f5ff;
}

.upload-form input[type="file"] {
    display: none;
}

/* Button Styles */
button, input[type="submit"] {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Input Styles */
input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Preview Section */
#preview {
    margin-top: 20px;
    text-align: center;
}

#preview img,
#preview video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Drop Area */
#drop-area {
    border: 2px dashed #bbb;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #999;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

#drop-area.highlight {
    border-color: #007bff;
    color: #007bff;
    background-color: #e9f5ff;
}

/* Credits Section */
.credits {
    margin-top: 20px;
    font-weight: bold;
    color: #555;
}

.credit-history-container {
    margin-top: 30px;
}

.history-entry {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9em;
    color: #444;
}

.history-entry.positive {
    color: #28a745;
}

.history-entry.negative {
    color: #dc3545;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .upload-form {
        padding: 20px;
    }
    button, input[type="submit"] {
        width: 100%;
        padding: 12px 0;
    }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .upload-form {
        background-color: #1e1e1e;
        border-color: #444;
        color: #ccc;
    }

    .upload-form:hover,
    .upload-form.highlight {
        border-color: #bb86fc;
        background-color: #2a2a2a;
        color: #fff;
    }

    input[type="text"], input[type="number"], select, textarea {
        background-color: #2a2a2a;
        border: 1px solid #444;
        color: #ccc;
    }

    button, input[type="submit"] {
        background-color: #bb86fc;
        color: #121212;
    }

    button:hover, input[type="submit"]:hover {
        background-color: #9a67ea;
    }

    #drop-area {
        background-color: #1e1e1e;
        border-color: #555;
        color: #aaa;
    }

    #drop-area.highlight {
        border-color: #bb86fc;
        color: #bb86fc;
        background-color: #2a2a2a;
    }

    .credits {
        color: #aaa;
    }

    .history-entry {
        background-color: #2a2a2a;
        color: #ccc;
        box-shadow: none;
    }

    .history-entry.positive {
        color: #03dac6;
    }

    .history-entry.negative {
        color: #cf6679;
    }

    .credit-entry {
        background-color: #1f1f1f;
        color: #e0e0e0;
        border-left: 4px solid #03dac6;
        border-radius: 8px;
        padding: 12px 16px;
        margin: 10px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.6);
        font-size: 0.95em;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .credit-entry:hover {
        background-color: #292929;
    }
    #pending-fade-wrapper {
        background-color: #1e1e1e;
        padding: 10px 0;
        border-radius: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    .pending-img-fade {
        animation: fadeInOut 2s infinite;
        border-radius: 10px;
        border: 1px solid #999;
        max-width: 180px;
        max-height: 160px;
        opacity: 0.7;
    }
    .credit-entry .timestamp {
        color: #bbbbbb;
    }
    .credit-entry .detail {
        color: #999;
        font-style: italic;
        flex: 1 1 100%;
    }
    .credit-entry .change {
        font-weight: bold;
        min-width: 40px;
    }
}

/* Additional styles from original inline CSS */

/* Logo styles */
.logo {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Credit entry styles */
.credit-entry {
    margin-bottom: 10px;
    padding: 10px;
    border-left: 4px solid #007bff;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Drop label styles */
#drop-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Keyframes and animation */
@keyframes slide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
/* Layout Sections */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#main-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

#credits-container {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

#login-container {
    margin-top: 10px;
    text-align: center;
}

#upload-wrapper {
    margin: 20px 0;
}

#no-credits-msg {
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
    color: #d9534f;
}

@media (prefers-color-scheme: dark) {
    #no-credits-msg {
        color: #ff6f61;
    }
}

.credit-history-list li {
    list-style-type: none;
    margin: 0;
}

.credit-entry:hover {
    background-color: #3a3a3a;
    transition: background-color 0.3s ease;
}
@keyframes fadeInOut {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes progressAnim {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

#pending-fade-wrapper img {
  display: block;
}

  #historyList {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .credit-entry {
    background-color: #2a2a2a;
    border-bottom: 1px solid #444;
    padding: 10px;
  }

  .credit-entry .timestamp {
    margin-left: 10px;
  }

  .credit-entry .detail {
    display: block;
    font-size: 0.9em;
    color: #bbb;
    margin-top: 4px;
  }

  .text-success {
    color: #4caf50;
  }

  .text-danger {
    color: #f44336;
  }
  @keyframes fadeInOut {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}