/* Stili generali per il frontend */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #00100b;
    color: #dccde8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Stili per la homepage (frontend) */
.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    color: #dccde8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.animated-text {
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(90deg, #d99ac5, #14bdeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease-in-out infinite;
    margin: 20px 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

form {
    margin-top: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
}

form input[type="text"] {
    padding: 10px;
    font-size: 1em;
    width: 70%;
    max-width: 300px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #dccde8;
}

form button {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #14bdeb;
    color: #00100b;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #b37ba4;
}

#suggestions {
    position: absolute;
    top: 45px;
    left: 15%;
    width: 70%;
    max-width: 300px;
    background-color: #00100b;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    color: #dccde8;
}

.suggestion-item:hover {
    background-color: #b37ba4;
}

#results {
    margin-top: 20px;
    text-align: center;
}

.tool-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    display: inline-block;
    text-align: left;
}

.tool-item img {
    max-width: 100px;
    margin-right: 20px;
    float: left;
}

.tool-item h3 {
    margin: 0;
    font-size: 1.2em;
    color: #14bdeb;
}

.tool-item p {
    margin: 10px 0;
    clear: both;
}

.tool-item a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #14bdeb;
    color: #00100b;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.tool-item a:hover {
    background-color: #b37ba4;
}

@media screen and (max-width: 600px) {
    .tool-item {
        width: 100%;
        padding: 10px;
    }
    
    .tool-item img {
        max-width: 50px;
        margin: 0 auto;
        display: block;
        float: none;
    }
    
    .tool-item h3, .tool-item p, .tool-item a {
        text-align: center;
    }
}

/* Stili specifici per il backend */
body.admin {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #00100b;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
}

.message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.dashboard-item {
    background: #dccde8;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form.admin-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

form.admin-form input, form.admin-form textarea, form.admin-form select, form.admin-form button {
    margin: 5px 0;
    padding: 10px;
    border: 1px solid #00100b;
    border-radius: 5px;
}

form.admin-form button {
    background-color: #14bdeb;
    color: #00100b;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form.admin-form button:hover {
    background-color: #b37ba4;
}

.admin-tool-buttons {
    display: flex;
    justify-content: space-between;
}

#admin-tools-container .tool, #categories-container .category, #icons-container .icon {
    background: #d99ac5;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    text-align: center;
}

#admin-tools-container .tool img, #icons-container .icon img {
    max-width: 100%;
    height: 50px;
}
