/**
 * admin-style.css
 * Styles für das Backend-Plugin
 *
 * @package Admin_Backend_and_Update_Helper_YIS_Media
 * @since 1.0.0
 */

.backhe-yis-admin {
    max-width: 1400px;
}


/* Tab Navigation */

.nav-tab-wrapper {
    margin-top: 20px;
    border-bottom: 1px solid #ccc;
}

.nav-tab {
    font-size: 14px;
    padding: 10px 16px;
}

.backhe-tab-content {
    margin-top: 0;
}


/* Grid Layout */

.backhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 32px;
}


/* Cards */

.backhe-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 28px 32px 18px 32px;
    position: relative;
    min-height: 120px;
}

.backhe-card-full {
    grid-column: 1 / -1;
}

.backhe-card h2 {
    font-size: 1.28em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    color: #144766;
    letter-spacing: .02em;
}

.backhe-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #0073aa;
}


/* Tables */

.backhe-info-table {
    width: 100%;
    border-spacing: 0;
    font-size: 14px;
    margin-top: 10px;
}

.backhe-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #efefef;
    color: #184b5b;
    vertical-align: top;
}

.backhe-info-table td:first-child {
    font-weight: 600;
    width: 44%;
}

.backhe-info-table tr:last-child td {
    border-bottom: none;
}


/* Update Sections */

.backhe-update-section {
    margin-bottom: 30px;
}

.backhe-update-section table.widefat {
    margin-top: 10px;
    border: 1px solid #e5e5e5;
}

.backhe-update-section table.widefat th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px;
}

.backhe-update-section table.widefat td {
    padding: 12px;
}


/* Extensions */

.backhe-extensions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.backhe-extension-badge {
    display: inline-block;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 16px;
    background: #f6fafd;
    border: 1px solid #e2eaf2;
    font-family: monospace;
    font-weight: 500;
}

.backhe-ext-loaded {
    color: #1c9943;
    border-color: #b9e7ca;
    background: #edfff5;
}

.backhe-ext-missing {
    color: #bb2222;
    border-color: #ffded7;
    background: #fff4f0;
}


/* Disk Info */

.backhe-disk-info {
    font-size: 14px;
    margin-top: 10px;
}

.backhe-progress-bar {
    width: 100%;
    height: 15px;
    background: #ecf7fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #dce9f0;
}

.backhe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    transition: width 0.5s ease;
}


/* Update Badges */

.backhe-update-summary {
    margin: 20px 0;
}

.backhe-update-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.backhe-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffe39c;
}

.backhe-badge-success {
    background: #cbf4d0;
    color: #14682e;
    border: 2px solid #51d47a;
}

.backhe-version-new {
    color: #218838;
    font-weight: bold;
}

.backhe-success-message {
    font-size: 16px;
    color: #1c9930;
    margin: 18px 0;
    font-weight: 500;
}


/* Form Elements */

.form-table th {
    width: 220px;
    font-weight: 600;
}

.form-table td label {
    display: inline-block;
    margin-bottom: 8px;
}


/* Buttons */

.button {
    transition: all 0.2s;
}

.button-primary {
    background: #0073aa;
    border-color: #005177;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.button-primary:hover {
    background: #005177;
    border-color: #003f5c;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.button-large {
    font-size: 16px;
    padding: 8px 24px;
    height: auto;
    line-height: 1.5;
}


/* Notice styling */

.notice.inline {
    margin: 5px 0 15px;
    padding: 12px;
}


/* Responsive */

@media (max-width: 900px) {
    .backhe-card,
    .backhe-card-full {
        padding: 20px 16px;
    }
    .backhe-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .backhe-card,
    .backhe-card-full {
        padding: 16px 12px;
    }
    .nav-tab {
        font-size: 12px;
        padding: 8px 12px;
    }
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.backhe-card {
    animation: fadeIn 0.3s ease-out;
}


/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
    .backhe-card {
        background: #1e1e1e;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }
    .backhe-card h2,
    .backhe-card h3 {
        color: #58a6ff;
    }
    .backhe-info-table td {
        color: #c9d1d9;
        border-bottom-color: #30363d;
    }
}