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

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.upload-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

input[type="file"],
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 1rem;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

select:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

button {
    width: 100%;
    padding: 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 1rem;
}

.results {
    margin-top: 2rem;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.image-box, .matrix-box {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-box h3, .matrix-box h3 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.filter-name {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 1rem;
}

.filter-matrix {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.filter-matrix td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    background-color: white;
}

.filter-matrix tr:first-child td {
    border-top: 2px solid #4CAF50;
}

.filter-matrix tr:last-child td {
    border-bottom: 2px solid #4CAF50;
}

.filter-matrix td:first-child {
    border-left: 2px solid #4CAF50;
}

.filter-matrix td:last-child {
    border-right: 2px solid #4CAF50;
}

.equals-sign, .conv-sign {
    font-size: 3rem;
    color: #4CAF50;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.download-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
    }
    
    .equals-sign, .conv-sign {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
} 