@import url('https://fonts.cdnfonts.com/css/leixo');
:root {
    --primary: #090039;
    --secondary: #292fe2;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #585858;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #090039;
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header img {
    width: 100px;
    margin-bottom: -15px;
}

h1 {
    font-family: 'Roboto';
    font-size: 2.5rem;
    padding-bottom: 25px;
    color: white;
}

.subtitle {
    font-family: 'Roboto';
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.9;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab.active {
    background: var(--secondary);
    color: white;
}

.tab:hover {
    background: rgba(52, 152, 219, 0.7);
}

.card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    display: flex;
    justify-content: center;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: var(--secondary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

button.secondary {
    background: var(--gray);
}

button.secondary:hover {
    background: #6c7a7b;
}

.result-area {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 100px;
    word-break: break-all;
}

.history {
    margin-top: 30px;
}

.history-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.history-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.history-content {
    font-size: 0.9rem;
    opacity: 0.9;
}

.file-info {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.flex-group {
    display: flex;
    gap: 15px;
}

.algorithm-info {
    font-size: 0.9rem;
    margin-top: 8px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .flex-group {
        flex-direction: column;
    }
    
}
