/* ============================
   STILE GENERALE
============================ */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
    transition: background 0.3s, color 0.3s;
}

.dark-mode {
    background: #121212;
    color: #e6e6e6;
}

/* ============================
   NAVBAR
============================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #1e88e5;
    color: white;
}
/* Effetto neon sulle icone in dark mode */
.dark-mode .tech-icons img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.dark-mode .tech-icons img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #00aaff) drop-shadow(0 0 20px #00aaff);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    background: white;
    color: #1e88e5;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 18px;
}

.brand {
    font-size: 20px;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.nav-links a.active {
    text-decoration: underline;
}

.dark-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* ============================
   HERO SECTION
============================ */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero .highlight {
    color: #1e88e5;
}

/* ============================
   TOOL GRID
============================ */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.tool-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
}

.tool-card:hover {
    transform: scale(1.03);
    background: #e3f2fd;
}

.dark-mode .tool-card {
    background: #1f1f1f;
    color: white;
}

.dark-mode .tool-card:hover {
    background: #333;
}

/* ============================
   TOOL BOX (FORM)
============================ */
.tool-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.tool-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .tool-box {
    background: #1f1f1f;
}

.tool-box input,
.tool-box select,
.tool-box textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.tool-box button {
    width: 100%;
    padding: 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.tool-box button:hover {
    background: #1565c0;
}

/* ============================
   RISULTATI
============================ */
.result-box {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
}

.dark-mode .result-box {
    background: #333;
}

/* ============================
   FOOTER
============================ */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #1e88e5;
    color: white;
}
