/* Custom styles for the SmartInstaller web portal */

/* Add some padding to the body for better spacing */
body {
    padding-bottom: 2rem;
}

/* Make the header more prominent */
header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style the main container */
main.container {
    max-width: 1200px;
}

/* Custom card styling */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Make the installer list items more interactive */
.list-group-item {
    transition: all 0.2s;
}

.list-group-item:hover {
    transform: scale(1.01);
}

/* Style the download button */
.btn-primary {
    padding: 0.375rem 1rem;
}

/* Style the active/latest version */
.list-group-item.active {
    border-left: 4px solid #0d6efd;
}

/* Add a subtle pattern to the background for visual interest */
body {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e9ecef' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* Footer styling */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        margin-bottom: 2rem;
    }
}

/* Make version numbers more prominent */
.list-group-item h5 {
    font-weight: 600;
    color: #0d6efd;
}

.list-group-item.active h5 {
    color: white;
}

/* Style release notes */
.list-group-item p {
    font-size: 0.9rem;
    color: #6c757d;
}

.list-group-item.active p {
    color: rgba(255, 255, 255, 0.8);
}

/* Make download button stand out */
.btn-primary, .btn-light {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add some animation to the download icon */
.btn:hover svg {
    transform: translateY(2px);
    transition: transform 0.2s;
}

/* Version display styling */
.version-display {
    text-align: center;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.version-display .display-6 {
    font-weight: 700;
    color: #212529;
    font-size: 2.5rem;
}

.version-display p.text-danger,
.version-display p.text-muted {
    margin-bottom: 0;
}

/* Version badge styling */
#production-version-badge,
#uat-version-badge {
    font-size: 0.75rem;
    font-weight: normal;
}

/* Refresh button animation */
#refresh-versions svg {
    transition: transform 0.3s ease;
}

#refresh-versions:hover svg {
    transform: rotate(180deg);
}

/* Version info card hover effect - softer than other cards */
#version-info .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}