/* style.css */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #0078d7;
    --secondary-accent: #2d2d30;
    --border-color: #333333;
    --success-color: #2ea043;
    --link-color: #58a6ff;
    --modal-overlay: rgba(0, 0, 0, 0.85);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

h1 { font-weight: 300; margin: 0; color: #fff; }
p { opacity: 0.7; margin-top: 5px; font-size: 0.95rem; }

/* Utility Bar */
.utility-bar {
    max-width: 1400px;
    margin: 0 auto 20px auto;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Grid Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.card-header { 
    font-size: 1.4rem; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 15px; 
    padding-bottom: 10px;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* List Items */
.list-group { list-style: none; padding: 0; margin: 0; }
.list-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}
.list-item:last-child { border-bottom: none; }

.edition-name {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #ccc;
}

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
    background-color: var(--secondary-accent);
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn:hover { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }

.btn-primary { background-color: #005a9e; border-color: #005a9e; color: white; }
.btn-primary:hover { background-color: #004578; }

.btn-copy-group { font-size: 0.7rem; padding: 4px 8px; }

/* Dropdown / Select Styles (For VS 2022) */
.select-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    background: #252526;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #3e3e42;
}

.version-select {
    flex-grow: 1;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 600;
    z-index: 2100;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-box {
    background-color: #252526;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #454545;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.modal-box h2 {
    margin-top: 0;
    color: #d4d4d4;
    font-weight: 400;
    border-bottom: 1px solid #3e3e42;
    padding-bottom: 15px;
}

.modal-box p {
    font-size: 1rem;
    color: #cccccc;
    margin: 20px 0;
}

.modal-warning { color: #ce9178; font-weight: bold; }
.btn-large { padding: 10px 30px; font-size: 1rem; margin-top: 10px; }

/* Responsive */
@media (max-width: 600px) {
    .container { grid-template-columns: 1fr; }
    .select-container { flex-direction: column; }
    .version-select { width: 100%; }
    .btn { width: 100%; justify-content: center; }
}