/* Основные стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #008080;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC');
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #000;
    box-sizing: border-box;
}

.bugreport-container {
    background: #c0c0c0;
    border: 4px outset #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.bugreport-container h2 {
    color: #000;
    margin-bottom: 15px;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #ffe194, #ffb085);
    padding: 10px;
    border: 2px solid #000;
    word-break: break-word;
}

.bugreport-container p {
    color: #000;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    word-break: break-word;
}

textarea {
    width: calc(100% - 26px);
    height: 150px;
    margin-bottom: 20px;
    border: 3px inset #ccc;
    padding: 10px;
    font-size: 14px;
    resize: none;
    outline: none;
    background-color: #fff;
    font-family: 'Courier New', monospace;
}

/* Стили для рейтинга */
.rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rating label {
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 10px;
    background: #d3d3d3;
    border: 3px outset #fff;
    font-weight: bold;
    min-width: 60px;
    flex-grow: 1;
    max-width: 120px;
}

.rating input {
    display: none;
}

.rating input:checked + label {
    background-color: #f00;
    color: white;
    border: 3px inset #800;
    transform: scale(1.05);
}

.rating label:hover {
    background-color: #f80;
    color: #000;
}

/* Стили для загрузки файлов */
.file-upload {
    margin: 20px 0;
}

.file-upload label {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(to bottom, #d3d3d3, #808080);
    color: #000;
    border: 3px outset #fff;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.file-upload label:hover {
    background: linear-gradient(to bottom, #808080, #d3d3d3);
    border: 3px inset #fff;
}

.file-upload input {
    display: none;
}

.file-list {
    margin-top: 10px;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    border: 2px inset #ccc;
    padding: 10px;
    background: #fff;
}

.file-item {
    margin: 5px 0;
    padding: 5px;
    background: #e0e0e0;
    display: flex;
    justify-content: space-between;
    word-break: break-all;
}

.remove-file {
    color: #f00;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Кнопки */
button {
    background: linear-gradient(to bottom, #d3d3d3, #808080);
    color: #000;
    border: 3px outset #fff;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

button:hover {
    background: linear-gradient(to bottom, #808080, #d3d3d3);
    border: 3px inset #fff;
}

button:active {
    border: 3px inset #000;
}

.home-button {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.home-button a {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to bottom, #00f, #008);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: 3px outset #aaf;
    border-radius: 0;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px #000;
    width: 100%;
    box-sizing: border-box;
}

.home-button a:hover {
    background: linear-gradient(to bottom, #008, #00f);
    border: 3px inset #aaf;
}

/* Уведомление */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.success-message .checkmark {
    font-size: 60px;
    color: #0f0;
    text-shadow: 2px 2px 4px #000;
}

.success-message p {
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-align: center;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .bugreport-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .bugreport-container h2 {
        font-size: 20px;
        padding: 8px;
    }
    
    textarea {
        height: 120px;
    }
    
    .rating label {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    button, .home-button a {
        padding: 10px 15px;
        font-size: 14px;
    }
}