/* Network Logo Styles */
.network-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

.network-option:hover {
    background-color: #f0f7ff;
}

.network-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Colorful Background */
body {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Select Styling */
.input-group select {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236e8efb" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.input-group select:hover {
    border-color: #6e8efb;
}

.input-group select:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
    outline: none;
}

/* Ad Type Button Enhancement */
.ad-type-btn {
    border: 2px solid #6e8efb;
    color: #6e8efb;
    width: 100%;
    max-width: 200px;
}

.ad-type-btn:hover,
.ad-type-btn.active {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-color: transparent;
    color: white;
}

/* Calculate Button Enhancement */
#calculate-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

#calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

/* Results Enhancement */
.results {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
}

.result-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: white;
    margin: 10px 0;
    transition: transform 0.3s ease;
    width: 100%;
}

.result-item:hover {
    transform: scale(1.02);
}

.result-item h3 {
    color: #6e8efb;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-item p {
    color: #a777e3;
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .network-option {
        padding: 12px;
        font-size: 14px;
    }

    .network-logo {
        width: 20px;
        height: 20px;
    }

    .input-group {
        padding: 15px;
        margin: 0;
    }

    .input-group select,
    .input-group input {
        padding: 12px;
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
    }

    .input-group label {
        font-size: 14px;
    }

    .ad-type-btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        margin: 5px 0;
    }

    #calculate-btn {
        max-width: 100%;
        padding: 15px 25px;
        font-size: 16px;
        margin: 20px 0;
    }

    .results {
        padding: 15px;
        margin: 15px 0;
    }

    .result-item {
        padding: 15px 10px;
        margin: 8px 0;
    }

    .result-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

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

    body {
        padding: 0.5rem;
    }

    .container {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
}