/* ===========================================
    IP Subnet Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.isc-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.isc-form {
    padding: 20px; 
    border: 1px solid #B2EBF2; /* Light Cyan Border */
    border-radius: 8px;
    background-color: #F8FFFF; /* Very Light Cyan/White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.isc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00BCD4; /* Cyan */
    border-bottom: 2px solid #B2EBF2;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* Compact Input Row (IP Address + CIDR) */
.isc-input-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-end; /* Align fields and button */
    gap: 15px 2%; /* Vertical and horizontal gap */
}

.isc-input-group {
    display: flex;
    flex-direction: column;
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 150px;
}
/* Responsive adjustment for small screens */
@media (max-width: 500px) {
    .isc-input-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
}

.isc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}

.isc-input-group input, .isc-input-group select {
    padding: 10px;
    border: 1px solid #4DD0E1;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
}

.isc-input-group input {
    /* Specific styling for IP/CIDR input */
    font-family: 'Courier New', monospace; 
}

/* Button Styles */
.isc-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 25px; 
    background-color: #00BCD4; /* Primary Cyan */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.isc-calculate-btn:hover {
    background-color: #00ACC1;
}

/* Results Display */
.isc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #26C6DA; 
    border-radius: 8px;
    background-color: #E0F7FA; /* Lightest Cyan */
    text-align: center;
}

.isc-results-title {
    color: #00BCD4;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #4DD0E1;
    padding-bottom: 5px;
}

/* Results Table (Detailed Output) */
.isc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}
.isc-results-table th, .isc-results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #B2EBF2;
}
.isc-results-table th {
    background-color: #00ACC1;
    color: white;
    font-weight: 600;
    width: 40%;
}
.isc-results-table td {
    background-color: #E0F7FA;
    font-weight: 700;
    color: #004D40; /* Dark Teal */
}
.isc-results-table tr:last-child td, .isc-results-table tr:last-child th {
    border-bottom: none;
}

.isc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 20px;
    background-color: #4DD0E1;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}


/* ===========================================
    SEO Content FIXES (The Critical Formatting Overrides)
    =========================================== */

.seo-content h4 {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

.seo-content .MathJax_Display, .seo-content [role="presentation"] {
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.seo-content p {
    margin-bottom: 10px;
}