/*
 * Version Badge Styles - Minimal Dark Theme
 *
 * This CSS file defines the styles for the version badge component used in the
 * AION License Count application. The version badge displays application version
 * information in a compact, expandable format at the bottom-right corner of the page.
 *
 * Key features:
 * - Fixed positioning at the bottom-right corner
 * - Expandable on hover to show more details
 * - Color-coded based on the recency of the version
 * - Minimal dark aesthetic matching the application theme
 */

/* Main container for the version badge */
.version-badge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #1e1e1e;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    overflow: hidden;
    width: auto;
    max-height: 24px;
    cursor: pointer;
}

/* Hover state for the version badge */
.version-badge:hover {
    background: #2c2c2c;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 120px;
}

/* Style for the main version info (always visible) */
.version-badge .version-info {
    display: inline-block;
    font-weight: 500;
    color: #fff;
}

/* Container for additional version details (hidden by default) */
.version-badge .version-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
    margin-top: 0;
    font-size: 10px;
    color: #aaa;
}

.version-badge .version-details p {
    margin: 4px 0;
    line-height: 1.4;
}

/* Show version details on hover */
.version-badge:hover .version-details {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
}

/* Style for the environment text */
.version-badge .environment {
    font-weight: 600;
    text-transform: uppercase;
}

/* Color-coding based on version recency - minimal approach with border accent */
.version-badge.recent {
    border-left: 3px solid #4CAF50;
}

.version-badge.recent .version-info {
    color: #4CAF50;
}

.version-badge.moderate {
    border-left: 3px solid #FF9800;
}

.version-badge.moderate .version-info {
    color: #FF9800;
}

.version-badge.old {
    border-left: 3px solid #f44336;
}

.version-badge.old .version-info {
    color: #f44336;
}
