/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Container */
.container {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    margin: 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}

.header p {
    font-size: 1rem;
    color: #718096;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

/* Form */
.subnet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 600;
}

.input-group input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.analyze-btn {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #5a67d8;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.analyze-btn:hover {
    background-color: #4c51bf;
    transform: translateY(-2px);
}

.analyze-btn:active {
    transform: translateY(0);
}

/* Results */
.results {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
}

.results h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
}

.result-item .icon {
    font-size: 1.25rem;
}

.result-item p {
    font-size: 0.9rem;
    color: #4a5568;
}

.result-item p strong {
    color: #2d3748;
}

.error {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fed7d7;
    color: #9b2c2c;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .input-group label {
        font-size: 0.9rem;
    }

    .input-group input {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .analyze-btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .results h2 {
        font-size: 1.25rem;
    }

    .result-item p {
        font-size: 0.85rem;
    }
}