/* ==============================
   IP SUBNET CALCULATOR STYLE
============================== */

.ip-wrap {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.ip-wrap h2 {
    text-align: center;
    color: #0a3d62;
    margin-bottom: 15px;
    font-size: 26px;
}

.ip-wrap p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
}

.ip-section {
    background: #ffffff;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.ip-section h3 {
    margin-bottom: 15px;
    color: #0a3d62;
    font-size: 18px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.ip-grid label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 500;
}

.ip-grid input,
.ip-grid select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    margin-top: 5px;
    transition: border 0.2s ease-in-out;
}

.ip-grid input:focus,
.ip-grid select:focus {
    border-color: #0a3d62;
    outline: none;
}

.ip-btn {
    display: inline-block;
    background: #0a3d62;
    color: #fff;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    text-align: center;
}

.ip-btn i {
    margin-right: 6px;
}

.ip-btn:hover {
    background: #065a8a;
}

/* Result Section */
.ip-result {
    display: none;
}

.ip-result h3 {
    margin-bottom: 15px;
    color: #0a3d62;
    font-size: 20px;
}

.ip-result table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ip-result th,
.ip-result td {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.ip-result th {
    background-color: #0a3d62;
    color: #fff;
    text-align: left;
}

.ip-result tr:nth-child(even) {
    background-color: #f5f5f5;
}

.ip-result tr td:nth-child(2) {
    font-weight: bold;
}

/* PDF Download Button */
.ip-pdf-download {
    margin-top: 20px;
    text-align: right;
}

.ip-pdf-download .ip-btn {
    background: #27ae60;
}

.ip-pdf-download .ip-btn:hover {
    background: #1e8449;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ip-grid {
        grid-template-columns: 1fr;
    }

    .ip-pdf-download {
        text-align: center;
    }
}

/* Ads Spacing */
.ip-wrap ins.adsbygoogle {
    margin: 20px auto;
    display: block;
}
