.ip-calc-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
}

.input-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
}

.input-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.ip-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ip-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.ip-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.calc-btn {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
    height: fit-content;
}

.calc-btn:hover {
    background: #1d4ed8;
}

.calc-btn:active {
    transform: scale(0.98);
}

.common-masks {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.masks-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.mask-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mask-btn {
    padding: 6px 14px;
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mask-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.result-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    text-align: right;
    min-width: 120px;
}

.summary-box {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.summary-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-btn {
        width: 100%;
    }

    .result-panels {
        grid-template-columns: 1fr;
    }

    .info-value {
        min-width: auto;
    }

    .common-masks {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ip-calc-page {
        padding: 12px;
    }

    .input-panel {
        padding: 16px;
    }

    .info-card {
        padding: 16px;
    }

    .info-row {
        padding: 8px 0;
    }

    .info-label,
    .info-value {
        font-size: 13px;
    }
}