/* Main styles for AllHam application */
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
}

.result-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.result-item h4 {
    color: #0d6efd;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.result-item p {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Tool-specific styles */
#waveCanvas {
    width: 100%;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.jumbotron {
    padding: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

#asciiArt {
    white-space: pre;
    font-family: monospace;
    font-size: 0.7rem;
    overflow-x: auto;
}

.abeceda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abeceda-item {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }
    
    .abeceda-item {
        width: calc(50% - 10px);
    }
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tool pages */
.tool-page {
    display: none;
}

.tool-page.active {
    display: block;
}
