* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.content {
    padding: 30px;
}

.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #2575fc;
    color: white;
}

.primary-btn:hover {
    background-color: #1a68e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.3);
}

.secondary-btn {
    background-color: #f1f5f9;
    color: #475569;
}

.secondary-btn:hover {
    background-color: #e2e8f0;
}

.warning-btn {
    background-color: #f97316;
    color: white;
}

.warning-btn:hover {
    background-color: #ea580c;
}

.results-section {
    margin-top: 30px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background-color: #2575fc;
    border-radius: 2px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.package-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.package-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    color: #1e293b;
    word-break: break-all;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.package-name:hover {
    background-color: #f1f5f9;
}

.version-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.version-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.version-label {
    font-weight: 500;
    color: #64748b;
    min-width: 100px;
}

.version-value {
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.version-value:hover {
    background-color: #f1f5f9;
}

.copy-icon {
    font-size: 14px;
    opacity: 0.7;
}

.risk-version {
    color: #dc2626;
}

.safe-version {
    color: #16a34a;
}

.days-left {
    font-size: 14px;
    color: #f97316;
    margin-top: 5px;
    font-weight: 500;
}

.copy-success {
    position: absolute;
    background-color: #16a34a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.copy-success.show {
    opacity: 1;
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    grid-column: 1 / -1;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.instructions {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #2575fc;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
}