/* =====================================================================
   DESCARCĂ APLICAȚII – download_apps.css
   ===================================================================== */

/* STATISTICI GLOBALE */
.dlap-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 700px) { .dlap-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .dlap-stats { grid-template-columns: 1fr; } }

.dlap-stat-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.dlap-stat-accent {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.dlap-stat-value {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}
.dlap-stat-accent .dlap-stat-value { color: #6366f1; }
.dlap-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* CARD APLICAȚIE */
.dlap-app {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.dlap-app-header {
    margin-bottom: 12px;
}
.dlap-app-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.dlap-app-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* VERSIUNI */
.dlap-versions {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 16px;
}
.dlap-versions-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.dlap-version-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 8px;
    transition: background .15s;
}
.dlap-version-row:hover { background: #f1f5f9; }
.dlap-version-latest {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border: 1px solid #c7d2fe;
}
.dlap-version-info { flex: 1; min-width: 0; }
.dlap-version-num {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.dlap-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.dlap-version-desc {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}
.dlap-version-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

/* HASH */
.dlap-version-hash {
    margin-top: 6px;
}
.dlap-version-hash code {
    display: block;
    background: #FFFFFF;
    color: #a5b4fc;
    padding: 6px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    user-select: all;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.5;
    max-width: 100%;
}

/* BUTON DOWNLOAD */
.dlap-btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f97316;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(249,115,22,.3);
}
.dlap-btn-dl:hover { background: #ea6c0a; transform: translateY(-1px); }
.dlap-btn-dl:active { transform: scale(.98); }
@media (max-width: 500px) {
    .dlap-version-row { flex-direction: column; align-items: stretch; }
    .dlap-btn-dl { width: 100%; justify-content: center; }
}

/* ISTORIC */
.dlap-history {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 10px;
}
.dlap-history-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 14px;
}
.dlap-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}
.dlap-history-list::-webkit-scrollbar {
    width: 4px;
}
.dlap-history-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}
.dlap-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.dlap-history-item:last-child { border-bottom: none; }
.dlap-history-app { color: #1e293b; font-weight: 600; }
.dlap-history-v { color: #6366f1; font-family: monospace; font-size: 12px; }
.dlap-history-date { color: #94a3b8; font-size: 12px; }

/* EMPTY */
.dlap-empty {
    background: #fff;
    border: 1.5px dashed #e2e8f0;
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}