/* ==========================================================================
   Platform Core — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Admin layout
   -------------------------------------------------------------------------- */
.platform-admin {
    max-width: 1200px;
}

.platform-admin h1 {
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Stat cards
   -------------------------------------------------------------------------- */
.platform-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.platform-stat-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px 28px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

.platform-stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0073aa;
    line-height: 1.2;
}

.platform-stat-card .stat-label {
    font-size: .8rem;
    color: #646970;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   Status badges
   -------------------------------------------------------------------------- */
.platform-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.platform-status--pending    { background: #f0f0f1; color: #646970; }
.platform-status--processing { background: #dbeafe; color: #1e40af; }
.platform-status--done       { background: #dcfce7; color: #166534; }
.platform-status--error      { background: #fee2e2; color: #991b1b; }

/* --------------------------------------------------------------------------
   Upload form (frontend template)
   -------------------------------------------------------------------------- */
#platform-upload-form {
    background: #fff;
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    padding: 32px;
    text-align: center;
    transition: border-color .2s;
}

#platform-upload-form.drag-over {
    border-color: #0073aa;
    background: #f0f8ff;
}

#platform-upload-form .upload-icon {
    font-size: 3rem;
    color: #c3c4c7;
    margin-bottom: 12px;
}

#platform-upload-form input[type="file"] {
    display: block;
    margin: 0 auto 16px;
}

#platform-upload-form .button-primary,
#platform-upload-form button[type="submit"] {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .95rem;
    border: none;
}

#platform-upload-form .button-primary:hover,
#platform-upload-form button[type="submit"]:hover {
    background: #005a87;
}

#platform-upload-progress {
    margin-top: 12px;
    height: 6px;
    background: #dcdcde;
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

#platform-upload-progress .bar {
    height: 100%;
    background: #0073aa;
    width: 0;
    transition: width .3s;
}

/* --------------------------------------------------------------------------
   Download list (frontend template)
   -------------------------------------------------------------------------- */
#platform-download-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#platform-download-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

#platform-download-list li .file-name {
    font-weight: 500;
    color: #1d2327;
}

#platform-download-list li .file-meta {
    font-size: .8rem;
    color: #646970;
    margin-left: 8px;
}

#platform-download-list li .file-actions a {
    color: #0073aa;
    text-decoration: none;
    font-size: .85rem;
    margin-left: 12px;
}

#platform-download-list li .file-actions a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Notices / feedback
   -------------------------------------------------------------------------- */
.platform-notice {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.platform-notice--success { background: #dcfce7; border-left: 4px solid #166534; color: #166534; }
.platform-notice--error   { background: #fee2e2; border-left: 4px solid #991b1b; color: #991b1b; }
.platform-notice--info    { background: #dbeafe; border-left: 4px solid #1e40af; color: #1e40af; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .platform-stats {
        flex-direction: column;
    }

    #platform-download-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
