﻿/* Subnet Calculator Styling */

/* Calculator section background */
.calculator-section {
    background: linear-gradient(135deg, #CDDEC8 0%, #DDDFC2 100%);
}

/* Main calculator container */
.calculator-container {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Input group styling */
.calculator-input-group {
    margin-bottom: 20px;
}

    /* Input labels */
    .calculator-input-group label {
        display: block;
        font-weight: 600;
        color: #122B10;
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

    /* Text and number inputs */
    .calculator-input-group input {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
        border: 2px solid #97AC82;
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        transition: border-color 0.3s ease;
    }

        /* Input focus state */
        .calculator-input-group input:focus {
            outline: none;
            border-color: #688A65;
        }

/* Calculate button */
.calc-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #97AC82 0%, #9CC97F 100%);
    color: #122B10;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

    /* Button hover effect */
    .calc-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Results container */
.calculator-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #CDDEC8;
}

/* Individual result row */
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #DDDFC2;
}

    /* Last row - no border */
    .result-row:last-child {
        border-bottom: none;
    }

/* Result labels (left side) */
.result-label {
    font-weight: 600;
    color: #537E72;
    font-size: 1rem;
}

/* Result values (right side) */
.result-value {
    font-family: 'Courier New', monospace;
    color: #122B10;
    font-weight: bold;
    font-size: 1.05rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
    }

    .calculator-input-group input {
        font-size: 1rem;
    }

    .calc-button {
        font-size: 1rem;
    }

    .result-row {
        flex-direction: column;
        gap: 5px;
    }

    .result-value {
        text-align: left;
    }
}
/* center the form nicely */
.subnet-form {
    max-width: 500px;
    margin: 0 auto 20px auto;
}

/* Validation summary styling */
.validation-summary {
    margin-bottom: 15px;
    color: #b03030;
    font-weight: 600;
}

/* If you're using .text-danger from Bootstrap, this just fits the theme */
/*.text-danger {
    color: #b03030;
    font-size: 0.95rem;
}*/

/* Subnet results table */
.subnet-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

    /* Table cells */
    .subnet-table th,
    .subnet-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #DDDFC2;
    }

    /* left column */
    .subnet-table th {
        text-align: left;
        width: 40%;
        background-color: #F4F8EF; 
        font-weight: 600;
        color: #537E72;
        font-size: 1rem;
    }

    /* right column */
    .subnet-table td {
        font-family: 'Courier New', monospace;
        color: #122B10;
        font-weight: bold;
        font-size: 1.02rem;
    }

    /* Remove border on last row for clean look Jayla */
    .subnet-table tr:last-child th,
    .subnet-table tr:last-child td {
        border-bottom: none;
    }
